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

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

Issue 1136673002: Progress toward new AnalysisContextImpl (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
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 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/model.dart'; 23 import 'package:analyzer/task/model.dart';
23 24
24 import '../../instrumentation/instrumentation.dart'; 25 import '../../instrumentation/instrumentation.dart';
25 import 'ast.dart'; 26 import 'ast.dart';
26 import 'constant.dart'; 27 import 'constant.dart';
27 import 'element.dart'; 28 import 'element.dart';
28 import 'error.dart'; 29 import 'error.dart';
29 import 'error_verifier.dart'; 30 import 'error_verifier.dart';
30 import 'html.dart' as ht; 31 import 'html.dart' as ht;
31 import 'incremental_resolver.dart' 32 import 'incremental_resolver.dart'
(...skipping 5734 matching lines...) Expand 10 before | Expand all | Expand 10 after
5766 this._logger = logger == null ? Logger.NULL : logger; 5767 this._logger = logger == null ? Logger.NULL : logger;
5767 } 5768 }
5768 5769
5769 /** 5770 /**
5770 * Return the task manager used to manage the tasks used to analyze code. 5771 * Return the task manager used to manage the tasks used to analyze code.
5771 */ 5772 */
5772 TaskManager get taskManager { 5773 TaskManager get taskManager {
5773 if (_taskManager == null) { 5774 if (_taskManager == null) {
5774 _taskManager = new TaskManager(); 5775 _taskManager = new TaskManager();
5775 _taskManager.addTaskDescriptors(enginePlugin.taskDescriptors); 5776 _taskManager.addTaskDescriptors(enginePlugin.taskDescriptors);
5777 // TODO(brianwilkerson) Create a way to associate different results with
5778 // different file suffixes, then make this pluggable.
5779 _taskManager.addGeneralResult(DART_ERRORS);
5776 } 5780 }
5777 return _taskManager; 5781 return _taskManager;
5778 } 5782 }
5779 5783
5780 /** 5784 /**
5781 * Clear any caches holding on to analysis results so that a full re-analysis 5785 * Clear any caches holding on to analysis results so that a full re-analysis
5782 * will be performed the next time an analysis context is created. 5786 * will be performed the next time an analysis context is created.
5783 */ 5787 */
5784 void clearCaches() { 5788 void clearCaches() {
5785 partitionManager.clearCache(); 5789 partitionManager.clearCache();
(...skipping 5874 matching lines...) Expand 10 before | Expand all | Expand 10 after
11660 PendingFuture pendingFuture = 11664 PendingFuture pendingFuture =
11661 new PendingFuture<T>(_context, source, computeValue); 11665 new PendingFuture<T>(_context, source, computeValue);
11662 if (!pendingFuture.evaluate(sourceEntry)) { 11666 if (!pendingFuture.evaluate(sourceEntry)) {
11663 _context._pendingFutureSources 11667 _context._pendingFutureSources
11664 .putIfAbsent(source, () => <PendingFuture>[]) 11668 .putIfAbsent(source, () => <PendingFuture>[])
11665 .add(pendingFuture); 11669 .add(pendingFuture);
11666 } 11670 }
11667 return pendingFuture.future; 11671 return pendingFuture.future;
11668 } 11672 }
11669 } 11673 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698