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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1119983004: Add an option to enable the new task model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/analysis_server/lib/src/server/driver.dart ('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) 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; 10 import "dart:math" as math;
11 import 'dart:async'; 11 import 'dart:async';
12 import 'dart:collection'; 12 import 'dart:collection';
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 cache; 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/model.dart'; 22 import 'package:analyzer/task/model.dart';
23 23
24 import '../../instrumentation/instrumentation.dart'; 24 import '../../instrumentation/instrumentation.dart';
25 import 'ast.dart'; 25 import 'ast.dart';
26 import 'constant.dart'; 26 import 'constant.dart';
(...skipping 5732 matching lines...) Expand 10 before | Expand all | Expand 10 after
5759 InstrumentationService.NULL_SERVICE; 5759 InstrumentationService.NULL_SERVICE;
5760 5760
5761 /** 5761 /**
5762 * The partition manager being used to manage the shared partitions. 5762 * The partition manager being used to manage the shared partitions.
5763 */ 5763 */
5764 final PartitionManager partitionManager = new PartitionManager(); 5764 final PartitionManager partitionManager = new PartitionManager();
5765 5765
5766 /** 5766 /**
5767 * The partition manager being used to manage the shared partitions. 5767 * The partition manager being used to manage the shared partitions.
5768 */ 5768 */
5769 final cache.PartitionManager partitionManager_new = 5769 final newContext.PartitionManager partitionManager_new =
5770 new cache.PartitionManager(); 5770 new newContext.PartitionManager();
5771 5771
5772 /** 5772 /**
5773 * A flag indicating whether the (new) task model should be used to perform 5773 * A flag indicating whether the (new) task model should be used to perform
5774 * analysis. 5774 * analysis.
5775 */ 5775 */
5776 bool useTaskModel = false; 5776 bool useTaskModel = false;
5777 5777
5778 /** 5778 /**
5779 * The task manager used to manage the tasks used to analyze code. 5779 * The task manager used to manage the tasks used to analyze code.
5780 */ 5780 */
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
5830 * will be performed the next time an analysis context is created. 5830 * will be performed the next time an analysis context is created.
5831 */ 5831 */
5832 void clearCaches() { 5832 void clearCaches() {
5833 partitionManager.clearCache(); 5833 partitionManager.clearCache();
5834 } 5834 }
5835 5835
5836 /** 5836 /**
5837 * Create and return a new context in which analysis can be performed. 5837 * Create and return a new context in which analysis can be performed.
5838 */ 5838 */
5839 AnalysisContext createAnalysisContext() { 5839 AnalysisContext createAnalysisContext() {
5840 if (useTaskModel) {
5841 return new newContext.AnalysisContextImpl();
5842 }
5840 return new AnalysisContextImpl(); 5843 return new AnalysisContextImpl();
5841 } 5844 }
5842 5845
5843 /** 5846 /**
5844 * Return `true` if the given [fileName] is assumed to contain Dart source 5847 * Return `true` if the given [fileName] is assumed to contain Dart source
5845 * code. 5848 * code.
5846 */ 5849 */
5847 static bool isDartFileName(String fileName) { 5850 static bool isDartFileName(String fileName) {
5848 if (fileName == null) { 5851 if (fileName == null) {
5849 return false; 5852 return false;
(...skipping 5886 matching lines...) Expand 10 before | Expand all | Expand 10 after
11736 visitElement(Element element) { 11739 visitElement(Element element) {
11737 if (element.id == _id) { 11740 if (element.id == _id) {
11738 result = element; 11741 result = element;
11739 throw new _ElementByIdFinderException(); 11742 throw new _ElementByIdFinderException();
11740 } 11743 }
11741 super.visitElement(element); 11744 super.visitElement(element);
11742 } 11745 }
11743 } 11746 }
11744 11747
11745 class _ElementByIdFinderException {} 11748 class _ElementByIdFinderException {}
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698