We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@jensjoha
We parse it as a function typed formal parameter instead.
class C { ({num n, String s}) r2; C(({int n, String s}) this.r2); }
parsed as
[(41..41): Expected an identifier., (61..64): Expected to find ')'.] class C {({num n, String s}) r2; C(({int n, String s}));} CompilationUnit declarations ClassDeclaration classKeyword: class name: C leftBracket: { members FieldDeclaration fields: VariableDeclarationList type: RecordTypeAnnotation leftParenthesis: ( namedFields: RecordTypeAnnotationNamedFields leftBracket: { fields RecordTypeAnnotationNamedField type: NamedType name: SimpleIdentifier token: num name: n RecordTypeAnnotationNamedField type: NamedType name: SimpleIdentifier token: String name: s rightBracket: } rightParenthesis: ) variables VariableDeclaration name: r2 semicolon: ; ConstructorDeclaration returnType: SimpleIdentifier token: C parameters: FormalParameterList leftParenthesis: ( parameter: FunctionTypedFormalParameter name: <empty> <synthetic> parameters: FormalParameterList leftParenthesis: ( leftDelimiter: { parameter: DefaultFormalParameter parameter: SimpleFormalParameter type: NamedType name: SimpleIdentifier token: int name: n parameter: DefaultFormalParameter parameter: SimpleFormalParameter type: NamedType name: SimpleIdentifier token: String name: s rightDelimiter: } rightParenthesis: ) rightParenthesis: ) body: EmptyFunctionBody semicolon: ; rightBracket: }
The text was updated successfully, but these errors were encountered:
92b97fe
jensjoha
No branches or pull requests
@jensjoha
We parse it as a function typed formal parameter instead.
parsed as
The text was updated successfully, but these errors were encountered: