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

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

Issue 2176763002: fix #606, allow specifying the summary file extension (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix Created 4 years, 5 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/compiler/command.dart ('k') | test/worker/worker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/compiler.dart
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart
index 8bc3b307cd6a123264296a320e5de1421bd82d62..cac85b1b1f94b194ed47e383f641407f06ca7110 100644
--- a/lib/src/compiler/compiler.dart
+++ b/lib/src/compiler/compiler.dart
@@ -158,6 +158,9 @@ class CompilerOptions {
/// This is required for a modular build process.
final bool summarizeApi;
+ /// The file extension for summaries.
+ final String summaryExtension;
+
/// Whether to preserve metdata only accessible via mirrors
final bool emitMetadata;
@@ -205,6 +208,7 @@ class CompilerOptions {
{this.sourceMap: true,
this.sourceMapComment: true,
this.summarizeApi: true,
+ this.summaryExtension: 'sum',
this.unsafeForceCompile: false,
this.emitMetadata: false,
this.closure: false,
@@ -220,6 +224,7 @@ class CompilerOptions {
: sourceMap = args['source-map'],
sourceMapComment = args['source-map-comment'],
summarizeApi = args['summarize'],
+ summaryExtension = args['summary-extension'],
unsafeForceCompile = args['unsafe-force-compile'],
emitMetadata = args['emit-metadata'],
closure = args['closure-experimental'],
@@ -233,6 +238,8 @@ class CompilerOptions {
static ArgParser addArguments(ArgParser parser) => parser
..addFlag('summarize', help: 'emit an API summary file', defaultsTo: true)
+ ..addOption('summary-extension',
+ help: 'file extension for Dart summary files', defaultsTo: 'sum')
..addFlag('source-map', help: 'emit source mapping', defaultsTo: true)
..addFlag('source-map-comment',
help: 'adds a sourceMappingURL comment to the end of the JS,\n'
« no previous file with comments | « lib/src/compiler/command.dart ('k') | test/worker/worker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698