OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library engine.incremental_resolution_validator; | 5 library engine.incremental_resolution_validator; |
6 | 6 |
7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
9 | 9 |
10 /** | 10 /** |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 @override | 178 @override |
179 visitConditionalExpression(ConditionalExpression node) { | 179 visitConditionalExpression(ConditionalExpression node) { |
180 ConditionalExpression other = this.other; | 180 ConditionalExpression other = this.other; |
181 _visitExpression(node, other); | 181 _visitExpression(node, other); |
182 _visitNode(node.condition, other.condition); | 182 _visitNode(node.condition, other.condition); |
183 _visitNode(node.thenExpression, other.thenExpression); | 183 _visitNode(node.thenExpression, other.thenExpression); |
184 _visitNode(node.elseExpression, other.elseExpression); | 184 _visitNode(node.elseExpression, other.elseExpression); |
185 } | 185 } |
186 | 186 |
187 @override | 187 @override |
| 188 visitConfiguration(Configuration node) { |
| 189 Configuration other = this.other; |
| 190 _visitNode(node.name, other.name); |
| 191 _visitNode(node.value, other.value); |
| 192 _visitNode(node.libraryUri, other.libraryUri); |
| 193 } |
| 194 |
| 195 @override |
188 visitConstructorDeclaration(ConstructorDeclaration node) { | 196 visitConstructorDeclaration(ConstructorDeclaration node) { |
189 ConstructorDeclaration other = this.other; | 197 ConstructorDeclaration other = this.other; |
190 _visitDeclaration(node, other); | 198 _visitDeclaration(node, other); |
191 _visitNode(node.returnType, other.returnType); | 199 _visitNode(node.returnType, other.returnType); |
192 _visitNode(node.name, other.name); | 200 _visitNode(node.name, other.name); |
193 _visitNode(node.parameters, other.parameters); | 201 _visitNode(node.parameters, other.parameters); |
194 _visitNode(node.redirectedConstructor, other.redirectedConstructor); | 202 _visitNode(node.redirectedConstructor, other.redirectedConstructor); |
195 _visitList(node.initializers, other.initializers); | 203 _visitList(node.initializers, other.initializers); |
196 } | 204 } |
197 | 205 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 } | 239 } |
232 | 240 |
233 @override | 241 @override |
234 visitDoStatement(DoStatement node) { | 242 visitDoStatement(DoStatement node) { |
235 DoStatement other = this.other; | 243 DoStatement other = this.other; |
236 _visitNode(node.condition, other.condition); | 244 _visitNode(node.condition, other.condition); |
237 _visitNode(node.body, other.body); | 245 _visitNode(node.body, other.body); |
238 } | 246 } |
239 | 247 |
240 @override | 248 @override |
| 249 visitDottedName(DottedName node) { |
| 250 DottedName other = this.other; |
| 251 _visitList(node.components, other.components); |
| 252 } |
| 253 |
| 254 @override |
241 visitDoubleLiteral(DoubleLiteral node) { | 255 visitDoubleLiteral(DoubleLiteral node) { |
242 DoubleLiteral other = this.other; | 256 DoubleLiteral other = this.other; |
243 _visitExpression(node, other); | 257 _visitExpression(node, other); |
244 } | 258 } |
245 | 259 |
246 @override | 260 @override |
247 visitEmptyFunctionBody(EmptyFunctionBody node) {} | 261 visitEmptyFunctionBody(EmptyFunctionBody node) {} |
248 | 262 |
249 @override | 263 @override |
250 visitEmptyStatement(EmptyStatement node) {} | 264 visitEmptyStatement(EmptyStatement node) {} |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 * package:project/my_lib.dart -> my_lib.dart | 943 * package:project/my_lib.dart -> my_lib.dart |
930 */ | 944 */ |
931 static String _getShortElementLocationUri(String uri) { | 945 static String _getShortElementLocationUri(String uri) { |
932 int index = uri.lastIndexOf('/'); | 946 int index = uri.lastIndexOf('/'); |
933 if (index == -1) { | 947 if (index == -1) { |
934 return uri; | 948 return uri; |
935 } | 949 } |
936 return uri.substring(index + 1); | 950 return uri.substring(index + 1); |
937 } | 951 } |
938 } | 952 } |
OLD | NEW |