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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. 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
Index: tests/compiler/dart2js/metadata_test.dart
diff --git a/tests/compiler/dart2js/metadata_test.dart b/tests/compiler/dart2js/metadata_test.dart
index bcf9ef52e9bc0db1a187c4704e16d87d4dea83a8..d1e94a63c9b468a3978bf4a640a4a539e2d529c1 100644
--- a/tests/compiler/dart2js/metadata_test.dart
+++ b/tests/compiler/dart2js/metadata_test.dart
@@ -89,7 +89,7 @@ void checkAnnotation(String name, String declaration,
}
main() {}""";
- analyzeAndCheck(source3, 'Foo', (compiler, element) {
+ analyzeAndCheck(source3, 'Foo', (compiler, dynamic element) {
compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(0, element.metadata.length);
element.ensureResolved(compiler.resolution);
@@ -115,7 +115,7 @@ void checkAnnotation(String name, String declaration,
}
main() {}""";
- analyzeAndCheck(source4, 'Foo', (compiler, element) {
+ analyzeAndCheck(source4, 'Foo', (compiler, dynamic element) {
compiler.enqueuer.resolution.queueIsClosed = false;
Expect.equals(0, element.metadata.length);
element.ensureResolved(compiler.resolution);
@@ -197,32 +197,32 @@ void testLibraryTags() {
library foo;
const native = 'xyz';
main() {}""";
- compileAndCheckLibrary(source, (e) => e.libraryTag.metadata);
+ compileAndCheckLibrary(source, (dynamic e) => e.libraryTag.metadata);
source = """@native
import 'lib.dart';
const native = 'xyz';
main() {}""";
- compileAndCheckLibrary(source, (e) => e.tags.single.metadata);
+ compileAndCheckLibrary(source, (dynamic e) => e.tags.single.metadata);
source = """@native
export 'lib.dart';
const native = 'xyz';
main() {}""";
- compileAndCheckLibrary(source, (e) => e.tags.single.metadata);
+ compileAndCheckLibrary(source, (dynamic e) => e.tags.single.metadata);
source = """@native
part 'part.dart';
const native = 'xyz';
main() {}""";
- compileAndCheckLibrary(source, (e) => e.tags.single.metadata);
+ compileAndCheckLibrary(source, (dynamic e) => e.tags.single.metadata);
source = """@native
part 'part.dart';
const native = 'xyz';
main() {}""";
compileAndCheckLibrary(
- source, (e) => e.compilationUnits.first.partTag.metadata);
+ source, (dynamic e) => e.compilationUnits.first.partTag.metadata);
}
void main() {
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/mirror_private_name_inheritance_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698