| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart' show Identifiers; | 8 import '../common/names.dart' show Identifiers; |
| 9 import '../common/resolution.dart' show Resolution, ParsingContext; | 9 import '../common/resolution.dart' show Resolution, ParsingContext; |
| 10 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 final ImportElement deferredImport; | 1255 final ImportElement deferredImport; |
| 1256 | 1256 |
| 1257 PrefixElementX( | 1257 PrefixElementX( |
| 1258 String prefix, Element enclosing, this.firstPosition, this.deferredImport) | 1258 String prefix, Element enclosing, this.firstPosition, this.deferredImport) |
| 1259 : super(prefix, ElementKind.PREFIX, enclosing); | 1259 : super(prefix, ElementKind.PREFIX, enclosing); |
| 1260 | 1260 |
| 1261 bool get isTopLevel => false; | 1261 bool get isTopLevel => false; |
| 1262 | 1262 |
| 1263 Element lookupLocalMember(String memberName) => importScope[memberName]; | 1263 Element lookupLocalMember(String memberName) => importScope[memberName]; |
| 1264 | 1264 |
| 1265 void forEachLocalMember(f(Element member)) => importScope.forEach(f); |
| 1266 |
| 1265 DartType computeType(Resolution resolution) => const DynamicType(); | 1267 DartType computeType(Resolution resolution) => const DynamicType(); |
| 1266 | 1268 |
| 1267 Token get position => firstPosition; | 1269 Token get position => firstPosition; |
| 1268 | 1270 |
| 1269 void addImport( | 1271 void addImport( |
| 1270 Element element, ImportElement import, DiagnosticReporter reporter) { | 1272 Element element, ImportElement import, DiagnosticReporter reporter) { |
| 1271 importScope.addImport(this, element, import, reporter); | 1273 importScope.addImport(this, element, import, reporter); |
| 1272 } | 1274 } |
| 1273 | 1275 |
| 1274 accept(ElementVisitor visitor, arg) { | 1276 accept(ElementVisitor visitor, arg) { |
| (...skipping 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3383 body = node.asFunctionExpression().body; | 3385 body = node.asFunctionExpression().body; |
| 3384 } | 3386 } |
| 3385 return new ParsedResolvedAst( | 3387 return new ParsedResolvedAst( |
| 3386 declaration, | 3388 declaration, |
| 3387 node, | 3389 node, |
| 3388 body, | 3390 body, |
| 3389 definingElement.treeElements, | 3391 definingElement.treeElements, |
| 3390 definingElement.compilationUnit.script.resourceUri); | 3392 definingElement.compilationUnit.script.resourceUri); |
| 3391 } | 3393 } |
| 3392 } | 3394 } |
| OLD | NEW |