Throw unless value matches EMITTED_NAME_PATTERN. kind and context appear in the message.
value
kind
context
Throw unless
valuematches EMITTED_NAME_PATTERN.kindandcontextappear in the message.