Skip to content

Commit

Permalink
Merge pull request #2 from unv-unv/unv/compilation-fix
Browse files Browse the repository at this point in the history
Fixed compilation error in GwtScriptExpressionParsing due to recent changes in consulo-javascript.
  • Loading branch information
VISTALL authored Jul 6, 2024
2 parents 29cbba6 + 8825000 commit 2ee3564
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import consulo.gwt.javascript.lang.GwtJavaScriptElements;
import consulo.javascript.lang.parsing.ExpressionParsing;
import consulo.javascript.lang.parsing.JavaScriptParsingContext;
import consulo.javascript.language.JavaScriptBundle;
import consulo.javascript.localize.JavaScriptLocalize;
import consulo.language.ast.IElementType;
import consulo.language.parser.PsiBuilder;

Expand Down Expand Up @@ -103,7 +103,7 @@ else if(!parsePrimaryExpression(builder))
}
else
{
builder.error(JavaScriptBundle.message("javascript.parser.message.expected.name"));
builder.error(JavaScriptLocalize.javascriptParserMessageExpectedName());
}

if(gwtExprMark == null)
Expand All @@ -123,7 +123,7 @@ else if(tokenType == JSTokenTypes.LBRACKET)
{
builder.advanceLexer();
parseExpression(builder);
checkMatches(builder, JSTokenTypes.RBRACKET, JavaScriptBundle.message("javascript.parser.message.expected.rbracket"));
checkMatches(builder, JSTokenTypes.RBRACKET, JavaScriptLocalize.javascriptParserMessageExpectedRbracket());
expr.done(JSElementTypes.INDEXED_PROPERTY_ACCESS_EXPRESSION);
expr = expr.precede();
}
Expand Down

0 comments on commit 2ee3564

Please sign in to comment.