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

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

Issue 2854013002: Make JavaScriptBackend.processAnnotations element-model agnostic (Closed)
Patch Set: Fix and check declaration invariant. 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/ssa/builder.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 9ca88103b18316301eda3c31450b62bff38c2617..f8af6052d8ec348355d2abc2d21084cce93f212b 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;
- Element method = mainApp.find(name);
+ MethodElement method = mainApp.find(name);
Expect.isNotNull(method);
- Expect.equals(expectNoInline, backend.annotations.noInline(method),
+ Expect.equals(expectNoInline, backend.optimizerHints.noInline(method),
"Unexpected annotation of @NoInline on '$method'.");
Expect.equals(
expectTrustTypeAnnotations,
- backend.annotations.trustTypeAnnotations(method),
+ backend.optimizerHints.trustTypeAnnotations(method),
"Unexpected annotation of @TrustTypeAnnotations on '$method'.");
Expect.equals(
expectAssumeDynamic,
- backend.annotations.assumeDynamic(method),
+ backend.optimizerHints.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/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698