4 years, 4 months ago
(2016-10-21 12:24:34 UTC)
#3
https://codereview.chromium.org/2439573003/diff/20001/pkg/analyzer/lib/src/ge...
File pkg/analyzer/lib/src/generated/parser.dart (right):
https://codereview.chromium.org/2439573003/diff/20001/pkg/analyzer/lib/src/ge...
pkg/analyzer/lib/src/generated/parser.dart:4838: * functionType ::=
typeParameterList? formalParameterList '-' '>' returnType
On 2016/10/20 19:36:44, Lasse Reichstein Nielsen wrote:
> I assume you use '-' '>' instead of '->' because it's easier than introducing
a
> new token?
correct.
https://codereview.chromium.org/2439573003/diff/20001/pkg/analyzer/lib/src/ge...
pkg/analyzer/lib/src/generated/parser.dart:6585: parameters =
_parseFormalParameterListUnchecked();
On 2016/10/20 19:36:44, Lasse Reichstein Nielsen wrote:
> Using the old formal-parameter list, so a single identifier is a name, not a
> type, right?
Right.
I wanted to see how hard it would be to change the parser. Resolving it the
right way shouldn't be too hard, once the parser has constructed the nodes.
Issue 2439573003: Experiment with new function-type syntax.
Created 4 years, 4 months ago by floitsch
Modified 4 years, 4 months ago
Reviewers: Lasse Reichstein Nielsen
Base URL:
Comments: 4