Click or drag to resize

TypeRefBasePeekType Method

Peek ahead at the input tokens to determine if they look like a valid type.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static bool PeekType(
	Parser parser,
	Token token,
	bool nonArrayType,
	ParseFlags flags
)

Parameters

parser
Type: Nova.ParsingParser
token
Type: Nova.ParsingToken
nonArrayType
Type: SystemBoolean
flags
Type: Nova.ParsingParseFlags

Return Value

Type: Boolean
Remarks
A valid type is usually a single identifier, but it can optionally have one or more of the following: - namespace prefix(es) (".") or a global namespace specifier ("::") - parent type prefix(es) ("."), which can optionally have type parameters of their own - trailing type arguments (angle brackets, or braces if in a doc comment) - trailing array ranks - a trailing '?' or '*' - it can be a tuple type of the form "(type1, type2...)" or "(type1 name1, type2 name2...)"
See Also