type_decl_fragment

func type_decl_fragment(consume syntax: Syntax<TypeAnnotation>) -> Syntax<Decl>

Reclassifies type tokens for a type-shaped position inside a declaration quote.

The completed declaration is parsed before it can cross the wrapper boundary, preventing this fragment from escaping as a standalone declaration.

View Source
pub func type_decl_fragment(consume syntax: Syntax<TypeAnnotation>) -> Syntax<Decl> {
	raw_decl_fragment(raw: consume syntax.raw)
}