diff --git a/gwt-javascript-impl/src/main/java/consulo/gwt/javascript/lang/parsing/GwtScriptExpressionParsing.java b/gwt-javascript-impl/src/main/java/consulo/gwt/javascript/lang/parsing/GwtScriptExpressionParsing.java index 26fd90a..9b4da9e 100644 --- a/gwt-javascript-impl/src/main/java/consulo/gwt/javascript/lang/parsing/GwtScriptExpressionParsing.java +++ b/gwt-javascript-impl/src/main/java/consulo/gwt/javascript/lang/parsing/GwtScriptExpressionParsing.java @@ -6,7 +6,7 @@ import consulo.javascript.lang.parsing.ExpressionParsing; import consulo.javascript.lang.parsing.JavaScriptParsingContext; import consulo.javascript.language.JavaScriptBundle; -import consulo.language.ast.IElementType; +import consulo.javascript.localize.JavaScriptLocalize;import consulo.language.ast.IElementType; import consulo.language.parser.PsiBuilder; /** @@ -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) @@ -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(); }