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

Unified Diff: tests/compiler/dart2js/expect_annotations_test.dart

Issue 2860893003: Revert "Make JavaScriptBackend.processAnnotations element-model agnostic" (Closed)
Patch Set: 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/resolution/resolution_strategy.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/expect_annotations_test.dart
diff --git a/tests/compiler/dart2js/expect_annotations_test.dart b/tests/compiler/dart2js/expect_annotations_test.dart
index f8af6052d8ec348355d2abc2d21084cce93f212b..9ca88103b18316301eda3c31450b62bff38c2617 100644
--- a/tests/compiler/dart2js/expect_annotations_test.dart
+++ b/tests/compiler/dart2js/expect_annotations_test.dart
@@ -84,17 +84,17 @@ main() {
TypeMask expectedReturnType: null,
bool expectAssumeDynamic: false}) {
LibraryElement mainApp = compiler.mainApp;
- MethodElement method = mainApp.find(name);
+ Element method = mainApp.find(name);
Expect.isNotNull(method);
- Expect.equals(expectNoInline, backend.optimizerHints.noInline(method),
+ Expect.equals(expectNoInline, backend.annotations.noInline(method),
"Unexpected annotation of @NoInline on '$method'.");
Expect.equals(
expectTrustTypeAnnotations,
- backend.optimizerHints.trustTypeAnnotations(method),
+ backend.annotations.trustTypeAnnotations(method),
"Unexpected annotation of @TrustTypeAnnotations on '$method'.");
Expect.equals(
expectAssumeDynamic,
- backend.optimizerHints.assumeDynamic(method),
+ backend.annotations.assumeDynamic(method),
"Unexpected annotation of @AssumeDynamic on '$method'.");
TypesInferrer inferrer = compiler.globalInference.typesInferrerInternal;
if (expectTrustTypeAnnotations && expectedParameterType != null) {
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698