We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe72af commit 38a0e0cCopy full SHA for 38a0e0c
src/parser/common/entityCollector.ts
@@ -149,10 +149,10 @@ export abstract class EntityCollector {
149
const token = this._allTokens[i];
150
if (token.channel !== Token.HIDDEN_CHANNEL) {
151
// If prev nonhidden token is ';', the current token does not belong to any statement.
152
- return token.text === ';' ? +Infinity : token.tokenIndex;
+ return token.text === ';' ? Infinity : token.tokenIndex;
153
}
154
155
- return +Infinity;
+ return Infinity;
156
157
158
protected pushStmt(ctx: ParserRuleContext, type: StmtContextType) {
0 commit comments