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

Side by Side Diff: pkg/analyzer_plugin/lib/protocol/protocol_generated.dart

Issue 2876023003: Allow the common spec types to be in a separate document (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 import 'dart:convert' hide JsonDecoder; 9 import 'dart:convert' hide JsonDecoder;
10 10
(...skipping 5347 matching lines...) Expand 10 before | Expand all | Expand 10 after
5358 * GETTER 5358 * GETTER
5359 * LABEL 5359 * LABEL
5360 * LIBRARY 5360 * LIBRARY
5361 * LOCAL_VARIABLE 5361 * LOCAL_VARIABLE
5362 * METHOD 5362 * METHOD
5363 * PARAMETER 5363 * PARAMETER
5364 * PREFIX 5364 * PREFIX
5365 * SETTER 5365 * SETTER
5366 * TOP_LEVEL_VARIABLE 5366 * TOP_LEVEL_VARIABLE
5367 * TYPE_PARAMETER 5367 * TYPE_PARAMETER
5368 * UNIT_TEST_GROUP
5369 * UNIT_TEST_TEST
5368 * UNKNOWN 5370 * UNKNOWN
5369 * } 5371 * }
5370 * 5372 *
5371 * Clients may not extend, implement or mix-in this class. 5373 * Clients may not extend, implement or mix-in this class.
5372 */ 5374 */
5373 class ElementKind implements Enum { 5375 class ElementKind implements Enum {
5374 static const ElementKind CLASS = const ElementKind._("CLASS"); 5376 static const ElementKind CLASS = const ElementKind._("CLASS");
5375 5377
5376 static const ElementKind CLASS_TYPE_ALIAS = 5378 static const ElementKind CLASS_TYPE_ALIAS =
5377 const ElementKind._("CLASS_TYPE_ALIAS"); 5379 const ElementKind._("CLASS_TYPE_ALIAS");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
5410 static const ElementKind PREFIX = const ElementKind._("PREFIX"); 5412 static const ElementKind PREFIX = const ElementKind._("PREFIX");
5411 5413
5412 static const ElementKind SETTER = const ElementKind._("SETTER"); 5414 static const ElementKind SETTER = const ElementKind._("SETTER");
5413 5415
5414 static const ElementKind TOP_LEVEL_VARIABLE = 5416 static const ElementKind TOP_LEVEL_VARIABLE =
5415 const ElementKind._("TOP_LEVEL_VARIABLE"); 5417 const ElementKind._("TOP_LEVEL_VARIABLE");
5416 5418
5417 static const ElementKind TYPE_PARAMETER = 5419 static const ElementKind TYPE_PARAMETER =
5418 const ElementKind._("TYPE_PARAMETER"); 5420 const ElementKind._("TYPE_PARAMETER");
5419 5421
5422 /**
5423 * Deprecated: support for tests was removed.
5424 */
5425 static const ElementKind UNIT_TEST_GROUP =
5426 const ElementKind._("UNIT_TEST_GROUP");
5427
5428 /**
5429 * Deprecated: support for tests was removed.
5430 */
5431 static const ElementKind UNIT_TEST_TEST =
5432 const ElementKind._("UNIT_TEST_TEST");
5433
5420 static const ElementKind UNKNOWN = const ElementKind._("UNKNOWN"); 5434 static const ElementKind UNKNOWN = const ElementKind._("UNKNOWN");
5421 5435
5422 /** 5436 /**
5423 * A list containing all of the enum values that are defined. 5437 * A list containing all of the enum values that are defined.
5424 */ 5438 */
5425 static const List<ElementKind> VALUES = const <ElementKind>[ 5439 static const List<ElementKind> VALUES = const <ElementKind>[
5426 CLASS, 5440 CLASS,
5427 CLASS_TYPE_ALIAS, 5441 CLASS_TYPE_ALIAS,
5428 COMPILATION_UNIT, 5442 COMPILATION_UNIT,
5429 CONSTRUCTOR, 5443 CONSTRUCTOR,
5430 ENUM, 5444 ENUM,
5431 ENUM_CONSTANT, 5445 ENUM_CONSTANT,
5432 FIELD, 5446 FIELD,
5433 FILE, 5447 FILE,
5434 FUNCTION, 5448 FUNCTION,
5435 FUNCTION_TYPE_ALIAS, 5449 FUNCTION_TYPE_ALIAS,
5436 GETTER, 5450 GETTER,
5437 LABEL, 5451 LABEL,
5438 LIBRARY, 5452 LIBRARY,
5439 LOCAL_VARIABLE, 5453 LOCAL_VARIABLE,
5440 METHOD, 5454 METHOD,
5441 PARAMETER, 5455 PARAMETER,
5442 PREFIX, 5456 PREFIX,
5443 SETTER, 5457 SETTER,
5444 TOP_LEVEL_VARIABLE, 5458 TOP_LEVEL_VARIABLE,
5445 TYPE_PARAMETER, 5459 TYPE_PARAMETER,
5460 UNIT_TEST_GROUP,
5461 UNIT_TEST_TEST,
5446 UNKNOWN 5462 UNKNOWN
5447 ]; 5463 ];
5448 5464
5449 @override 5465 @override
5450 final String name; 5466 final String name;
5451 5467
5452 const ElementKind._(this.name); 5468 const ElementKind._(this.name);
5453 5469
5454 factory ElementKind(String name) { 5470 factory ElementKind(String name) {
5455 switch (name) { 5471 switch (name) {
(...skipping 30 matching lines...) Expand all
5486 case "PARAMETER": 5502 case "PARAMETER":
5487 return PARAMETER; 5503 return PARAMETER;
5488 case "PREFIX": 5504 case "PREFIX":
5489 return PREFIX; 5505 return PREFIX;
5490 case "SETTER": 5506 case "SETTER":
5491 return SETTER; 5507 return SETTER;
5492 case "TOP_LEVEL_VARIABLE": 5508 case "TOP_LEVEL_VARIABLE":
5493 return TOP_LEVEL_VARIABLE; 5509 return TOP_LEVEL_VARIABLE;
5494 case "TYPE_PARAMETER": 5510 case "TYPE_PARAMETER":
5495 return TYPE_PARAMETER; 5511 return TYPE_PARAMETER;
5512 case "UNIT_TEST_GROUP":
5513 return UNIT_TEST_GROUP;
5514 case "UNIT_TEST_TEST":
5515 return UNIT_TEST_TEST;
5496 case "UNKNOWN": 5516 case "UNKNOWN":
5497 return UNKNOWN; 5517 return UNKNOWN;
5498 } 5518 }
5499 throw new Exception('Illegal enum value: $name'); 5519 throw new Exception('Illegal enum value: $name');
5500 } 5520 }
5501 5521
5502 factory ElementKind.fromJson( 5522 factory ElementKind.fromJson(
5503 JsonDecoder jsonDecoder, String jsonPath, Object json) { 5523 JsonDecoder jsonDecoder, String jsonPath, Object json) {
5504 if (json is String) { 5524 if (json is String) {
5505 try { 5525 try {
(...skipping 6094 matching lines...) Expand 10 before | Expand all | Expand 10 after
11600 } 11620 }
11601 } 11621 }
11602 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); 11622 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json);
11603 } 11623 }
11604 11624
11605 @override 11625 @override
11606 String toString() => "WatchEventType.$name"; 11626 String toString() => "WatchEventType.$name";
11607 11627
11608 String toJson() => name; 11628 String toJson() => name;
11609 } 11629 }
OLDNEW
« no previous file with comments | « pkg/analyzer_plugin/doc/api.html ('k') | pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698