You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since @kaby76 pointed out that the Dart spec does not have super parameters, I submitted a ticket to the Dart community.
By the way, here is a workaround I made in Dart2Parser.g4:
fieldFormalParameter// The original rule was: finalConstVarOrType? THIS_ D identifier (formalParameterPart QU?)?// Since Dart spec does not have super parameters, I include SUPER_ as a workaround.
: finalConstVarOrType? (THIS_|SUPER_) D identifier (formalParameterPart QU?)?
;
I'm using Dart2Parser.g4, Dart2Lexer.g4, and Dart2LexerBase.java.
The grammar could not parse the following code:
It failed at
super.lastName
.Here is the error message:
Here is the Java code to reproduce the issue:
The text was updated successfully, but these errors were encountered: