OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:analyzer/analyzer.dart' as analyzer; | 5 import 'package:analyzer/analyzer.dart' as analyzer; |
6 import 'package:analyzer/dart/ast/ast.dart'; | 6 import 'package:analyzer/dart/ast/ast.dart'; |
7 import 'package:analyzer/dart/element/type.dart' show DartType; | 7 import 'package:analyzer/dart/element/type.dart' show DartType; |
8 import 'package:analyzer/src/dart/ast/ast.dart' show FunctionBodyImpl; | 8 import 'package:analyzer/src/dart/ast/ast.dart' show FunctionBodyImpl; |
9 import 'package:analyzer/src/dart/ast/utilities.dart' show NodeReplacer; | 9 import 'package:analyzer/src/dart/ast/utilities.dart' show NodeReplacer; |
10 import 'package:analyzer/src/dart/element/type.dart' show DynamicTypeImpl; | 10 import 'package:analyzer/src/dart/element/type.dart' show DynamicTypeImpl; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 130 } |
131 | 131 |
132 @override | 132 @override |
133 /*=E*/ cloneNode/*<E extends AstNode>*/(/*=E*/ node) { | 133 /*=E*/ cloneNode/*<E extends AstNode>*/(/*=E*/ node) { |
134 var clone = super.cloneNode(node); | 134 var clone = super.cloneNode(node); |
135 _cloneProperties(clone, node); | 135 _cloneProperties(clone, node); |
136 return clone; | 136 return clone; |
137 } | 137 } |
138 | 138 |
139 @override | 139 @override |
140 List/*<E>*/ cloneNodeList/*<E extends AstNode>*/(NodeList/*<E>*/ list) { | 140 List/*<E>*/ cloneNodeList/*<E extends AstNode>*/(List/*<E>*/ list) { |
141 var clone = super.cloneNodeList(list); | 141 var clone = super.cloneNodeList(list); |
142 for (int i = 0, len = list.length; i < len; i++) { | 142 for (int i = 0, len = list.length; i < len; i++) { |
143 _cloneProperties(clone[i], list[i]); | 143 _cloneProperties(clone[i], list[i]); |
144 } | 144 } |
145 return clone; | 145 return clone; |
146 } | 146 } |
147 | 147 |
148 // TODO(jmesserly): ResolutionCopier is not copying this yet. | 148 // TODO(jmesserly): ResolutionCopier is not copying this yet. |
149 @override | 149 @override |
150 BlockFunctionBody visitBlockFunctionBody(BlockFunctionBody node) { | 150 BlockFunctionBody visitBlockFunctionBody(BlockFunctionBody node) { |
(...skipping 14 matching lines...) Expand all Loading... |
165 | 165 |
166 // TODO(jmesserly): workaround for | 166 // TODO(jmesserly): workaround for |
167 // https://github.com/dart-lang/sdk/issues/26368 | 167 // https://github.com/dart-lang/sdk/issues/26368 |
168 @override | 168 @override |
169 TypeName visitTypeName(TypeName node) { | 169 TypeName visitTypeName(TypeName node) { |
170 var clone = super.visitTypeName(node); | 170 var clone = super.visitTypeName(node); |
171 clone.type = node.type; | 171 clone.type = node.type; |
172 return clone; | 172 return clone; |
173 } | 173 } |
174 } | 174 } |
OLD | NEW |