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: pkg/analyzer_experimental/bin/analyzer.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 years, 8 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 | pkg/http/lib/src/utils.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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 2
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 /** The entry point for the analyzer. */ 7 /** The entry point for the analyzer. */
8 library analyzer; 8 library analyzer;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 20 matching lines...) Expand all
31 31
32 32
33 /** 33 /**
34 * Runs the dart analyzer with the command-line options in [args]. 34 * Runs the dart analyzer with the command-line options in [args].
35 * See [CommandLineOptions] for a list of valid arguments. 35 * See [CommandLineOptions] for a list of valid arguments.
36 */ 36 */
37 Future<AnalysisResult> run(List<String> args) { 37 Future<AnalysisResult> run(List<String> args) {
38 38
39 var options = new CommandLineOptions.parse(args); 39 var options = new CommandLineOptions.parse(args);
40 if (options == null) { 40 if (options == null) {
41 return new Future.immediate(new AnalysisResult.forFailure()); 41 return new Future.value(new AnalysisResult.forFailure());
42 } 42 }
43 43
44 //TODO(pquitslund): call out to analyzer... 44 //TODO(pquitslund): call out to analyzer...
45 45
46 } 46 }
OLDNEW
« no previous file with comments | « no previous file | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698