OLD | NEW |
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 import 'dart:collection'; | 5 import 'dart:collection'; |
6 | 6 |
7 import 'package:analyzer_plugin/protocol/generated_protocol.dart'; | 7 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
8 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; | 8 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; |
9 | 9 |
10 /** | 10 /** |
11 * An interface for enumerated types in the protocol. | 11 * An interface for enumerated types in the protocol. |
12 * | 12 * |
13 * Clients may not extend, implement or mix-in this class. | 13 * Clients may not extend, implement or mix-in this class. |
14 */ | 14 */ |
15 abstract class Enum { | 15 abstract class Enum { |
16 /** | 16 /** |
17 * The name of the enumerated value. This should match the name of the static | 17 * The name of the enumerated value. This should match the name of the static |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 jsonObject[ID] = id; | 574 jsonObject[ID] = id; |
575 if (error != null) { | 575 if (error != null) { |
576 jsonObject[ERROR] = error.toJson(); | 576 jsonObject[ERROR] = error.toJson(); |
577 } | 577 } |
578 if (result != null) { | 578 if (result != null) { |
579 jsonObject[RESULT] = result; | 579 jsonObject[RESULT] = result; |
580 } | 580 } |
581 return jsonObject; | 581 return jsonObject; |
582 } | 582 } |
583 } | 583 } |
OLD | NEW |