KT-222 Grammar Docu of objectLiteral slightly wrong
#KT-222 Fixed
This commit is contained in:
@@ -1859,7 +1859,10 @@ public class JetExpressionParsing extends AbstractJetParsing {
|
|||||||
parseExpression();
|
parseExpression();
|
||||||
argument.done(VALUE_ARGUMENT);
|
argument.done(VALUE_ARGUMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* "object" (":" delegationSpecifier{","})? classBody // Cannot make class body optional: foo(object : F, A)
|
||||||
|
*/
|
||||||
public void parseObjectLiteral() {
|
public void parseObjectLiteral() {
|
||||||
PsiBuilder.Marker literal = mark();
|
PsiBuilder.Marker literal = mark();
|
||||||
PsiBuilder.Marker declaration = mark();
|
PsiBuilder.Marker declaration = mark();
|
||||||
|
|||||||
@@ -1552,7 +1552,7 @@ public class JetParsing extends AbstractJetParsing {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* functionType
|
* functionType
|
||||||
* : (type ".")? "(" (parameter | modifiers type){","} ")" "->" type?
|
* : (type ".")? "(" (parameter | modifiers type){","}? ")" "->" type?
|
||||||
* ;
|
* ;
|
||||||
*/
|
*/
|
||||||
private void parseFunctionType() {
|
private void parseFunctionType() {
|
||||||
@@ -1560,9 +1560,7 @@ public class JetParsing extends AbstractJetParsing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private PsiBuilder.Marker parseFunctionTypeContents() {
|
private PsiBuilder.Marker parseFunctionTypeContents() {
|
||||||
// assert _at(LPAR) : tt();
|
assert _at(LPAR) : tt();
|
||||||
if (!_at(LPAR))
|
|
||||||
System.out.println(myBuilder.getTokenText());
|
|
||||||
PsiBuilder.Marker functionType = mark();
|
PsiBuilder.Marker functionType = mark();
|
||||||
|
|
||||||
// advance(); // LPAR
|
// advance(); // LPAR
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ arrayAccess
|
|||||||
;
|
;
|
||||||
|
|
||||||
objectLiteral
|
objectLiteral
|
||||||
: "object" ":" delegationSpecifier{","}? classBody // Cannot make class body optional: foo(object : F, A)
|
: "object" (":" delegationSpecifier{","})? classBody // Cannot make class body optional: foo(object : F, A)
|
||||||
;
|
;
|
||||||
|
|
||||||
/* Factory methods:
|
/* Factory methods:
|
||||||
|
|||||||
Reference in New Issue
Block a user