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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12431009: Add --analyze-signatures-only option to dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments + test expanded Created 7 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
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index bdda72eb0990676d3ced0d3081898a7ac6547643..84764789cc18f6d39829296c209c11499ff309a7 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -216,6 +216,11 @@ abstract class Compiler implements DiagnosticListener {
final int maxConcreteTypeSize;
final bool analyzeAll;
final bool analyzeOnly;
+ /**
+ * If true, skip analysis of method bodies and field initializers. Implies
+ * [analyzeOnly].
+ */
+ final bool analyzeSignaturesOnly;
final bool enableNativeLiveTypeAnalysis;
final bool rejectDeprecatedFeatures;
final bool checkDeprecationInSdk;
@@ -353,7 +358,8 @@ abstract class Compiler implements DiagnosticListener {
bool generateSourceMap: true,
bool disallowUnsafeEval: false,
this.analyzeAll: false,
- this.analyzeOnly: false,
+ bool analyzeOnly: false,
+ bool analyzeSignaturesOnly: false,
this.rejectDeprecatedFeatures: false,
this.checkDeprecationInSdk: false,
this.preserveComments: false,
@@ -361,8 +367,11 @@ abstract class Compiler implements DiagnosticListener {
List<String> strips: const []})
: libraries = new Map<String, LibraryElement>(),
progress = new Stopwatch(),
+ this.analyzeOnly = analyzeOnly || analyzeSignaturesOnly,
+ this.analyzeSignaturesOnly = analyzeSignaturesOnly,
this.outputProvider =
(outputProvider == null) ? NullSink.outputProvider : outputProvider
+
{
progress.start();
world = new World(this);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/apiimpl.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698