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

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

Issue 732093003: add ContextsChangedEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 6 years, 1 month 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/test/analysis_server_test.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:collection'; 10 import 'dart:collection';
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 * up-to-date. For such clients there is a mechanism that allows them to increme ntally perform 277 * up-to-date. For such clients there is a mechanism that allows them to increme ntally perform
278 * needed analysis and get notified of the consequent changes to the analysis re sults. This 278 * needed analysis and get notified of the consequent changes to the analysis re sults. This
279 * mechanism is realized by the method [performAnalysisTask]. 279 * mechanism is realized by the method [performAnalysisTask].
280 * 280 *
281 * Analysis engine allows for having more than one context. This can be used, fo r example, to 281 * Analysis engine allows for having more than one context. This can be used, fo r example, to
282 * perform one analysis based on the state of files on disk and a separate analy sis based on the 282 * perform one analysis based on the state of files on disk and a separate analy sis based on the
283 * state of those files in open editors. It can also be used to perform an analy sis based on a 283 * state of those files in open editors. It can also be used to perform an analy sis based on a
284 * proposed future state, such as the state after a refactoring. 284 * proposed future state, such as the state after a refactoring.
285 */ 285 */
286 abstract class AnalysisContext { 286 abstract class AnalysisContext {
287
288 /**
289 * An empty list of contexts.
290 */
291 static const List<AnalysisContext> EMPTY_LIST = const <AnalysisContext>[];
292
287 /** 293 /**
288 * Add the given listener to the list of objects that are to be notified when various analysis 294 * Add the given listener to the list of objects that are to be notified when various analysis
289 * results are produced in this context. 295 * results are produced in this context.
290 * 296 *
291 * @param listener the listener to be added 297 * @param listener the listener to be added
292 */ 298 */
293 void addListener(AnalysisListener listener); 299 void addListener(AnalysisListener listener);
294 300
295 /** 301 /**
296 * Apply the given delta to change the level of analysis that will be performe d for the sources 302 * Apply the given delta to change the level of analysis that will be performe d for the sources
(...skipping 13225 matching lines...) Expand 10 before | Expand all | Expand 10 after
13522 _index++; 13528 _index++;
13523 if (_index >= _manager._workQueues[_queueIndex].length) { 13529 if (_index >= _manager._workQueues[_queueIndex].length) {
13524 _index = 0; 13530 _index = 0;
13525 _queueIndex++; 13531 _queueIndex++;
13526 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 13532 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
13527 _queueIndex++; 13533 _queueIndex++;
13528 } 13534 }
13529 } 13535 }
13530 } 13536 }
13531 } 13537 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis_server_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698