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

Side by Side Diff: pkg/dev_compiler/web/web_command.dart

Issue 2747743003: Have dartdevc support --version. (Closed)
Patch Set: review feedback Created 3 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
« no previous file with comments | « pkg/dev_compiler/pubspec.yaml ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 @JS() 4 @JS()
5 library dev_compiler.web.web_command; 5 library dev_compiler.web.web_command;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:html' show HttpRequest; 9 import 'dart:html' show HttpRequest;
10 10
11 import 'package:analyzer/dart/element/element.dart' 11 import 'package:analyzer/dart/element/element.dart'
12 show 12 show
13 LibraryElement, 13 LibraryElement,
14 ImportElement, 14 ImportElement,
15 ShowElementCombinator, 15 ShowElementCombinator,
16 HideElementCombinator; 16 HideElementCombinator;
17 import 'package:analyzer/file_system/file_system.dart' show ResourceUriResolver; 17 import 'package:analyzer/file_system/file_system.dart' show ResourceUriResolver;
18 import 'package:analyzer/file_system/memory_file_system.dart' 18 import 'package:analyzer/file_system/memory_file_system.dart'
19 show MemoryResourceProvider; 19 show MemoryResourceProvider;
20 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl; 20 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl;
21 import 'package:analyzer/src/summary/idl.dart' show PackageBundle; 21 import 'package:analyzer/src/summary/idl.dart' show PackageBundle;
22 import 'package:analyzer/src/summary/package_bundle_reader.dart' 22 import 'package:analyzer/src/summary/package_bundle_reader.dart'
23 show 23 show
24 SummaryDataStore, 24 SummaryDataStore,
25 InSummaryUriResolver, 25 InSummaryUriResolver,
26 InputPackagesResultProvider,
27 InSummarySource; 26 InSummarySource;
28 import 'package:analyzer/src/dart/resolver/scope.dart' show Scope; 27 import 'package:analyzer/src/dart/resolver/scope.dart' show Scope;
29 28
30 import 'package:args/command_runner.dart'; 29 import 'package:args/command_runner.dart';
31 30
32 import 'package:dev_compiler/src/analyzer/context.dart' show AnalyzerOptions; 31 import 'package:dev_compiler/src/analyzer/context.dart' show AnalyzerOptions;
33 import 'package:dev_compiler/src/compiler/compiler.dart' 32 import 'package:dev_compiler/src/compiler/compiler.dart'
34 show BuildUnit, CompilerOptions, JSModuleFile, ModuleCompiler; 33 show BuildUnit, CompilerOptions, JSModuleFile, ModuleCompiler;
35 34
36 import 'package:dev_compiler/src/compiler/module_builder.dart'; 35 import 'package:dev_compiler/src/compiler/module_builder.dart';
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if (source is InSummarySource) { 280 if (source is InSummarySource) {
282 return source.summaryPath.substring(1).replaceAll('.api.ds', ''); 281 return source.summaryPath.substring(1).replaceAll('.api.ds', '');
283 } 282 }
284 return source.toString().substring(1).replaceAll('.dart', ''); 283 return source.toString().substring(1).replaceAll('.dart', '');
285 } 284 }
286 285
287 /// Thrown when the input source code has errors. 286 /// Thrown when the input source code has errors.
288 class CompileErrorException implements Exception { 287 class CompileErrorException implements Exception {
289 toString() => '\nPlease fix all errors before compiling (warnings are okay).'; 288 toString() => '\nPlease fix all errors before compiling (warnings are okay).';
290 } 289 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698