Module identifier

Source

Structs§

Align64

Constants§

CR
U+000D CARRIAGE RETURN, abbreviated in the spec as <CR>.
EOF
FF
U+000C FORM FEED, abbreviated <FF>.
LF
U+000A LINE FEED, abbreviated in the spec as <LF>.
LS
U+2028 LINE SEPARATOR, abbreviated <LS>.
NBSP
U+00A0 NON-BREAKING SPACE, abbreviated <NBSP>.
PS
U+2029 PARAGRAPH SEPARATOR, abbreviated <PS>.
SP
U+0020 SPACE, abbreviated <SP>.
TAB
U+0009 CHARACTER TABULATION, abbreviated <TAB>.
VT
U+000B VERTICAL TAB, abbreviated <VT>.
ZWJ
U+200D ZERO WIDTH JOINER, abbreviated as <ZWJ>. Specially permitted in identifiers.
ZWNBSP
U+FEFF ZERO WIDTH NO-BREAK SPACE, abbreviated <ZWNBSP>. Considered a whitespace character in JS.
ZWNJ
U+200C ZERO WIDTH NON-JOINER, abbreviated in the spec as <ZWNJ>. Specially permitted in identifiers.

Statics§

ASCII_CONTINUE
ASCII_START

Functions§

is_identifier_name
Determine if a string is a valid JS identifier.
is_identifier_part
Section 12.7 Detect IdentifierPartChar NOTE 2: The nonterminal IdentifierPart derives _ via UnicodeIDContinue.
is_identifier_part_ascii
is_identifier_part_unicode
is_identifier_start
Section 12.7 Detect IdentifierStartChar
is_identifier_start_ascii
is_identifier_start_unicode
is_irregular_line_terminator
is_irregular_whitespace
is_line_terminator
is_regular_line_terminator
is_white_space_single_line