Syntax
Comments
A type may carry comments. They are read as whitespace: they separate tokens and mean nothing of their own.
- A line comment begins with
//or#and runs to the end of the line. - A block comment begins with
/*and runs to the next*/inclusive.
A block comment between two tokens.
int /* comment */ | string
union
type
type
resultTypeLang\Type\LogicalTypeNode\UnionTypeNode
A line comment ends a line of a type written across several:
int | // comment string# commentintA comment is not a type: a source of a comment alone describes nothing.
// comment
errorUnexpectedTokenException Unexpected end of input, expected a type name, an identifier, "true", "false" and other