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

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

Issue 1005693007: Add toMap / toMapOf / toList (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/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
(...skipping 21 matching lines...) Expand all
32 new CompositeResultDescriptor<List<AnalysisError>>('DART_ERRORS'); 32 new CompositeResultDescriptor<List<AnalysisError>>('DART_ERRORS');
33 33
34 /** 34 /**
35 * The sources of the libraries that are exported from a library. 35 * The sources of the libraries that are exported from a library.
36 * 36 *
37 * The list will be empty if there are no exported libraries, but will not be 37 * The list will be empty if there are no exported libraries, but will not be
38 * `null`. 38 * `null`.
39 * 39 *
40 * The result is only available for targets representing a Dart library. 40 * The result is only available for targets representing a Dart library.
41 */ 41 */
42 final ResultDescriptor<List<Source>> EXPORTED_LIBRARIES = 42 final ListResultDescriptor<Source> EXPORTED_LIBRARIES =
43 new ResultDescriptor<List<Source>>( 43 new ListResultDescriptor<Source>('EXPORTED_LIBRARIES', Source.EMPTY_ARRAY);
44 'EXPORTED_LIBRARIES', Source.EMPTY_ARRAY);
45 44
46 /** 45 /**
47 * A flag specifying whether a library imports 'dart:html'. 46 * A flag specifying whether a library imports 'dart:html'.
48 * 47 *
49 * The result is only available for targets representing a Dart library. 48 * The result is only available for targets representing a Dart library.
50 */ 49 */
51 final ResultDescriptor<bool> HAS_HTML_IMPORT = 50 final ResultDescriptor<bool> HAS_HTML_IMPORT =
52 new ResultDescriptor<bool>('HAS_HTML_IMPORT', false); 51 new ResultDescriptor<bool>('HAS_HTML_IMPORT', false);
53 52
54 /** 53 /**
55 * The sources of the libraries that are imported into a library. 54 * The sources of the libraries that are imported into a library.
56 * 55 *
57 * Not `null`. 56 * Not `null`.
58 * The default value is empty. 57 * The default value is empty.
59 * When computed, this list will always contain at least `dart:core` source. 58 * When computed, this list will always contain at least `dart:core` source.
60 * 59 *
61 * The result is only available for targets representing a Dart library. 60 * The result is only available for targets representing a Dart library.
62 */ 61 */
63 final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES = 62 final ListResultDescriptor<Source> IMPORTED_LIBRARIES =
64 new ResultDescriptor<List<Source>>( 63 new ListResultDescriptor<Source>('IMPORTED_LIBRARIES', Source.EMPTY_ARRAY);
65 'IMPORTED_LIBRARIES', Source.EMPTY_ARRAY);
66 64
67 /** 65 /**
68 * The sources of the parts that are included in a library. 66 * The sources of the parts that are included in a library.
69 * 67 *
70 * The list will be empty if there are no parts, but will not be `null`. The 68 * The list will be empty if there are no parts, but will not be `null`. The
71 * list does *not* include the source for the defining compilation unit. 69 * list does *not* include the source for the defining compilation unit.
72 * 70 *
73 * The result is only available for targets representing a Dart library. 71 * The result is only available for targets representing a Dart library.
74 */ 72 */
75 final ResultDescriptor<List<Source>> INCLUDED_PARTS = 73 final ListResultDescriptor<Source> INCLUDED_PARTS =
76 new ResultDescriptor<List<Source>>('INCLUDED_PARTS', Source.EMPTY_ARRAY); 74 new ListResultDescriptor<Source>('INCLUDED_PARTS', Source.EMPTY_ARRAY);
77 75
78 /** 76 /**
79 * A flag specifying whether a library is launchable. 77 * A flag specifying whether a library is launchable.
80 * 78 *
81 * The result is only available for targets representing a Dart library. 79 * The result is only available for targets representing a Dart library.
82 */ 80 */
83 final ResultDescriptor<bool> IS_LAUNCHABLE = 81 final ResultDescriptor<bool> IS_LAUNCHABLE =
84 new ResultDescriptor<bool>('IS_LAUNCHABLE', false); 82 new ResultDescriptor<bool>('IS_LAUNCHABLE', false);
85 83
86 /** 84 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 /** 116 /**
119 * The token stream produced while scanning a compilation unit. 117 * The token stream produced while scanning a compilation unit.
120 * 118 *
121 * The value is the first token in the file, or the special end-of-file marker 119 * The value is the first token in the file, or the special end-of-file marker
122 * at the end of the stream if the file does not contain any tokens. 120 * at the end of the stream if the file does not contain any tokens.
123 * 121 *
124 * The result is only available for targets representing a Dart compilation unit . 122 * The result is only available for targets representing a Dart compilation unit .
125 */ 123 */
126 final ResultDescriptor<Token> TOKEN_STREAM = 124 final ResultDescriptor<Token> TOKEN_STREAM =
127 new ResultDescriptor<Token>('TOKEN_STREAM', null); 125 new ResultDescriptor<Token>('TOKEN_STREAM', null);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698