Skip to content

Commit f038619

Browse files
committed
bugfix: parser hangs on 'text'[
1 parent 05543c0 commit f038619

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client/compiler/parser/Parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ export class Parser {
22002200
let isStringConstant = this.tt == TokenType.stringConstant;
22012201
this.nextToken();
22022202

2203-
if (isStringConstant) return this.parseDotOrArrayChains(term);
2203+
if (isStringConstant) return this.parseDotChains(term);
22042204

22052205
return term;
22062206
case TokenType.identifier: // attribute of current class or local variable
@@ -2377,11 +2377,11 @@ export class Parser {
23772377

23782378
}
23792379

2380-
parseDotOrArrayChains(term: TermNode): TermNode {
2380+
parseDotChains(term: TermNode): TermNode {
23812381

23822382
if (term == null) return null;
23832383

2384-
while (this.comesToken([TokenType.dot, TokenType.leftSquareBracket])) {
2384+
while (this.comesToken([TokenType.dot])) {
23852385
if (this.tt == TokenType.dot) {
23862386

23872387
this.nextToken();

0 commit comments

Comments
 (0)