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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart

Issue 1750393002: Add --use-new-source-info option (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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 | « tests/compiler/dart2js/sourcemaps/diff_view.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/sourcemaps/sourcemap_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
index 019e8be34279a6942a863e54cb01f8c59757d192..5e5bb28a9ab9e0e7ab1645533a74fcfaaad02e8b 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'dart:io';
import 'package:compiler/compiler_new.dart';
import 'package:compiler/src/apiimpl.dart' as api;
+import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/null_compiler_output.dart' show NullSink;
import 'package:compiler/src/elements/elements.dart';
import 'package:compiler/src/helpers/helpers.dart';
@@ -271,7 +272,6 @@ class FindVisitor extends js.BaseVisitor {
}
}
-const String USE_NEW_SOURCE_INFO = '--use-new-source-info';
const String DISABLE_INLINING = '--disable-inlining';
/// Processor that computes [SourceMapInfo] for the JavaScript compiled for a
@@ -312,9 +312,8 @@ class SourceMapProcessor {
OutputProvider outputProvider = outputToFile
? new CloningOutputProvider(targetUri, sourceMapFileUri)
: new OutputProvider();
- if (options.contains(USE_NEW_SOURCE_INFO)) {
+ if (options.contains(Flags.useNewSourceInfo)) {
if (verbose) print('Using the new source information system.');
- useNewSourceInfo = true;
}
api.CompilerImpl compiler = await compilerFor(
outputProvider: outputProvider,
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/diff_view.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698