Typo fixed in a diagnostic message
This commit is contained in:
@@ -1220,7 +1220,7 @@ public class JetExpressionParsing extends AbstractJetParsing {
|
|||||||
|
|
||||||
myBuilder.restoreNewlinesState();
|
myBuilder.restoreNewlinesState();
|
||||||
|
|
||||||
expect(RPAR, "Expecting ')", TokenSet.create(ARROW, COLON));
|
expect(RPAR, "Expecting ')'", TokenSet.create(ARROW, COLON));
|
||||||
list.done(VALUE_PARAMETER_LIST);
|
list.done(VALUE_PARAMETER_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1262,7 +1262,7 @@ public class JetParsing extends AbstractJetParsing {
|
|||||||
|
|
||||||
myExpressionParsing.parseStatements();
|
myExpressionParsing.parseStatements();
|
||||||
|
|
||||||
expect(RBRACE, "Expecting '}");
|
expect(RBRACE, "Expecting '}'");
|
||||||
myBuilder.restoreNewlinesState();
|
myBuilder.restoreNewlinesState();
|
||||||
|
|
||||||
block.done(BLOCK);
|
block.done(BLOCK);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ JetFile: FunctionLiterals_ERR.kt
|
|||||||
PsiElement(LPAR)('(')
|
PsiElement(LPAR)('(')
|
||||||
VALUE_PARAMETER
|
VALUE_PARAMETER
|
||||||
PsiElement(IDENTIFIER)('a')
|
PsiElement(IDENTIFIER)('a')
|
||||||
PsiErrorElement:Expecting ')
|
PsiErrorElement:Expecting ')'
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(ARROW)('->')
|
PsiElement(ARROW)('->')
|
||||||
@@ -317,7 +317,7 @@ JetFile: FunctionLiterals_ERR.kt
|
|||||||
USER_TYPE
|
USER_TYPE
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiElement(IDENTIFIER)('b')
|
PsiElement(IDENTIFIER)('b')
|
||||||
PsiErrorElement:Expecting ')
|
PsiErrorElement:Expecting ')'
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
PsiElement(ARROW)('->')
|
PsiElement(ARROW)('->')
|
||||||
@@ -387,5 +387,5 @@ JetFile: FunctionLiterals_ERR.kt
|
|||||||
BLOCK
|
BLOCK
|
||||||
<empty list>
|
<empty list>
|
||||||
PsiElement(RBRACE)('}')
|
PsiElement(RBRACE)('}')
|
||||||
PsiErrorElement:Expecting '}
|
PsiErrorElement:Expecting '}'
|
||||||
<empty list>
|
<empty list>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
String.class
|
String.class
|
||||||
<error descr="Name expected">}</error><EOLError descr="Expecting '}"></EOLError>
|
<error descr="Name expected">}</error><EOLError descr="Expecting '}'"></EOLError>
|
||||||
|
|
||||||
// EA-56152: An attempt to build light class in checker to get diagnotics
|
// EA-56152: An attempt to build light class in checker to get diagnotics
|
||||||
Reference in New Issue
Block a user