File tree Expand file tree Collapse file tree
src/client/compiler/parser Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments