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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/apiimpl.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, 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import '../compiler.dart' as api; 10 import '../compiler.dart' as api;
(...skipping 26 matching lines...) Expand all
37 outputProvider: outputProvider, 37 outputProvider: outputProvider,
38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
39 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 39 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
40 enableMinification: hasOption(options, '--minify'), 40 enableMinification: hasOption(options, '--minify'),
41 enableNativeLiveTypeAnalysis: 41 enableNativeLiveTypeAnalysis:
42 !hasOption(options, '--disable-native-live-type-analysis'), 42 !hasOption(options, '--disable-native-live-type-analysis'),
43 emitJavaScript: !hasOption(options, '--output-type=dart'), 43 emitJavaScript: !hasOption(options, '--output-type=dart'),
44 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), 44 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
45 analyzeAll: hasOption(options, '--analyze-all'), 45 analyzeAll: hasOption(options, '--analyze-all'),
46 analyzeOnly: hasOption(options, '--analyze-only'), 46 analyzeOnly: hasOption(options, '--analyze-only'),
47 analyzeSignaturesOnly:
48 hasOption(options, '--analyze-signatures-only'),
47 rejectDeprecatedFeatures: 49 rejectDeprecatedFeatures:
48 hasOption(options, '--reject-deprecated-language-features'), 50 hasOption(options, '--reject-deprecated-language-features'),
49 checkDeprecationInSdk: 51 checkDeprecationInSdk:
50 hasOption(options, 52 hasOption(options,
51 '--report-sdk-use-of-deprecated-language-features'), 53 '--report-sdk-use-of-deprecated-language-features'),
52 strips: getStrips(options), 54 strips: getStrips(options),
53 enableConcreteTypeInference: 55 enableConcreteTypeInference:
54 hasOption(options, '--enable-concrete-type-inference'), 56 hasOption(options, '--enable-concrete-type-inference'),
55 preserveComments: hasOption(options, '--preserve-comments')) { 57 preserveComments: hasOption(options, '--preserve-comments')) {
56 if (!libraryRoot.path.endsWith("/")) { 58 if (!libraryRoot.path.endsWith("/")) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 handler(translateUri(span.uri, null), span.begin, span.end, 259 handler(translateUri(span.uri, null), span.begin, span.end,
258 message, kind); 260 message, kind);
259 } 261 }
260 } 262 }
261 263
262 bool get isMockCompilation { 264 bool get isMockCompilation {
263 return mockableLibraryUsed 265 return mockableLibraryUsed
264 && (options.indexOf('--allow-mock-compilation') != -1); 266 && (options.indexOf('--allow-mock-compilation') != -1);
265 } 267 }
266 } 268 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698