The reference to parse
Optionalcontext: { defaultKind?: string; defaultNamespace?: string }The context of defaults that the parsing happens within
OptionaldefaultKind?: stringThe default kind, if none is given in the reference
OptionaldefaultNamespace?: stringThe default namespace, if none is given in the reference
The compound form of the reference
Parses an entity reference, either on string or compound form, and returns a structure with a name, and optional kind and namespace.