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

Side by Side Diff: pkg/analyzer/lib/task/model.dart

Issue 1171893007: Include more errors when computing complete list (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « pkg/analyzer/lib/src/task/inputs.dart ('k') | pkg/analyzer/test/src/task/dart_test.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.task.model; 5 library analyzer.task.model;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; 9 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask;
10 import 'package:analyzer/src/generated/java_engine.dart'; 10 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 * A description of an input to an [AnalysisTask] that can be used to compute 430 * A description of an input to an [AnalysisTask] that can be used to compute
431 * that input. 431 * that input.
432 * 432 *
433 * Clients are not expected to subtype this class. 433 * Clients are not expected to subtype this class.
434 */ 434 */
435 abstract class TaskInput<V> { 435 abstract class TaskInput<V> {
436 /** 436 /**
437 * Create and return a builder that can be used to build this task input. 437 * Create and return a builder that can be used to build this task input.
438 */ 438 */
439 TaskInputBuilder<V> createBuilder(); 439 TaskInputBuilder<V> createBuilder();
440
441 /**
442 * Return a task input that can be used to compute a list whose elements are
443 * the result of passing the result of this input to the [mapper] function.
444 */
445 ListTaskInput /*<E>*/ mappedToList(List /*<E>*/ mapper(V value));
440 } 446 }
441 447
442 /** 448 /**
443 * An object used to build the value associated with a single [TaskInput]. 449 * An object used to build the value associated with a single [TaskInput].
444 * 450 *
445 * All builders work by requesting one or more results (each result being 451 * All builders work by requesting one or more results (each result being
446 * associated with a target). The interaction pattern is modeled after the class 452 * associated with a target). The interaction pattern is modeled after the class
447 * [Iterator], in which the method [moveNext] is invoked to move from one result 453 * [Iterator], in which the method [moveNext] is invoked to move from one result
448 * request to the next. The getters [currentResult] and [currentTarget] are used 454 * request to the next. The getters [currentResult] and [currentTarget] are used
449 * to get the result and target of the current request. The value of the result 455 * to get the result and target of the current request. The value of the result
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 * be computed, or `false` if the inputs have been computed. 507 * be computed, or `false` if the inputs have been computed.
502 * 508 *
503 * It is safe to invoke [moveNext] after it has returned `false`. In this case 509 * It is safe to invoke [moveNext] after it has returned `false`. In this case
504 * [moveNext] has no effect and will again return `false`. 510 * [moveNext] has no effect and will again return `false`.
505 * 511 *
506 * Throws a [StateError] if the value of the current result has not been 512 * Throws a [StateError] if the value of the current result has not been
507 * provided using [currentValue]. 513 * provided using [currentValue].
508 */ 514 */
509 bool moveNext(); 515 bool moveNext();
510 } 516 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/inputs.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698