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

Unified Diff: lib/src/testing.dart

Issue 957013002: Typecheck map and list literals (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Rebase Created 5 years, 10 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 | « lib/src/options.dart ('k') | test/checker/checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/testing.dart
diff --git a/lib/src/testing.dart b/lib/src/testing.dart
index 8a487d8733d5ce9345cacc770dce3358d8fcf39b..6b11189b6ed1aae115e71164a1b9a2e8246350e0 100644
--- a/lib/src/testing.dart
+++ b/lib/src/testing.dart
@@ -46,16 +46,17 @@ import 'package:dev_compiler/devc.dart' show compile;
/// '''
/// });
///
-CheckerResults testChecker(Map<String, String> testFiles, {String sdkDir,
- CheckerReporter reporter, covariantGenerics: true, relaxedCasts: true,
- inferFromOverrides: true, inferStaticsFromIdentifiers: false,
- inferInNonStableOrder: false}) {
+CheckerResults testChecker(Map<String, String> testFiles,
+ {bool allowConstCasts: true, String sdkDir, CheckerReporter reporter,
+ covariantGenerics: true, relaxedCasts: true, inferFromOverrides: true,
+ inferStaticsFromIdentifiers: false, inferInNonStableOrder: false}) {
expect(testFiles.containsKey('/main.dart'), isTrue,
reason: '`/main.dart` is missing in testFiles');
// Create a resolver that can load test files from memory.
var testUriResolver = new _TestUriResolver(testFiles);
var options = new CompilerOptions(
+ allowConstCasts: allowConstCasts,
covariantGenerics: covariantGenerics,
relaxedCasts: relaxedCasts,
inferFromOverrides: inferFromOverrides,
« no previous file with comments | « lib/src/options.dart ('k') | test/checker/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698