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

Side by Side 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: Add test Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 final bool enableTypeAssertions; 209 final bool enableTypeAssertions;
210 final bool enableUserAssertions; 210 final bool enableUserAssertions;
211 final bool enableConcreteTypeInference; 211 final bool enableConcreteTypeInference;
212 /** 212 /**
213 * The maximum size of a concrete type before it widens to dynamic during 213 * The maximum size of a concrete type before it widens to dynamic during
214 * concrete type inference. 214 * concrete type inference.
215 */ 215 */
216 final int maxConcreteTypeSize; 216 final int maxConcreteTypeSize;
217 final bool analyzeAll; 217 final bool analyzeAll;
218 final bool analyzeOnly; 218 final bool analyzeOnly;
219 /**
220 * If true, skip analysis of method bodies and field initializers. Can only
221 * be used when [analyzeOnly] is set.
222 */
223 final bool analyzeSignaturesOnly;
219 final bool enableNativeLiveTypeAnalysis; 224 final bool enableNativeLiveTypeAnalysis;
220 final bool rejectDeprecatedFeatures; 225 final bool rejectDeprecatedFeatures;
221 final bool checkDeprecationInSdk; 226 final bool checkDeprecationInSdk;
222 227
223 /** 228 /**
224 * If [:true:], comment tokens are collected in [commentMap] during scanning. 229 * If [:true:], comment tokens are collected in [commentMap] during scanning.
225 */ 230 */
226 final bool preserveComments; 231 final bool preserveComments;
227 232
228 final api.CompilerOutputProvider outputProvider; 233 final api.CompilerOutputProvider outputProvider;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 this.enableUserAssertions: false, 352 this.enableUserAssertions: false,
348 this.enableConcreteTypeInference: false, 353 this.enableConcreteTypeInference: false,
349 this.maxConcreteTypeSize: 5, 354 this.maxConcreteTypeSize: 5,
350 this.enableMinification: false, 355 this.enableMinification: false,
351 this.enableNativeLiveTypeAnalysis: false, 356 this.enableNativeLiveTypeAnalysis: false,
352 bool emitJavaScript: true, 357 bool emitJavaScript: true,
353 bool generateSourceMap: true, 358 bool generateSourceMap: true,
354 bool disallowUnsafeEval: false, 359 bool disallowUnsafeEval: false,
355 this.analyzeAll: false, 360 this.analyzeAll: false,
356 this.analyzeOnly: false, 361 this.analyzeOnly: false,
362 this.analyzeSignaturesOnly: false,
357 this.rejectDeprecatedFeatures: false, 363 this.rejectDeprecatedFeatures: false,
358 this.checkDeprecationInSdk: false, 364 this.checkDeprecationInSdk: false,
359 this.preserveComments: false, 365 this.preserveComments: false,
360 outputProvider, 366 outputProvider,
361 List<String> strips: const []}) 367 List<String> strips: const []})
362 : libraries = new Map<String, LibraryElement>(), 368 : libraries = new Map<String, LibraryElement>(),
363 progress = new Stopwatch(), 369 progress = new Stopwatch(),
364 this.outputProvider = 370 this.outputProvider =
365 (outputProvider == null) ? NullSink.outputProvider : outputProvider 371 (outputProvider == null) ? NullSink.outputProvider : outputProvider
366 { 372 {
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 1164
1159 void close() {} 1165 void close() {}
1160 1166
1161 toString() => name; 1167 toString() => name;
1162 1168
1163 /// Convenience method for getting an [api.CompilerOutputProvider]. 1169 /// Convenience method for getting an [api.CompilerOutputProvider].
1164 static NullSink outputProvider(String name, String extension) { 1170 static NullSink outputProvider(String name, String extension) {
1165 return new NullSink('$name.$extension'); 1171 return new NullSink('$name.$extension');
1166 } 1172 }
1167 } 1173 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698