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

Unified Diff: pkg/compiler/lib/src/options.dart

Issue 2239933003: Ensure that no scripts are resolved when compiling purely from deserialized data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/dart2js.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/options.dart
diff --git a/pkg/compiler/lib/src/options.dart b/pkg/compiler/lib/src/options.dart
index b1aaeb0f2df0bd3fe786f0146cb4b3e09124a372..08f595203f6afb48e288ddd7fcb0951e640adcb8 100644
--- a/pkg/compiler/lib/src/options.dart
+++ b/pkg/compiler/lib/src/options.dart
@@ -200,6 +200,9 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
// If `true`, sources are resolved and serialized.
final bool resolveOnly;
+ // If `true`, sources are only available from serialized data.
+ final bool compileOnly;
+
/// URI where the compiler should generate the output source map file.
final Uri sourceMapUri;
@@ -495,6 +498,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
this.resolutionInputs: null,
this.resolutionOutput: null,
this.resolveOnly: false,
+ this.compileOnly: false,
this.sourceMapUri: null,
this.strips: const [],
this.testMode: false,
@@ -552,6 +556,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
resolutionInputs,
resolutionOutput,
resolveOnly,
+ compileOnly,
sourceMapUri,
strips,
testMode,
@@ -618,6 +623,7 @@ class CompilerOptions implements DiagnosticOptions, ParserOptions {
resolutionInputs: resolutionInputs ?? options.resolutionInputs,
resolutionOutput: resolutionOutput ?? options.resolutionOutput,
resolveOnly: resolveOnly ?? options.resolveOnly,
+ compileOnly: compileOnly ?? options.compileOnly,
sourceMapUri: sourceMapUri ?? options.sourceMapUri,
strips: strips ?? options.strips,
testMode: testMode ?? options.testMode,
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698