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

Side by Side Diff: pkg/analyzer/lib/src/analyzer_impl.dart

Issue 842503003: Enable async support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « pkg/analyzer/lib/options.dart ('k') | pkg/analyzer/lib/src/generated/engine.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 analyzer_impl; 5 library analyzer_impl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 declaredVariables.define(variableName, value); 171 declaredVariables.define(variableName, value);
172 }); 172 });
173 } 173 }
174 // Uncomment the following to have errors reported on stdout and stderr 174 // Uncomment the following to have errors reported on stdout and stderr
175 AnalysisEngine.instance.logger = new StdLogger(options.log); 175 AnalysisEngine.instance.logger = new StdLogger(options.log);
176 176
177 // set options for context 177 // set options for context
178 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); 178 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl();
179 contextOptions.cacheSize = _MAX_CACHE_SIZE; 179 contextOptions.cacheSize = _MAX_CACHE_SIZE;
180 contextOptions.hint = !options.disableHints; 180 contextOptions.hint = !options.disableHints;
181 contextOptions.enableAsync = options.enableAsync;
182 contextOptions.enableEnum = options.enableEnum; 181 contextOptions.enableEnum = options.enableEnum;
183 context.analysisOptions = contextOptions; 182 context.analysisOptions = contextOptions;
184 183
185 // Create and add a ChangeSet 184 // Create and add a ChangeSet
186 ChangeSet changeSet = new ChangeSet(); 185 ChangeSet changeSet = new ChangeSet();
187 changeSet.addedSource(source); 186 changeSet.addedSource(source);
188 context.applyChanges(changeSet); 187 context.applyChanges(changeSet);
189 } 188 }
190 189
191 /// Fills [errorInfos] using [sources]. 190 /// Fills [errorInfos] using [sources].
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 } 446 }
448 } 447 }
449 448
450 @override 449 @override
451 void logInformation2(String message, Object exception) { 450 void logInformation2(String message, Object exception) {
452 if (log) { 451 if (log) {
453 stdout.writeln(message); 452 stdout.writeln(message);
454 } 453 }
455 } 454 }
456 } 455 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/options.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698