| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | 5 library dart2js.resolution; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import '../common.dart'; |
| 9 import '../common/names.dart' show | 10 import '../common/names.dart' show |
| 10 Identifiers; | 11 Identifiers; |
| 11 import '../common/resolution.dart' show | 12 import '../common/resolution.dart' show |
| 12 Parsing, | 13 Parsing, |
| 13 Resolution, | 14 Resolution, |
| 14 ResolutionWorldImpact; | 15 ResolutionWorldImpact; |
| 15 import '../common/tasks.dart' show | 16 import '../common/tasks.dart' show |
| 16 CompilerTask, | 17 CompilerTask, |
| 17 DeferredAction; | 18 DeferredAction; |
| 18 import '../compiler.dart' show | 19 import '../compiler.dart' show |
| 19 Compiler; | 20 Compiler; |
| 20 import '../compile_time_constants.dart' show | 21 import '../compile_time_constants.dart' show |
| 21 ConstantCompiler; | 22 ConstantCompiler; |
| 22 import '../constants/values.dart' show | 23 import '../constants/values.dart' show |
| 23 ConstantValue; | 24 ConstantValue; |
| 24 import '../dart_types.dart'; | 25 import '../dart_types.dart'; |
| 25 import '../diagnostics/diagnostic_listener.dart' show | |
| 26 DiagnosticMessage, | |
| 27 DiagnosticReporter; | |
| 28 import '../diagnostics/invariant.dart' show | |
| 29 invariant; | |
| 30 import '../diagnostics/messages.dart' show | |
| 31 MessageKind; | |
| 32 import '../diagnostics/spannable.dart' show | |
| 33 Spannable; | |
| 34 import '../elements/elements.dart'; | 26 import '../elements/elements.dart'; |
| 35 import '../elements/modelx.dart' show | 27 import '../elements/modelx.dart' show |
| 36 BaseClassElementX, | 28 BaseClassElementX, |
| 37 BaseFunctionElementX, | 29 BaseFunctionElementX, |
| 38 ConstructorElementX, | 30 ConstructorElementX, |
| 39 FieldElementX, | 31 FieldElementX, |
| 40 FunctionElementX, | 32 FunctionElementX, |
| 41 GetterElementX, | 33 GetterElementX, |
| 42 MetadataAnnotationX, | 34 MetadataAnnotationX, |
| 43 MixinApplicationElementX, | 35 MixinApplicationElementX, |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 TreeElements get treeElements { | 1068 TreeElements get treeElements { |
| 1077 assert(invariant(this, _treeElements !=null, | 1069 assert(invariant(this, _treeElements !=null, |
| 1078 message: "TreeElements have not been computed for $this.")); | 1070 message: "TreeElements have not been computed for $this.")); |
| 1079 return _treeElements; | 1071 return _treeElements; |
| 1080 } | 1072 } |
| 1081 | 1073 |
| 1082 void reuseElement() { | 1074 void reuseElement() { |
| 1083 _treeElements = null; | 1075 _treeElements = null; |
| 1084 } | 1076 } |
| 1085 } | 1077 } |
| OLD | NEW |