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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 * library is loaded. | 1067 * library is loaded. |
1068 */ | 1068 */ |
1069 Link<Element> slotForExports; | 1069 Link<Element> slotForExports; |
1070 | 1070 |
1071 List<ImportElement> _imports = <ImportElement>[]; | 1071 List<ImportElement> _imports = <ImportElement>[]; |
1072 List<ExportElement> _exports = <ExportElement>[]; | 1072 List<ExportElement> _exports = <ExportElement>[]; |
1073 | 1073 |
1074 final Map<LibraryDependency, LibraryElement> tagMapping = | 1074 final Map<LibraryDependency, LibraryElement> tagMapping = |
1075 new Map<LibraryDependency, LibraryElement>(); | 1075 new Map<LibraryDependency, LibraryElement>(); |
1076 | 1076 |
| 1077 final Map<String, MixinApplicationElementX> mixinApplicationCache = |
| 1078 <String, MixinApplicationElementX>{}; |
| 1079 |
1077 LibraryElementX(Script script, [Uri canonicalUri, LibraryElementX origin]) | 1080 LibraryElementX(Script script, [Uri canonicalUri, LibraryElementX origin]) |
1078 : this.canonicalUri = | 1081 : this.canonicalUri = |
1079 ((canonicalUri == null) ? script.readableUri : canonicalUri), | 1082 ((canonicalUri == null) ? script.readableUri : canonicalUri), |
1080 this.isSynthesized = script.isSynthesized, | 1083 this.isSynthesized = script.isSynthesized, |
1081 super(script.name, ElementKind.LIBRARY, null) { | 1084 super(script.name, ElementKind.LIBRARY, null) { |
1082 entryCompilationUnit = new CompilationUnitElementX(script, this); | 1085 entryCompilationUnit = new CompilationUnitElementX(script, this); |
1083 if (origin != null) { | 1086 if (origin != null) { |
1084 origin.applyPatch(this); | 1087 origin.applyPatch(this); |
1085 } | 1088 } |
1086 } | 1089 } |
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3601 body = node.asFunctionExpression().body; | 3604 body = node.asFunctionExpression().body; |
3602 } | 3605 } |
3603 return new ParsedResolvedAst( | 3606 return new ParsedResolvedAst( |
3604 declaration, | 3607 declaration, |
3605 node, | 3608 node, |
3606 body, | 3609 body, |
3607 definingElement.treeElements, | 3610 definingElement.treeElements, |
3608 definingElement.compilationUnit.script.resourceUri); | 3611 definingElement.compilationUnit.script.resourceUri); |
3609 } | 3612 } |
3610 } | 3613 } |
OLD | NEW |