@@ -107,7 +107,7 @@ export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean {
107
107
) ;
108
108
}
109
109
110
- /**
110
+ /*
111
111
* SourceCharacter ::
112
112
* - U+0009 (Horizontal Tab)
113
113
* - U+000A (New Line)
@@ -120,7 +120,7 @@ function isSourceCharacter(code: number): boolean {
120
120
) ;
121
121
}
122
122
123
- /**
123
+ /*
124
124
* Prints the code point (or end of file reference) at a given location in a
125
125
* source for use in error messages.
126
126
*
@@ -143,7 +143,7 @@ function printCodePointAt(lexer: Lexer, location: number): string {
143
143
return `U+${ zeroPad } ${ code . toString ( 16 ) . toUpperCase ( ) } ` ;
144
144
}
145
145
146
- /**
146
+ /*
147
147
* Create a token with line and column location information.
148
148
*/
149
149
function createToken (
@@ -158,7 +158,7 @@ function createToken(
158
158
return new Token ( kind , start , end , line , col , value ) ;
159
159
}
160
160
161
- /**
161
+ /*
162
162
* Gets the next token from the source starting at the given position.
163
163
*
164
164
* This skips over whitespace until it finds the next lexable token, then lexes
@@ -293,7 +293,7 @@ function readNextToken(lexer: Lexer, start: number): Token {
293
293
return createToken ( lexer , TokenKind . EOF , bodyLength , bodyLength ) ;
294
294
}
295
295
296
- /**
296
+ /*
297
297
* Reads a comment token from the source file.
298
298
*
299
299
* Comment :: # CommentChar* [lookahead != CommentChar]
@@ -330,11 +330,11 @@ function readComment(lexer: Lexer, start: number): Token {
330
330
) ;
331
331
}
332
332
333
- /**
333
+ /*
334
334
* Reads a number token from the source file, either a FloatValue or an IntValue
335
335
* depending on whether a FractionalPart or ExponentPart is encountered.
336
336
*
337
- * IntValue :: IntegerPart ` [lookahead != {Digit, `.`, NameStart}]`
337
+ * IntValue :: IntegerPart [lookahead != {Digit, `.`, NameStart}]
338
338
*
339
339
* IntegerPart ::
340
340
* - NegativeSign? 0
@@ -345,9 +345,9 @@ function readComment(lexer: Lexer, start: number): Token {
345
345
* NonZeroDigit :: Digit but not `0`
346
346
*
347
347
* FloatValue ::
348
- * - IntegerPart FractionalPart ExponentPart ` [lookahead != {Digit, `.`, NameStart}]`
349
- * - IntegerPart FractionalPart ` [lookahead != {Digit, `.`, NameStart}]`
350
- * - IntegerPart ExponentPart ` [lookahead != {Digit, `.`, NameStart}]`
348
+ * - IntegerPart FractionalPart ExponentPart [lookahead != {Digit, `.`, NameStart}]
349
+ * - IntegerPart FractionalPart [lookahead != {Digit, `.`, NameStart}]
350
+ * - IntegerPart ExponentPart [lookahead != {Digit, `.`, NameStart}]
351
351
*
352
352
* FractionalPart :: . Digit+
353
353
*
@@ -429,7 +429,7 @@ function readNumber(lexer: Lexer, start: number, firstCode: number): Token {
429
429
) ;
430
430
}
431
431
432
- /**
432
+ /*
433
433
* Returns the new position in the source after reading one or more digits.
434
434
*/
435
435
function readDigits ( lexer : Lexer , start : number , firstCode : number ) : number {
@@ -455,7 +455,7 @@ function readDigits(lexer: Lexer, start: number, firstCode: number): number {
455
455
return position ;
456
456
}
457
457
458
- /**
458
+ /*
459
459
* Reads a single-quote string token from the source file.
460
460
*
461
461
* StringValue ::
@@ -467,7 +467,7 @@ function readDigits(lexer: Lexer, start: number, firstCode: number): number {
467
467
* - `\u` EscapedUnicode
468
468
* - `\` EscapedCharacter
469
469
*
470
- * EscapedUnicode :: ` /[0-9A-Fa-f]{4}/`
470
+ * EscapedUnicode :: /[0-9A-Fa-f]{4}/
471
471
*
472
472
* EscapedCharacter :: one of `"` `\` `/` `b` `f` `n` `r` `t`
473
473
*/
@@ -544,7 +544,7 @@ function readEscapedUnicode(lexer: Lexer, position: number): EscapeSequence {
544
544
) ;
545
545
}
546
546
547
- /**
547
+ /*
548
548
* Reads four hexadecimal characters and returns the positive integer that 16bit
549
549
* hexadecimal string represents. For example, "000f" will return 15, and "dead"
550
550
* will return 57005.
@@ -562,7 +562,7 @@ function read16BitHexCode(body: string, position: number): number {
562
562
) ;
563
563
}
564
564
565
- /**
565
+ /*
566
566
* Reads a hexadecimal character and returns its positive integer value (0-15).
567
567
*
568
568
* '0' becomes 0, '9' becomes 9
@@ -581,7 +581,7 @@ function readHexDigit(code: number): number {
581
581
: - 1 ;
582
582
}
583
583
584
- /**
584
+ /*
585
585
* | Escaped Character | Code Point | Character Name |
586
586
* | ----------------- | ---------- | ---------------------------- |
587
587
* | {`"`} | U+0022 | double quote |
@@ -624,7 +624,7 @@ function readEscapedCharacter(lexer: Lexer, position: number): EscapeSequence {
624
624
) ;
625
625
}
626
626
627
- /**
627
+ /*
628
628
* Reads a block string token from the source file.
629
629
*
630
630
* StringValue ::
@@ -703,7 +703,7 @@ function readBlockString(lexer: Lexer, start: number): Token {
703
703
throw syntaxError ( lexer . source , position , 'Unterminated string.' ) ;
704
704
}
705
705
706
- /**
706
+ /*
707
707
* Reads an alphanumeric + underscore name from the source.
708
708
*
709
709
* Name ::
@@ -746,15 +746,15 @@ function isNameStart(code: number): boolean {
746
746
return isLetter ( code ) || code === 0x005f ;
747
747
}
748
748
749
- /**
749
+ /*
750
750
* Digit :: one of
751
751
* - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`
752
752
*/
753
753
function isDigit ( code : number ) : boolean {
754
754
return code >= 0x0030 && code <= 0x0039 ;
755
755
}
756
756
757
- /**
757
+ /*
758
758
* Letter :: one of
759
759
* - `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
760
760
* - `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
0 commit comments