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

Side by Side Diff: pkg/analysis_server/lib/src/generated/service_interfaces.dart

Issue 247813002: New analysis services snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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 service.interfaces; 8 library service.interfaces;
9 9
10 import 'package:analyzer/src/generated/java_core.dart' show Enum; 10 import 'package:analyzer/src/generated/java_core.dart' show Enum;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 int get offset; 173 int get offset;
174 } 174 }
175 175
176 /** 176 /**
177 * The enumeration `NotificationKind` defines the kinds of notification clients may subscribe 177 * The enumeration `NotificationKind` defines the kinds of notification clients may subscribe
178 * for. 178 * for.
179 */ 179 */
180 class NotificationKind extends Enum<NotificationKind> { 180 class NotificationKind extends Enum<NotificationKind> {
181 static const NotificationKind ERRORS = const NotificationKind('ERRORS', 0); 181 static const NotificationKind ERRORS = const NotificationKind('ERRORS', 0);
182 182
183 static const NotificationKind HIGHLIGHT = const NotificationKind('HIGHLIGHT', 1); 183 static const NotificationKind HIGHLIGHTS = const NotificationKind('HIGHLIGHTS' , 1);
184 184
185 static const NotificationKind NAVIGATION = const NotificationKind('NAVIGATION' , 2); 185 static const NotificationKind NAVIGATION = const NotificationKind('NAVIGATION' , 2);
186 186
187 static const NotificationKind OUTLINE = const NotificationKind('OUTLINE', 3); 187 static const NotificationKind OUTLINE = const NotificationKind('OUTLINE', 3);
188 188
189 static const List<NotificationKind> values = const [ERRORS, HIGHLIGHT, NAVIGAT ION, OUTLINE]; 189 static const List<NotificationKind> values = const [ERRORS, HIGHLIGHTS, NAVIGA TION, OUTLINE];
190 190
191 const NotificationKind(String name, int ordinal) : super(name, ordinal); 191 const NotificationKind(String name, int ordinal) : super(name, ordinal);
192 } 192 }
193 193
194 /** 194 /**
195 * A [SourceSetKind#LIST] implementation of [SourceSet].
196 */
197 class ListSourceSet implements SourceSet {
198 /**
199 * Creates a new list-based [SourceSet] instance.
200 */
201 static SourceSet create(Iterable<Source> sourceCollection) {
202 List<Source> sources = new List.from(sourceCollection);
203 return new ListSourceSet(sources);
204 }
205
206 /**
207 * Creates a new list-based [SourceSet] instance.
208 */
209 static SourceSet create2(List<Source> sources) => new ListSourceSet(sources);
210
211 final List<Source> sources;
212
213 ListSourceSet(this.sources);
214
215 @override
216 SourceSetKind get kind => SourceSetKind.LIST;
217
218 @override
219 String toString() => "[${StringUtils.join(sources, ", ")}]";
220 }
221
222 /**
195 * The interface `NavigationRegion` defines the behavior of objects representing a list of 223 * The interface `NavigationRegion` defines the behavior of objects representing a list of
196 * elements with which a source region is associated. 224 * elements with which a source region is associated.
197 */ 225 */
198 abstract class NavigationRegion implements SourceRegion { 226 abstract class NavigationRegion implements SourceRegion {
199 /** 227 /**
200 * An empty array of navigation regions. 228 * An empty array of navigation regions.
201 */ 229 */
202 static final List<NavigationRegion> EMPTY_ARRAY = new List<NavigationRegion>(0 ); 230 static final List<NavigationRegion> EMPTY_ARRAY = new List<NavigationRegion>(0 );
203 231
204 /** 232 /**
(...skipping 17 matching lines...) Expand all
222 250
223 @override 251 @override
224 String toString() => kind.toString(); 252 String toString() => kind.toString();
225 } 253 }
226 254
227 /** 255 /**
228 * The enumeration `HighlightType` defines the kinds of highlighting that can be associated 256 * The enumeration `HighlightType` defines the kinds of highlighting that can be associated
229 * with a region of text. 257 * with a region of text.
230 */ 258 */
231 class HighlightType extends Enum<HighlightType> { 259 class HighlightType extends Enum<HighlightType> {
232 static const HighlightType COMMENT_BLOCK = const HighlightType('COMMENT_BLOCK' , 0); 260 static const HighlightType ANNOTATION = const HighlightType('ANNOTATION', 0);
233 261
234 static const HighlightType COMMENT_DOCUMENTATION = const HighlightType('COMMEN T_DOCUMENTATION', 1); 262 static const HighlightType BUILT_IN = const HighlightType('BUILT_IN', 1);
235 263
236 static const HighlightType COMMENT_END_OF_LINE = const HighlightType('COMMENT_ END_OF_LINE', 2); 264 static const HighlightType CLASS = const HighlightType('CLASS', 2);
237 265
238 static const HighlightType KEYWORD = const HighlightType('KEYWORD', 3); 266 static const HighlightType COMMENT_BLOCK = const HighlightType('COMMENT_BLOCK' , 3);
239 267
240 static const HighlightType LITERAL_BOOLEAN = const HighlightType('LITERAL_BOOL EAN', 4); 268 static const HighlightType COMMENT_DOCUMENTATION = const HighlightType('COMMEN T_DOCUMENTATION', 4);
241 269
242 static const HighlightType LITERAL_DOUBLE = const HighlightType('LITERAL_DOUBL E', 5); 270 static const HighlightType COMMENT_END_OF_LINE = const HighlightType('COMMENT_ END_OF_LINE', 5);
243 271
244 static const HighlightType LITERAL_INTEGER = const HighlightType('LITERAL_INTE GER', 6); 272 static const HighlightType CONSTRUCTOR = const HighlightType('CONSTRUCTOR', 6) ;
245 273
246 static const HighlightType LITERAL_LIST = const HighlightType('LITERAL_LIST', 7); 274 static const HighlightType DIRECTIVE = const HighlightType('DIRECTIVE', 7);
247 275
248 static const HighlightType LITERAL_MAP = const HighlightType('LITERAL_MAP', 8) ; 276 static const HighlightType DYNAMIC_TYPE = const HighlightType('DYNAMIC_TYPE', 8);
249 277
250 static const HighlightType LITERAL_STRING = const HighlightType('LITERAL_STRIN G', 9); 278 static const HighlightType FIELD = const HighlightType('FIELD', 9);
279
280 static const HighlightType FIELD_STATIC = const HighlightType('FIELD_STATIC', 10);
281
282 static const HighlightType FUNCTION_DECLARATION = const HighlightType('FUNCTIO N_DECLARATION', 11);
283
284 static const HighlightType FUNCTION = const HighlightType('FUNCTION', 12);
285
286 static const HighlightType FUNCTION_TYPE_ALIAS = const HighlightType('FUNCTION _TYPE_ALIAS', 13);
287
288 static const HighlightType GETTER_DECLARATION = const HighlightType('GETTER_DE CLARATION', 14);
289
290 static const HighlightType KEYWORD = const HighlightType('KEYWORD', 15);
291
292 static const HighlightType IDENTIFIER_DEFAULT = const HighlightType('IDENTIFIE R_DEFAULT', 16);
293
294 static const HighlightType IMPORT_PREFIX = const HighlightType('IMPORT_PREFIX' , 17);
295
296 static const HighlightType LITERAL_BOOLEAN = const HighlightType('LITERAL_BOOL EAN', 18);
297
298 static const HighlightType LITERAL_DOUBLE = const HighlightType('LITERAL_DOUBL E', 19);
299
300 static const HighlightType LITERAL_INTEGER = const HighlightType('LITERAL_INTE GER', 20);
301
302 static const HighlightType LITERAL_LIST = const HighlightType('LITERAL_LIST', 21);
303
304 static const HighlightType LITERAL_MAP = const HighlightType('LITERAL_MAP', 22 );
305
306 static const HighlightType LITERAL_STRING = const HighlightType('LITERAL_STRIN G', 23);
307
308 static const HighlightType LOCAL_VARIABLE_DECLARATION = const HighlightType('L OCAL_VARIABLE_DECLARATION', 24);
309
310 static const HighlightType LOCAL_VARIABLE = const HighlightType('LOCAL_VARIABL E', 25);
311
312 static const HighlightType METHOD_DECLARATION = const HighlightType('METHOD_DE CLARATION', 26);
313
314 static const HighlightType METHOD_DECLARATION_STATIC = const HighlightType('ME THOD_DECLARATION_STATIC', 27);
315
316 static const HighlightType METHOD = const HighlightType('METHOD', 28);
317
318 static const HighlightType METHOD_STATIC = const HighlightType('METHOD_STATIC' , 29);
319
320 static const HighlightType PARAMETER = const HighlightType('PARAMETER', 30);
321
322 static const HighlightType SETTER_DECLARATION = const HighlightType('SETTER_DE CLARATION', 31);
323
324 static const HighlightType TOP_LEVEL_VARIABLE = const HighlightType('TOP_LEVEL _VARIABLE', 32);
325
326 static const HighlightType TYPE_NAME_DYNAMIC = const HighlightType('TYPE_NAME_ DYNAMIC', 33);
327
328 static const HighlightType TYPE_PARAMETER = const HighlightType('TYPE_PARAMETE R', 34);
251 329
252 static const List<HighlightType> values = const [ 330 static const List<HighlightType> values = const [
331 ANNOTATION,
332 BUILT_IN,
333 CLASS,
253 COMMENT_BLOCK, 334 COMMENT_BLOCK,
254 COMMENT_DOCUMENTATION, 335 COMMENT_DOCUMENTATION,
255 COMMENT_END_OF_LINE, 336 COMMENT_END_OF_LINE,
337 CONSTRUCTOR,
338 DIRECTIVE,
339 DYNAMIC_TYPE,
340 FIELD,
341 FIELD_STATIC,
342 FUNCTION_DECLARATION,
343 FUNCTION,
344 FUNCTION_TYPE_ALIAS,
345 GETTER_DECLARATION,
256 KEYWORD, 346 KEYWORD,
347 IDENTIFIER_DEFAULT,
348 IMPORT_PREFIX,
257 LITERAL_BOOLEAN, 349 LITERAL_BOOLEAN,
258 LITERAL_DOUBLE, 350 LITERAL_DOUBLE,
259 LITERAL_INTEGER, 351 LITERAL_INTEGER,
260 LITERAL_LIST, 352 LITERAL_LIST,
261 LITERAL_MAP, 353 LITERAL_MAP,
262 LITERAL_STRING]; 354 LITERAL_STRING,
355 LOCAL_VARIABLE_DECLARATION,
356 LOCAL_VARIABLE,
357 METHOD_DECLARATION,
358 METHOD_DECLARATION_STATIC,
359 METHOD,
360 METHOD_STATIC,
361 PARAMETER,
362 SETTER_DECLARATION,
363 TOP_LEVEL_VARIABLE,
364 TYPE_NAME_DYNAMIC,
365 TYPE_PARAMETER];
263 366
264 const HighlightType(String name, int ordinal) : super(name, ordinal); 367 const HighlightType(String name, int ordinal) : super(name, ordinal);
265 } 368 }
266 369
267 /** 370 /**
268 * The interface `Outline` defines the behavior of objects that represent an out line for a 371 * The interface `Outline` defines the behavior of objects that represent an out line for a
269 * single source. 372 * single source.
270 */ 373 */
271 abstract class Outline { 374 abstract class Outline {
272 /** 375 /**
273 * An empty array of outlines. 376 * An empty array of outlines.
274 */ 377 */
275 static final List<Outline> EMPTY_ARRAY = new List<Outline>(0); 378 static final List<Outline> EMPTY_ARRAY = new List<Outline>(0);
276 379
277 /** 380 /**
278 * Return the argument list for the element, or `null` if the element is not a method or
279 * function. If the element has zero arguments, the string `"()"` will be retu rned.
280 *
281 * @return the argument list for the element
282 */
283 String get arguments;
284
285 /**
286 * Return an array containing the children of the element. The array will be e mpty if the element 381 * Return an array containing the children of the element. The array will be e mpty if the element
287 * has no children. 382 * has no children.
288 * 383 *
289 * @return an array containing the children of the element 384 * @return an array containing the children of the element
290 */ 385 */
291 List<Outline> get children; 386 List<Outline> get children;
292 387
293 /** 388 /**
294 * Return the kind of the element. 389 * Return the kind of the element.
295 * 390 *
(...skipping 16 matching lines...) Expand all
312 String get name; 407 String get name;
313 408
314 /** 409 /**
315 * Return the offset to the beginning of the element's name. 410 * Return the offset to the beginning of the element's name.
316 * 411 *
317 * @return the offset to the beginning of the element's name 412 * @return the offset to the beginning of the element's name
318 */ 413 */
319 int get offset; 414 int get offset;
320 415
321 /** 416 /**
417 * Return the parameter list for the element, or `null` if the element is not a constructor,
418 * method or function. If the element has zero arguments, the string `"()"` wi ll be
419 * returned.
420 *
421 * @return the parameter list for the element
422 */
423 String get parameters;
424
425 /**
322 * Return the outline that either physically or logically encloses this outlin e. This will be 426 * Return the outline that either physically or logically encloses this outlin e. This will be
323 * `null` if this outline is a unit outline. 427 * `null` if this outline is a unit outline.
324 * 428 *
325 * @return the outline that encloses this outline 429 * @return the outline that encloses this outline
326 */ 430 */
327 Outline get parent; 431 Outline get parent;
328 432
329 /** 433 /**
330 * Return the return type of the element, or `null` if the element is not a me thod or 434 * Return the return type of the element, or `null` if the element is not a me thod or
331 * function. If the element does not have a declared return type then an empty string will be 435 * function. If the element does not have a declared return type then an empty string will be
332 * returned. 436 * returned.
333 * 437 *
334 * @return the return type of the element 438 * @return the return type of the element
335 */ 439 */
336 String get returnType; 440 String get returnType;
441
442 /**
443 * Return the element's source range.
444 *
445 * @return the element's source range
446 */
447 SourceRegion get sourceRegion;
448
449 /**
450 * Return `true` if the element is abstract.
451 *
452 * @return `true` if the element is abstract
453 */
454 bool get isAbstract;
455
456 /**
457 * Return `true` if the element is private.
458 *
459 * @return `true` if the element is private
460 */
461 bool get isPrivate;
462
463 /**
464 * Return `true` if the element is a class member and is a static element.
465 *
466 * @return `true` if the element is a static element
467 */
468 bool get isStatic;
337 } 469 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated/service_computers.dart ('k') | pkg/analysis_server/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698