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

Unified Diff: pkg/compiler/lib/src/js_backend/annotations.dart

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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/frontend_strategy.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/annotations.dart
diff --git a/pkg/compiler/lib/src/js_backend/annotations.dart b/pkg/compiler/lib/src/js_backend/annotations.dart
index d19b929e5ffbe3dac6543a495b164f9a08bee46f..b84add8b19ef8c498cf3ade76cbeafeed6fef37f 100644
--- a/pkg/compiler/lib/src/js_backend/annotations.dart
+++ b/pkg/compiler/lib/src/js_backend/annotations.dart
@@ -5,9 +5,11 @@
library js_backend.backend.annotations;
import '../common.dart';
+import '../common_elements.dart' show ElementEnvironment;
import '../compiler.dart' show Compiler;
import '../constants/values.dart';
import '../elements/elements.dart';
+import '../elements/entities.dart';
import 'backend.dart';
/// Handling of special annotations for tests.
@@ -25,13 +27,18 @@ class Annotations {
DiagnosticReporter get reporter => compiler.reporter;
+ ElementEnvironment get _elementEnvironment => compiler.elementEnvironment;
+
Annotations(this.compiler);
- void onLibraryLoaded(LibraryElement library) {
+ void onLibraryLoaded(LibraryEntity library) {
if (library.canonicalUri == PACKAGE_EXPECT) {
- expectNoInlineClass = library.find('NoInline');
- expectTrustTypeAnnotationsClass = library.find('TrustTypeAnnotations');
- expectAssumeDynamicClass = library.find('AssumeDynamic');
+ expectNoInlineClass =
+ _elementEnvironment.lookupClass(library, 'NoInline');
+ expectTrustTypeAnnotationsClass =
+ _elementEnvironment.lookupClass(library, 'TrustTypeAnnotations');
+ expectAssumeDynamicClass =
+ _elementEnvironment.lookupClass(library, 'AssumeDynamic');
if (expectNoInlineClass == null ||
expectTrustTypeAnnotationsClass == null ||
expectAssumeDynamicClass == null) {
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698