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

Unified Diff: pkg/compiler/lib/src/resolution/resolution_strategy.dart

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements Created 3 years, 6 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/patch_parser.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution_strategy.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
index c29092f2b3b938f5090efe9b0754c9090128d06e..d5469969d9da4b31edddb9d79b83b8dcfff35649 100644
--- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart
+++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
@@ -96,7 +96,7 @@ class ResolutionFrontEndStrategy implements FrontendStrategy {
_compiler.resolution,
_compiler.reporter,
elementEnvironment,
- _compiler.commonElements,
+ commonElements,
nativeBasicData);
}
@@ -104,8 +104,7 @@ class ResolutionFrontEndStrategy implements FrontendStrategy {
new ResolutionNoSuchMethodResolver();
MirrorsDataBuilder createMirrorsDataBuilder() {
- return new MirrorsDataImpl(
- _compiler, _compiler.options, _compiler.commonElements);
+ return new MirrorsDataImpl(_compiler, _compiler.options, commonElements);
}
MirrorsResolutionAnalysis createMirrorsResolutionAnalysis(
@@ -651,7 +650,7 @@ class _ElementAnnotationProcessor implements AnnotationProcessor {
_ElementAnnotationProcessor(this._compiler);
- CommonElements get _commonElements => _compiler.commonElements;
+ CommonElements get _commonElements => _compiler.resolution.commonElements;
/// Check whether [cls] has a `@Native(...)` annotation, and if so, set its
/// native name from the annotation.
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698