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

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

Issue 1059753002: Add missing results needed to convert AnalysisContext to the new task model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « no previous file | 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) 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.dart; 5 library analyzer.task.dart;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart';
8 import 'package:analyzer/src/generated/error.dart'; 9 import 'package:analyzer/src/generated/error.dart';
9 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
10 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
11 import 'package:analyzer/task/model.dart'; 12 import 'package:analyzer/task/model.dart';
12 13
13 /** 14 /**
14 * The analysis errors associated with a target. 15 * The analysis errors associated with a target.
15 * 16 *
16 * The value combines errors represented by multiple other results. 17 * The value combines errors represented by multiple other results.
17 */ 18 */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 * 58 *
58 * The list will be empty if there are no parts, but will not be `null`. The 59 * The list will be empty if there are no parts, but will not be `null`. The
59 * list does *not* include the source for the defining compilation unit. 60 * list does *not* include the source for the defining compilation unit.
60 * 61 *
61 * The result is only available for targets representing a Dart library. 62 * The result is only available for targets representing a Dart library.
62 */ 63 */
63 final ListResultDescriptor<Source> INCLUDED_PARTS = 64 final ListResultDescriptor<Source> INCLUDED_PARTS =
64 new ListResultDescriptor<Source>('INCLUDED_PARTS', Source.EMPTY_ARRAY); 65 new ListResultDescriptor<Source>('INCLUDED_PARTS', Source.EMPTY_ARRAY);
65 66
66 /** 67 /**
68 * A flag specifying whether a library is dependent on code that is only
69 * available in a client.
70 *
71 * The result is only available for targets representing a Dart library.
72 */
73 final ResultDescriptor<bool> IS_CLIENT =
74 new ResultDescriptor<bool>('IS_CLIENT', false);
75
76 /**
67 * A flag specifying whether a library is launchable. 77 * A flag specifying whether a library is launchable.
68 * 78 *
69 * The result is only available for targets representing a Dart library. 79 * The result is only available for targets representing a Dart library.
70 */ 80 */
71 final ResultDescriptor<bool> IS_LAUNCHABLE = 81 final ResultDescriptor<bool> IS_LAUNCHABLE =
72 new ResultDescriptor<bool>('IS_LAUNCHABLE', false); 82 new ResultDescriptor<bool>('IS_LAUNCHABLE', false);
73 83
74 /** 84 /**
85 * The fully built [LibraryElement] associated with a library.
86 *
87 * The result is only available for targets representing a Dart library.
88 */
89 final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT =
90 new ResultDescriptor<LibraryElement>('LIBRARY_ELEMENT', null);
91
92 /**
75 * The compilation unit AST produced while parsing a compilation unit. 93 * The compilation unit AST produced while parsing a compilation unit.
76 * 94 *
77 * The AST structure will not have resolution information associated with it. 95 * The AST structure will not have resolution information associated with it.
78 * 96 *
79 * The result is only available for targets representing a Dart compilation unit . 97 * The result is only available for targets representing a Dart compilation unit .
80 */ 98 */
81 final ResultDescriptor<CompilationUnit> PARSED_UNIT = 99 final ResultDescriptor<CompilationUnit> PARSED_UNIT =
82 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); 100 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null);
83 101
84 /** 102 /**
(...skipping 18 matching lines...) Expand all
103 /** 121 /**
104 * The sources of the Dart files that a library consists of. 122 * The sources of the Dart files that a library consists of.
105 * 123 *
106 * The list will include the source of the defining unit and [INCLUDED_PARTS]. 124 * The list will include the source of the defining unit and [INCLUDED_PARTS].
107 * So, it is never empty or `null`. 125 * So, it is never empty or `null`.
108 * 126 *
109 * The result is only available for targets representing a Dart library. 127 * The result is only available for targets representing a Dart library.
110 */ 128 */
111 final ListResultDescriptor<Source> UNITS = 129 final ListResultDescriptor<Source> UNITS =
112 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY); 130 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698