pub fn construct_prefix<'arena, A>(
arena: &'arena A,
lexer: TypeLexer<'arena>,
) -> Result<(Type<'arena>, Position), ParseError>where
A: Arena,Expand description
Parse the longest type prefix and return the position past the consumed bytes. Used by embedding callers that tokenise their own trailing text after the type.
ยงErrors
Returns a ParseError if the input does not begin with a valid
type.