Skip to content

Commit 8a551ce

Browse files
committed
refactor: convert to non-ts doc comment for unexported members
1 parent 0810817 commit 8a551ce

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/language/lexer.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean {
107107
);
108108
}
109109

110-
/**
110+
/*
111111
* SourceCharacter ::
112112
* - U+0009 (Horizontal Tab)
113113
* - U+000A (New Line)
@@ -120,7 +120,7 @@ function isSourceCharacter(code: number): boolean {
120120
);
121121
}
122122

123-
/**
123+
/*
124124
* Prints the code point (or end of file reference) at a given location in a
125125
* source for use in error messages.
126126
*
@@ -143,7 +143,7 @@ function printCodePointAt(lexer: Lexer, location: number): string {
143143
return `U+${zeroPad}${code.toString(16).toUpperCase()}`;
144144
}
145145

146-
/**
146+
/*
147147
* Create a token with line and column location information.
148148
*/
149149
function createToken(
@@ -158,7 +158,7 @@ function createToken(
158158
return new Token(kind, start, end, line, col, value);
159159
}
160160

161-
/**
161+
/*
162162
* Gets the next token from the source starting at the given position.
163163
*
164164
* This skips over whitespace until it finds the next lexable token, then lexes
@@ -293,7 +293,7 @@ function readNextToken(lexer: Lexer, start: number): Token {
293293
return createToken(lexer, TokenKind.EOF, bodyLength, bodyLength);
294294
}
295295

296-
/**
296+
/*
297297
* Reads a comment token from the source file.
298298
*
299299
* Comment :: # CommentChar* [lookahead != CommentChar]
@@ -330,11 +330,11 @@ function readComment(lexer: Lexer, start: number): Token {
330330
);
331331
}
332332

333-
/**
333+
/*
334334
* Reads a number token from the source file, either a FloatValue or an IntValue
335335
* depending on whether a FractionalPart or ExponentPart is encountered.
336336
*
337-
* IntValue :: IntegerPart `[lookahead != {Digit, `.`, NameStart}]`
337+
* IntValue :: IntegerPart [lookahead != {Digit, `.`, NameStart}]
338338
*
339339
* IntegerPart ::
340340
* - NegativeSign? 0
@@ -345,9 +345,9 @@ function readComment(lexer: Lexer, start: number): Token {
345345
* NonZeroDigit :: Digit but not `0`
346346
*
347347
* 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}]
351351
*
352352
* FractionalPart :: . Digit+
353353
*
@@ -429,7 +429,7 @@ function readNumber(lexer: Lexer, start: number, firstCode: number): Token {
429429
);
430430
}
431431

432-
/**
432+
/*
433433
* Returns the new position in the source after reading one or more digits.
434434
*/
435435
function readDigits(lexer: Lexer, start: number, firstCode: number): number {
@@ -455,7 +455,7 @@ function readDigits(lexer: Lexer, start: number, firstCode: number): number {
455455
return position;
456456
}
457457

458-
/**
458+
/*
459459
* Reads a single-quote string token from the source file.
460460
*
461461
* StringValue ::
@@ -467,7 +467,7 @@ function readDigits(lexer: Lexer, start: number, firstCode: number): number {
467467
* - `\u` EscapedUnicode
468468
* - `\` EscapedCharacter
469469
*
470-
* EscapedUnicode :: `/[0-9A-Fa-f]{4}/`
470+
* EscapedUnicode :: /[0-9A-Fa-f]{4}/
471471
*
472472
* EscapedCharacter :: one of `"` `\` `/` `b` `f` `n` `r` `t`
473473
*/
@@ -544,7 +544,7 @@ function readEscapedUnicode(lexer: Lexer, position: number): EscapeSequence {
544544
);
545545
}
546546

547-
/**
547+
/*
548548
* Reads four hexadecimal characters and returns the positive integer that 16bit
549549
* hexadecimal string represents. For example, "000f" will return 15, and "dead"
550550
* will return 57005.
@@ -562,7 +562,7 @@ function read16BitHexCode(body: string, position: number): number {
562562
);
563563
}
564564

565-
/**
565+
/*
566566
* Reads a hexadecimal character and returns its positive integer value (0-15).
567567
*
568568
* '0' becomes 0, '9' becomes 9
@@ -581,7 +581,7 @@ function readHexDigit(code: number): number {
581581
: -1;
582582
}
583583

584-
/**
584+
/*
585585
* | Escaped Character | Code Point | Character Name |
586586
* | ----------------- | ---------- | ---------------------------- |
587587
* | {`"`} | U+0022 | double quote |
@@ -624,7 +624,7 @@ function readEscapedCharacter(lexer: Lexer, position: number): EscapeSequence {
624624
);
625625
}
626626

627-
/**
627+
/*
628628
* Reads a block string token from the source file.
629629
*
630630
* StringValue ::
@@ -703,7 +703,7 @@ function readBlockString(lexer: Lexer, start: number): Token {
703703
throw syntaxError(lexer.source, position, 'Unterminated string.');
704704
}
705705

706-
/**
706+
/*
707707
* Reads an alphanumeric + underscore name from the source.
708708
*
709709
* Name ::
@@ -746,15 +746,15 @@ function isNameStart(code: number): boolean {
746746
return isLetter(code) || code === 0x005f;
747747
}
748748

749-
/**
749+
/*
750750
* Digit :: one of
751751
* - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`
752752
*/
753753
function isDigit(code: number): boolean {
754754
return code >= 0x0030 && code <= 0x0039;
755755
}
756756

757-
/**
757+
/*
758758
* Letter :: one of
759759
* - `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
760760
* - `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`

0 commit comments

Comments
 (0)