| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine; | 8 library engine; |
| 9 | 9 |
| 10 import "dart:math" as math; | |
| 11 import 'dart:async'; | 10 import 'dart:async'; |
| 12 import 'dart:collection'; | 11 import 'dart:collection'; |
| 12 import 'dart:math' as math; |
| 13 | 13 |
| 14 import 'package:analyzer/src/cancelable_future.dart'; | 14 import 'package:analyzer/src/cancelable_future.dart'; |
| 15 import 'package:analyzer/src/context/cache.dart' as cache; | 15 import 'package:analyzer/src/context/cache.dart' as cache; |
| 16 import 'package:analyzer/src/context/context.dart' as newContext; | 16 import 'package:analyzer/src/context/context.dart' as newContext; |
| 17 import 'package:analyzer/src/generated/incremental_resolution_validator.dart'; | 17 import 'package:analyzer/src/generated/incremental_resolution_validator.dart'; |
| 18 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 18 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
| 19 import 'package:analyzer/src/services/lint.dart'; | 19 import 'package:analyzer/src/services/lint.dart'; |
| 20 import 'package:analyzer/src/task/manager.dart'; | 20 import 'package:analyzer/src/task/manager.dart'; |
| 21 import 'package:analyzer/src/task/task_dart.dart'; | 21 import 'package:analyzer/src/task/task_dart.dart'; |
| 22 import 'package:analyzer/task/dart.dart'; | 22 import 'package:analyzer/task/dart.dart'; |
| 23 import 'package:analyzer/task/model.dart'; | 23 import 'package:analyzer/task/model.dart'; |
| 24 import 'package:plugin/manager.dart'; |
| 24 | 25 |
| 25 import '../../instrumentation/instrumentation.dart'; | 26 import '../../instrumentation/instrumentation.dart'; |
| 26 import 'ast.dart'; | 27 import 'ast.dart'; |
| 27 import 'constant.dart'; | 28 import 'constant.dart'; |
| 28 import 'element.dart'; | 29 import 'element.dart'; |
| 29 import 'error.dart'; | 30 import 'error.dart'; |
| 30 import 'error_verifier.dart'; | 31 import 'error_verifier.dart'; |
| 31 import 'html.dart' as ht; | 32 import 'html.dart' as ht; |
| 32 import 'incremental_resolver.dart' | 33 import 'incremental_resolver.dart' |
| 33 show IncrementalResolver, PoorMansIncrementalResolver; | 34 show IncrementalResolver, PoorMansIncrementalResolver; |
| (...skipping 5728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5762 */ | 5763 */ |
| 5763 void set logger(Logger logger) { | 5764 void set logger(Logger logger) { |
| 5764 this._logger = logger == null ? Logger.NULL : logger; | 5765 this._logger = logger == null ? Logger.NULL : logger; |
| 5765 } | 5766 } |
| 5766 | 5767 |
| 5767 /** | 5768 /** |
| 5768 * Return the task manager used to manage the tasks used to analyze code. | 5769 * Return the task manager used to manage the tasks used to analyze code. |
| 5769 */ | 5770 */ |
| 5770 TaskManager get taskManager { | 5771 TaskManager get taskManager { |
| 5771 if (_taskManager == null) { | 5772 if (_taskManager == null) { |
| 5773 if (enginePlugin.taskExtensionPoint == null) { |
| 5774 // The plugin wasn't used, so tasks are not registered. |
| 5775 new ExtensionManager().processPlugins([enginePlugin]); |
| 5776 } |
| 5772 _taskManager = new TaskManager(); | 5777 _taskManager = new TaskManager(); |
| 5773 _taskManager.addTaskDescriptors(enginePlugin.taskDescriptors); | 5778 _taskManager.addTaskDescriptors(enginePlugin.taskDescriptors); |
| 5774 // TODO(brianwilkerson) Create a way to associate different results with | 5779 // TODO(brianwilkerson) Create a way to associate different results with |
| 5775 // different file suffixes, then make this pluggable. | 5780 // different file suffixes, then make this pluggable. |
| 5776 _taskManager.addGeneralResult(DART_ERRORS); | 5781 _taskManager.addGeneralResult(DART_ERRORS); |
| 5777 } | 5782 } |
| 5778 return _taskManager; | 5783 return _taskManager; |
| 5779 } | 5784 } |
| 5780 | 5785 |
| 5781 /** | 5786 /** |
| (...skipping 5904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11686 PendingFuture pendingFuture = | 11691 PendingFuture pendingFuture = |
| 11687 new PendingFuture<T>(_context, source, computeValue); | 11692 new PendingFuture<T>(_context, source, computeValue); |
| 11688 if (!pendingFuture.evaluate(sourceEntry)) { | 11693 if (!pendingFuture.evaluate(sourceEntry)) { |
| 11689 _context._pendingFutureSources | 11694 _context._pendingFutureSources |
| 11690 .putIfAbsent(source, () => <PendingFuture>[]) | 11695 .putIfAbsent(source, () => <PendingFuture>[]) |
| 11691 .add(pendingFuture); | 11696 .add(pendingFuture); |
| 11692 } | 11697 } |
| 11693 return pendingFuture.future; | 11698 return pendingFuture.future; |
| 11694 } | 11699 } |
| 11695 } | 11700 } |
| OLD | NEW |