explicitConstructorInvocation was broken and unnecessary

This commit is contained in:
Sam Harwell 2013-04-22 17:31:58 -05:00
parent ad41c3b14f
commit f1fc42024f
2 changed files with 4 additions and 16 deletions

View File

@ -495,15 +495,9 @@ methodBody
;
constructorBody
: '{' explicitConstructorInvocation? blockStatement* '}'
: block
;
explicitConstructorInvocation
: nonWildcardTypeArguments? ('this' | 'super') arguments ';'
| primary '.' nonWildcardTypeArguments? 'super' arguments ';'
;
qualifiedName
: Identifier ('.' Identifier)*
;
@ -814,7 +808,7 @@ explicitGenericInvocation
nonWildcardTypeArguments
: '<' typeList '>'
;
typeArgumentsOrDiamond
: '<' '>'
| typeArguments

View File

@ -492,15 +492,9 @@ methodBody
;
constructorBody
: '{' explicitConstructorInvocation? blockStatement* '}'
: block
;
explicitConstructorInvocation
: nonWildcardTypeArguments? ('this' | 'super') arguments ';'
| primary '.' nonWildcardTypeArguments? 'super' arguments ';'
;
qualifiedName
: Identifier ('.' Identifier)*
;
@ -620,7 +614,7 @@ variableModifiers
;
statement
: block
: block
| ASSERT expression (':' expression)? ';'
| 'if' parExpression statement ('else' statement)?
| 'for' '(' forControl ')' statement