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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 11726005: Dartdoc comments retrieved as metadata through dart2js mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 11 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 library leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 24 matching lines...) Expand all
35 emitJavaScript: !hasOption(options, '--output-type=dart'), 35 emitJavaScript: !hasOption(options, '--output-type=dart'),
36 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), 36 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
37 analyzeAll: hasOption(options, '--analyze-all'), 37 analyzeAll: hasOption(options, '--analyze-all'),
38 rejectDeprecatedFeatures: 38 rejectDeprecatedFeatures:
39 hasOption(options, '--reject-deprecated-language-features'), 39 hasOption(options, '--reject-deprecated-language-features'),
40 checkDeprecationInSdk: 40 checkDeprecationInSdk:
41 hasOption(options, 41 hasOption(options,
42 '--report-sdk-use-of-deprecated-language-features'), 42 '--report-sdk-use-of-deprecated-language-features'),
43 strips: getStrips(options), 43 strips: getStrips(options),
44 enableConcreteTypeInference: 44 enableConcreteTypeInference:
45 hasOption(options, '--enable-concrete-type-inference')) { 45 hasOption(options, '--enable-concrete-type-inference'),
46 preserveComments: hasOption(options, '--preserve-comments')) {
46 if (!libraryRoot.path.endsWith("/")) { 47 if (!libraryRoot.path.endsWith("/")) {
47 throw new ArgumentError("libraryRoot must end with a /"); 48 throw new ArgumentError("libraryRoot must end with a /");
48 } 49 }
49 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 50 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
50 throw new ArgumentError("packageRoot must end with a /"); 51 throw new ArgumentError("packageRoot must end with a /");
51 } 52 }
52 } 53 }
53 54
54 static List<String> getStrips(List<String> options) { 55 static List<String> getStrips(List<String> options) {
55 for (String option in options) { 56 for (String option in options) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 handler(translateUri(span.uri, null), span.begin, span.end, 184 handler(translateUri(span.uri, null), span.begin, span.end,
184 message, kind); 185 message, kind);
185 } 186 }
186 } 187 }
187 188
188 bool get isMockCompilation { 189 bool get isMockCompilation {
189 return mockableLibraryUsed 190 return mockableLibraryUsed
190 && (options.indexOf('--allow-mock-compilation') != -1); 191 && (options.indexOf('--allow-mock-compilation') != -1);
191 } 192 }
192 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698