mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
refactor: modify the TokenFlags default value (#32112)
This commit is contained in:
parent
a53e4a19ef
commit
cd84d75147
@ -1483,7 +1483,7 @@ namespace ts {
|
||||
|
||||
function scan(): SyntaxKind {
|
||||
startPos = pos;
|
||||
tokenFlags = 0;
|
||||
tokenFlags = TokenFlags.None;
|
||||
let asteriskSeen = false;
|
||||
while (true) {
|
||||
tokenPos = pos;
|
||||
@ -2115,7 +2115,7 @@ namespace ts {
|
||||
|
||||
function scanJsDocToken(): JSDocSyntaxKind {
|
||||
startPos = tokenPos = pos;
|
||||
tokenFlags = 0;
|
||||
tokenFlags = TokenFlags.None;
|
||||
if (pos >= end) {
|
||||
return token = SyntaxKind.EndOfFileToken;
|
||||
}
|
||||
@ -2276,7 +2276,7 @@ namespace ts {
|
||||
tokenPos = textPos;
|
||||
token = SyntaxKind.Unknown;
|
||||
tokenValue = undefined!;
|
||||
tokenFlags = 0;
|
||||
tokenFlags = TokenFlags.None;
|
||||
}
|
||||
|
||||
function setInJSDocType(inType: boolean) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user