Skip to content

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
# comment
int