| 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.variables; | 5 library dart2js.resolution.variables; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart'; | 8 import '../common/resolution.dart'; |
| 9 import '../elements/modelx.dart' show LocalVariableElementX, VariableList; | 9 import '../elements/modelx.dart' show LocalVariableElementX, VariableList; |
| 10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| 11 import '../universe/use.dart' show TypeUse; | |
| 12 import '../universe/feature.dart'; | 11 import '../universe/feature.dart'; |
| 13 import '../util/util.dart' show Link; | 12 import '../util/util.dart' show Link; |
| 14 import 'members.dart' show ResolverVisitor; | 13 import 'members.dart' show ResolverVisitor; |
| 15 import 'registry.dart' show ResolutionRegistry; | 14 import 'registry.dart' show ResolutionRegistry; |
| 16 import 'resolution_common.dart' show CommonResolverVisitor; | 15 import 'resolution_common.dart' show CommonResolverVisitor; |
| 17 import 'scope.dart' show VariableDefinitionScope; | 16 import 'scope.dart' show VariableDefinitionScope; |
| 18 | 17 |
| 19 class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> { | 18 class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> { |
| 20 VariableDefinitions definitions; | 19 VariableDefinitions definitions; |
| 21 ResolverVisitor resolver; | 20 ResolverVisitor resolver; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 resolver.addToScope(element); | 68 resolver.addToScope(element); |
| 70 if (definitions.modifiers.isConst) { | 69 if (definitions.modifiers.isConst) { |
| 71 addDeferredAction(element, () { | 70 addDeferredAction(element, () { |
| 72 element.constant = | 71 element.constant = |
| 73 resolution.resolver.constantCompiler.compileConstant(element); | 72 resolution.resolver.constantCompiler.compileConstant(element); |
| 74 }); | 73 }); |
| 75 } | 74 } |
| 76 } | 75 } |
| 77 } | 76 } |
| 78 } | 77 } |
| OLD | NEW |