Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: pkg/compiler/lib/src/mirrors_used.dart

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors_used.dart
diff --git a/pkg/compiler/lib/src/mirrors_used.dart b/pkg/compiler/lib/src/mirrors_used.dart
index 2110d756722bf3881a8ca0861e0f32c80ec35ccc..8a1a6aaf00155c0b2210229c9689c9292fcdd13b 100644
--- a/pkg/compiler/lib/src/mirrors_used.dart
+++ b/pkg/compiler/lib/src/mirrors_used.dart
@@ -261,7 +261,7 @@ class MirrorUsageAnalyzer {
}
List<MirrorUsage> result = <MirrorUsage>[];
for (MetadataAnnotation metadata in import.metadata) {
- metadata.ensureResolved(compiler);
+ metadata.ensureResolved(compiler.resolution);
ConstantValue value =
compiler.constants.getConstantValue(metadata.constant);
Element element = value.getType(compiler.coreTypes).element;
@@ -440,7 +440,7 @@ class MirrorUsageBuilder {
if (type.isInterfaceType && library.isInternalLibrary) {
InterfaceType interface = type;
ClassElement cls = type.element;
- cls.ensureResolved(compiler);
+ cls.ensureResolved(compiler.resolution);
for (DartType supertype in cls.allSupertypes) {
if (supertype.isInterfaceType
&& !supertype.element.library.isInternalLibrary) {
@@ -553,7 +553,7 @@ class MirrorUsageBuilder {
ScopeContainerElement scope = element;
if (element.isClass) {
ClassElement cls = element;
- cls.ensureResolved(compiler);
+ cls.ensureResolved(compiler.resolution);
}
return scope.localLookup(name);
}
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698