| 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 library dart2js.resolution.tree_elements; | 5 library dart2js.resolution.tree_elements; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
| 10 import '../diagnostics/source_span.dart'; | 10 import '../diagnostics/source_span.dart'; |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 String toString() => 'TreeElementMapping($analyzedElement)'; | 358 String toString() => 'TreeElementMapping($analyzedElement)'; |
| 359 | 359 |
| 360 @override | 360 @override |
| 361 void forEachConstantNode(f(Node n, ConstantExpression c)) { | 361 void forEachConstantNode(f(Node n, ConstantExpression c)) { |
| 362 if (_constants != null) { | 362 if (_constants != null) { |
| 363 _constants.forEach(f); | 363 _constants.forEach(f); |
| 364 } | 364 } |
| 365 } | 365 } |
| 366 | 366 |
| 367 @override | 367 @override |
| 368 FunctionElement getFunctionDefinition(FunctionExpression node) { | 368 Element getFunctionDefinition(FunctionExpression node) { |
| 369 return this[node]; | 369 return this[node]; |
| 370 } | 370 } |
| 371 | 371 |
| 372 @override | 372 @override |
| 373 ConstructorElement getRedirectingTargetConstructor( | 373 ConstructorElement getRedirectingTargetConstructor( |
| 374 RedirectingFactoryBody node) { | 374 RedirectingFactoryBody node) { |
| 375 return this[node]; | 375 return this[node]; |
| 376 } | 376 } |
| 377 | 377 |
| 378 void defineTarget(Node node, JumpTarget target) { | 378 void defineTarget(Node node, JumpTarget target) { |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 _nativeData = <Node, dynamic>{}; | 521 _nativeData = <Node, dynamic>{}; |
| 522 } | 522 } |
| 523 _nativeData[node] = nativeData; | 523 _nativeData[node] = nativeData; |
| 524 } | 524 } |
| 525 | 525 |
| 526 @override | 526 @override |
| 527 dynamic getNativeData(Node node) { | 527 dynamic getNativeData(Node node) { |
| 528 return _nativeData != null ? _nativeData[node] : null; | 528 return _nativeData != null ? _nativeData[node] : null; |
| 529 } | 529 } |
| 530 } | 530 } |
| OLD | NEW |