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

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

Issue 1008433002: Task: Build Directive Elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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) 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/element.dart';
9 import 'package:analyzer/src/generated/error.dart'; 9 import 'package:analyzer/src/generated/error.dart';
10 import 'package:analyzer/src/generated/resolver.dart'; 10 import 'package:analyzer/src/generated/resolver.dart';
11 import 'package:analyzer/src/generated/scanner.dart'; 11 import 'package:analyzer/src/generated/scanner.dart';
12 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:analyzer/task/general.dart'; 13 import 'package:analyzer/task/general.dart';
14 import 'package:analyzer/task/model.dart'; 14 import 'package:analyzer/task/model.dart';
15 15
16 /** 16 /**
17 * The errors produced while builing a library element.
18 *
19 * The list will be empty if there were no errors, but will not be `null`.
20 *
21 * The result is only available for targets representing a Dart library.
22 */
23 final ResultDescriptor<List<AnalysisError>> BUILD_LIBRARY_ERRORS =
24 new ResultDescriptor<List<AnalysisError>>(
25 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS,
26 contributesTo: ANALYSIS_ERRORS);
27
28 /**
29 * The partial [LibraryElement] associated with a library.
30 *
31 * The [LibraryElement] and its [CompilationUnitElement]s are attached to each
32 * other. Directives 'library', 'part' and 'part of' are resolved.
33 *
34 * The result is only available for targets representing a Dart library.
35 */
36 final ResultDescriptor<LibraryElement> BUILT_LIBRARY_ELEMENT =
37 new ResultDescriptor<LibraryElement>('BUILT_LIBRARY_ELEMENT', null);
38
39 /**
40 * The compilation unit associated with a [Source] after it has had all
41 * declarations bound to the element defined by the declaration.
42 *
43 * The result is only available for targets representing a Dart compilation unit .
44 */
45 final ResultDescriptor<CompilationUnit> BUILT_UNIT =
46 new ResultDescriptor<CompilationUnit>('BUILT_UNIT', null);
47
48 /**
49 * The element model associated with a single compilation unit. 17 * The element model associated with a single compilation unit.
50 * 18 *
51 * The result is only available for targets representing a Dart compilation unit . 19 * The result is only available for targets representing a Dart compilation unit .
52 */ 20 */
53 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT = 21 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT =
54 new ResultDescriptor<CompilationUnitElement>( 22 new ResultDescriptor<CompilationUnitElement>(
55 'COMPILATION_UNIT_ELEMENT', null); 23 'COMPILATION_UNIT_ELEMENT', null);
56 24
57 /** 25 /**
58 * The sources of the libraries that are exported from a library. 26 * The sources of the libraries that are exported from a library.
(...skipping 11 matching lines...) Expand all
70 * A flag specifying whether a library imports 'dart:html'. 38 * A flag specifying whether a library imports 'dart:html'.
71 * 39 *
72 * The result is only available for targets representing a Dart library. 40 * The result is only available for targets representing a Dart library.
73 */ 41 */
74 final ResultDescriptor<bool> HAS_HTML_IMPORT = 42 final ResultDescriptor<bool> HAS_HTML_IMPORT =
75 new ResultDescriptor<bool>('HAS_HTML_IMPORT', false); 43 new ResultDescriptor<bool>('HAS_HTML_IMPORT', false);
76 44
77 /** 45 /**
78 * The sources of the libraries that are imported into a library. 46 * The sources of the libraries that are imported into a library.
79 * 47 *
80 * The list will be empty if there are no imported libraries, but will not be 48 * Not `null`.
81 * `null`. 49 * The default value is empty.
50 * When computed, this list will always contain at least `dart:core` source.
82 * 51 *
83 * The result is only available for targets representing a Dart library. 52 * The result is only available for targets representing a Dart library.
84 */ 53 */
85 final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES = 54 final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES =
86 new ResultDescriptor<List<Source>>( 55 new ResultDescriptor<List<Source>>(
87 'IMPORTED_LIBRARIES', Source.EMPTY_ARRAY); 56 'IMPORTED_LIBRARIES', Source.EMPTY_ARRAY);
88 57
89 /** 58 /**
90 * The sources of the parts that are included in a library. 59 * The sources of the parts that are included in a library.
91 * 60 *
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 /** 118 /**
150 * The token stream produced while scanning a compilation unit. 119 * The token stream produced while scanning a compilation unit.
151 * 120 *
152 * The value is the first token in the file, or the special end-of-file marker 121 * The value is the first token in the file, or the special end-of-file marker
153 * at the end of the stream if the file does not contain any tokens. 122 * at the end of the stream if the file does not contain any tokens.
154 * 123 *
155 * The result is only available for targets representing a Dart compilation unit . 124 * The result is only available for targets representing a Dart compilation unit .
156 */ 125 */
157 final ResultDescriptor<Token> TOKEN_STREAM = 126 final ResultDescriptor<Token> TOKEN_STREAM =
158 new ResultDescriptor<Token>('TOKEN_STREAM', null); 127 new ResultDescriptor<Token>('TOKEN_STREAM', null);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698