@@ -1244,7 +1244,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
12441244 fragment.enclosingFragment = parentFragment;
12451245 _libraryBuilder.addFragmentChild (parentFragment, fragment);
12461246 }
1247- _buildType ( node.fields.type);
1247+ node.fields.type? . accept ( this );
12481248 }
12491249
12501250 @override
@@ -1286,7 +1286,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
12861286 }
12871287 });
12881288
1289- _buildType ( node.type);
1289+ node.type? . accept ( this );
12901290 }
12911291
12921292 @override
@@ -1357,7 +1357,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
13571357 typeParameters: functionExpression.typeParameters,
13581358 );
13591359
1360- _buildType ( node.returnType);
1360+ node.returnType? . accept ( this );
13611361 }
13621362
13631363 @override
@@ -1432,7 +1432,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
14321432 }
14331433 });
14341434
1435- _buildType ( node.returnType);
1435+ node.returnType? . accept ( this );
14361436 }
14371437
14381438 @override
@@ -1456,7 +1456,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
14561456 }
14571457 });
14581458
1459- _buildType ( node.returnType);
1459+ node.returnType? . accept ( this );
14601460 }
14611461
14621462 @override
@@ -1571,7 +1571,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
15711571 typeParameters: node.typeParameters,
15721572 );
15731573
1574- _buildType ( node.returnType);
1574+ node.returnType? . accept ( this );
15751575 }
15761576
15771577 @override
@@ -1681,7 +1681,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
16811681
16821682 node.declaredFragment = fragment;
16831683
1684- _buildType ( node.type);
1684+ node.type? . accept ( this );
16851685 }
16861686
16871687 @override
@@ -1723,7 +1723,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
17231723 }
17241724 });
17251725
1726- _buildType ( node.type);
1726+ node.type? . accept ( this );
17271727 }
17281728
17291729 @override
@@ -1764,7 +1764,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
17641764 variable.declaredFragment = fragment;
17651765 }
17661766
1767- _buildType ( node.variables.type);
1767+ node.variables.type? . accept ( this );
17681768 }
17691769
17701770 @override
@@ -1787,7 +1787,7 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
17871787 _linker.elementNodes[fragment] = node;
17881788 _enclosingContext.addTypeParameter (name, fragment);
17891789
1790- _buildType ( node.bound);
1790+ node.bound? . accept ( this );
17911791 }
17921792
17931793 @override
@@ -1826,11 +1826,6 @@ class FragmentBuilder extends ThrowingAstVisitor<void> {
18261826 return MetadataImpl (annotations);
18271827 }
18281828
1829- // TODO(scheglov): Maybe inline?
1830- void _buildType (TypeAnnotation ? node) {
1831- node? .accept (this );
1832- }
1833-
18341829 void _builtRepresentationDeclaration ({
18351830 required ExtensionTypeFragmentImpl extensionFragment,
18361831 required ExtensionTypeDeclarationImpl extensionNode,
0 commit comments