@@ -801,7 +801,7 @@ class SourceVisitor extends ThrowingAstVisitor {
801
801
token (node.equals);
802
802
space ();
803
803
804
- visit (node.superclass );
804
+ visit (node.superclass2 );
805
805
806
806
builder.startRule (CombinatorRule ());
807
807
visit (node.withClause);
@@ -1067,7 +1067,7 @@ class SourceVisitor extends ThrowingAstVisitor {
1067
1067
1068
1068
@override
1069
1069
void visitConstructorName (ConstructorName node) {
1070
- visit (node.type );
1070
+ visit (node.type2 );
1071
1071
token (node.period);
1072
1072
visit (node.name);
1073
1073
}
@@ -1449,7 +1449,7 @@ class SourceVisitor extends ThrowingAstVisitor {
1449
1449
soloSplit ();
1450
1450
token (node.extendsKeyword);
1451
1451
space ();
1452
- visit (node.superclass );
1452
+ visit (node.superclass2 );
1453
1453
}
1454
1454
1455
1455
@override
@@ -2075,7 +2075,7 @@ class SourceVisitor extends ThrowingAstVisitor {
2075
2075
2076
2076
@override
2077
2077
void visitImplementsClause (ImplementsClause node) {
2078
- _visitCombinator (node.implementsKeyword, node.interfaces );
2078
+ _visitCombinator (node.implementsKeyword, node.interfaces2 );
2079
2079
}
2080
2080
2081
2081
@override
@@ -2340,18 +2340,18 @@ class SourceVisitor extends ThrowingAstVisitor {
2340
2340
// If there is only a single superclass constraint, format it like an
2341
2341
// "extends" in a class.
2342
2342
var onClause = node.onClause;
2343
- if (onClause != null && onClause.superclassConstraints .length == 1 ) {
2343
+ if (onClause != null && onClause.superclassConstraints2 .length == 1 ) {
2344
2344
soloSplit ();
2345
2345
token (onClause.onKeyword);
2346
2346
space ();
2347
- visit (onClause.superclassConstraints .single);
2347
+ visit (onClause.superclassConstraints2 .single);
2348
2348
}
2349
2349
2350
2350
builder.startRule (CombinatorRule ());
2351
2351
2352
2352
// If there are multiple superclass constraints, format them like the
2353
2353
// "implements" clause.
2354
- if (onClause != null && onClause.superclassConstraints .length > 1 ) {
2354
+ if (onClause != null && onClause.superclassConstraints2 .length > 1 ) {
2355
2355
visit (onClause);
2356
2356
}
2357
2357
@@ -2371,6 +2371,13 @@ class SourceVisitor extends ThrowingAstVisitor {
2371
2371
visitNamedArgument (node);
2372
2372
}
2373
2373
2374
+ @override
2375
+ void visitNamedType (NamedType node) {
2376
+ visit (node.name);
2377
+ visit (node.typeArguments);
2378
+ token (node.question);
2379
+ }
2380
+
2374
2381
@override
2375
2382
void visitNativeClause (NativeClause node) {
2376
2383
token (node.nativeKeyword);
@@ -2395,7 +2402,7 @@ class SourceVisitor extends ThrowingAstVisitor {
2395
2402
2396
2403
@override
2397
2404
void visitOnClause (OnClause node) {
2398
- _visitCombinator (node.onKeyword, node.superclassConstraints );
2405
+ _visitCombinator (node.onKeyword, node.superclassConstraints2 );
2399
2406
}
2400
2407
2401
2408
@override
@@ -2699,13 +2706,6 @@ class SourceVisitor extends ThrowingAstVisitor {
2699
2706
_visitGenericList (node.leftBracket, node.rightBracket, node.arguments);
2700
2707
}
2701
2708
2702
- @override
2703
- void visitTypeName (TypeName node) {
2704
- visit (node.name);
2705
- visit (node.typeArguments);
2706
- token (node.question);
2707
- }
2708
-
2709
2709
@override
2710
2710
void visitTypeParameter (TypeParameter node) {
2711
2711
visitParameterMetadata (node.metadata, () {
@@ -2806,7 +2806,7 @@ class SourceVisitor extends ThrowingAstVisitor {
2806
2806
2807
2807
@override
2808
2808
void visitWithClause (WithClause node) {
2809
- _visitCombinator (node.withKeyword, node.mixinTypes );
2809
+ _visitCombinator (node.withKeyword, node.mixinTypes2 );
2810
2810
}
2811
2811
2812
2812
@override
0 commit comments