@@ -41,7 +41,7 @@ class ClassMemberParserTest extends FastaParserTestCase
4141 expect (constructor.name, isNull);
4242 expect (constructor.parameters, isNotNull);
4343 expect (constructor.period, isNull);
44- expect (constructor.returnType , isNotNull);
44+ expect (constructor.typeName , isNotNull);
4545 expect (constructor.initializers, hasLength (2 ));
4646
4747 {
@@ -294,7 +294,7 @@ class ClassMemberParserTest extends FastaParserTestCase
294294 expect (constructor.name, isNull);
295295 expect (constructor.parameters, isNotNull);
296296 expect (constructor.period, isNull);
297- expect (constructor.returnType , isNotNull);
297+ expect (constructor.typeName , isNotNull);
298298 expect (constructor.initializers, hasLength (1 ));
299299
300300 var x = constructor.initializers[0 ] as ConstructorFieldInitializer ;
@@ -388,7 +388,7 @@ class ClassMemberParserTest extends FastaParserTestCase
388388 expect (constructor.name, isNull);
389389 expect (constructor.parameters, isNotNull);
390390 expect (constructor.period, isNull);
391- expect (constructor.returnType , isNotNull);
391+ expect (constructor.typeName , isNotNull);
392392 expect (constructor.initializers, hasLength (1 ));
393393 }
394394
@@ -1393,7 +1393,7 @@ void Function<A>(core.List<core.int> x) m() => null;
13931393 expect (constructor.externalKeyword, isNull);
13941394 expect (constructor.constKeyword! .keyword, Keyword .CONST );
13951395 expect (constructor.factoryKeyword! .keyword, Keyword .FACTORY );
1396- expect (constructor.returnType .name, 'C' );
1396+ expect (constructor.typeName ! .name, 'C' );
13971397 expect (constructor.period, isNull);
13981398 expect (constructor.name, isNull);
13991399 expect (constructor.parameters, isNotNull);
@@ -1419,7 +1419,7 @@ void Function<A>(core.List<core.int> x) m() => null;
14191419 expect (constructor.externalKeyword, isNull);
14201420 expect (constructor.constKeyword, isNull);
14211421 expect (constructor.factoryKeyword! .keyword, Keyword .FACTORY );
1422- expect (constructor.returnType .name, 'C' );
1422+ expect (constructor.typeName ! .name, 'C' );
14231423 expect (constructor.period, isNull);
14241424 expect (constructor.name, isNull);
14251425 expect (constructor.parameters, isNotNull);
@@ -1446,7 +1446,7 @@ void Function<A>(core.List<core.int> x) m() => null;
14461446 expect (constructor.externalKeyword, isNull);
14471447 expect (constructor.constKeyword, isNull);
14481448 expect (constructor.factoryKeyword! .keyword, Keyword .FACTORY );
1449- expect (constructor.returnType .name, 'C' );
1449+ expect (constructor.typeName ! .name, 'C' );
14501450 expect (constructor.period, isNull);
14511451 expect (constructor.name, isNull);
14521452 expect (constructor.parameters, isNotNull);
@@ -1494,7 +1494,7 @@ void Function<A>(core.List<core.int> x) m() => null;
14941494 expect (constructor.externalKeyword, isNull);
14951495 expect (constructor.constKeyword, isNull);
14961496 expect (constructor.factoryKeyword, isNotNull);
1497- expect (constructor.returnType .name, 'C' );
1497+ expect (constructor.typeName ! .name, 'C' );
14981498 expect (constructor.period! .type, TokenType .PERIOD );
14991499 expect (constructor.name! .lexeme, 'foo' );
15001500 expect (constructor.parameters, isNotNull);
@@ -1548,7 +1548,7 @@ void Function<A>(core.List<core.int> x) m() => null;
15481548 expect (constructor.externalKeyword, isNull);
15491549 expect (constructor.constKeyword, isNull);
15501550 expect (constructor.factoryKeyword, isNull);
1551- expect (constructor.returnType .name, 'C' );
1551+ expect (constructor.typeName ! .name, 'C' );
15521552 expect (constructor.period! .type, TokenType .PERIOD );
15531553 expect (constructor.name! .lexeme, 'foo' );
15541554 expect (constructor.parameters, isNotNull);
@@ -1605,7 +1605,7 @@ void Function<A>(core.List<core.int> x) m() => null;
16051605 expect (constructor.externalKeyword, isNull);
16061606 expect (constructor.constKeyword, isNull);
16071607 expect (constructor.factoryKeyword, isNull);
1608- expect (constructor.returnType .name, 'C' );
1608+ expect (constructor.typeName ! .name, 'C' );
16091609 expect (constructor.name, isNull);
16101610 expect (constructor.parameters, isNotNull);
16111611 expect (constructor.parameters.parameters, isEmpty);
@@ -1628,7 +1628,7 @@ void Function<A>(core.List<core.int> x) m() => null;
16281628 expect (constructor.externalKeyword, isNull);
16291629 expect (constructor.constKeyword, isNull);
16301630 expect (constructor.factoryKeyword, isNull);
1631- expect (constructor.returnType .name, 'C' );
1631+ expect (constructor.typeName ! .name, 'C' );
16321632 expect (constructor.name, isNull);
16331633 expect (constructor.parameters, isNotNull);
16341634 expect (constructor.parameters.parameters, isEmpty);
@@ -1649,7 +1649,7 @@ void Function<A>(core.List<core.int> x) m() => null;
16491649 expect (constructor.externalKeyword, isNull);
16501650 expect (constructor.constKeyword, isNull);
16511651 expect (constructor.factoryKeyword, isNull);
1652- expect (constructor.returnType .name, 'C' );
1652+ expect (constructor.typeName ! .name, 'C' );
16531653 expect (constructor.period, isNull);
16541654 expect (constructor.name, isNull);
16551655 expect (constructor.parameters, isNotNull);
@@ -2014,7 +2014,7 @@ void Function<A>(core.List<core.int> x) m() => null;
20142014 expect (constructor.externalKeyword, isNull);
20152015 expect (constructor.name, isNull);
20162016 expect (constructor.parameters, isNotNull);
2017- expect (constructor.returnType , isNotNull);
2017+ expect (constructor.typeName , isNotNull);
20182018 }
20192019
20202020 void test_parseGetter_nonStatic () {
0 commit comments