| OLD | NEW |
| 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 /** | 5 /** |
| 6 * This file contains a set of concrete classes representing an in-memory | 6 * This file contains a set of concrete classes representing an in-memory |
| 7 * semantic model of the IDL used to code generate summary serialization and | 7 * semantic model of the IDL used to code generate summary serialization and |
| 8 * deserialization code. | 8 * deserialization code. |
| 9 */ | 9 */ |
| 10 library analyzer.tool.summary.idl_model; | 10 library analyzer.tool.summary.idl_model; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 Declaration(this.documentation, this.name); | 44 Declaration(this.documentation, this.name); |
| 45 } | 45 } |
| 46 | 46 |
| 47 /** | 47 /** |
| 48 * Information about a single enum defined in the IDL. | 48 * Information about a single enum defined in the IDL. |
| 49 */ | 49 */ |
| 50 class EnumDeclaration extends Declaration { | 50 class EnumDeclaration extends Declaration { |
| 51 /** | 51 /** |
| 52 * List of enumerated values. | 52 * List of enumerated values. |
| 53 */ | 53 */ |
| 54 final List<String> values = <String>[]; | 54 final List<EnumValueDeclaration> values = <EnumValueDeclaration>[]; |
| 55 | 55 |
| 56 EnumDeclaration(String documentation, String name) | 56 EnumDeclaration(String documentation, String name) |
| 57 : super(documentation, name); | 57 : super(documentation, name); |
| 58 } | 58 } |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * Information about a single enum value defined in the IDL. |
| 62 */ |
| 63 class EnumValueDeclaration extends Declaration { |
| 64 EnumValueDeclaration(String documentation, String name) |
| 65 : super(documentation, name); |
| 66 } |
| 67 |
| 68 /** |
| 61 * Information about a single class field defined in the IDL. | 69 * Information about a single class field defined in the IDL. |
| 62 */ | 70 */ |
| 63 class FieldDeclaration extends Declaration { | 71 class FieldDeclaration extends Declaration { |
| 64 /** | 72 /** |
| 65 * The file of the field. | 73 * The file of the field. |
| 66 */ | 74 */ |
| 67 final FieldType type; | 75 final FieldType type; |
| 68 | 76 |
| 69 FieldDeclaration(String documentation, String name, this.type) | 77 FieldDeclaration(String documentation, String name, this.type) |
| 70 : super(documentation, name); | 78 : super(documentation, name); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 95 /** | 103 /** |
| 96 * Classes defined in the IDL. | 104 * Classes defined in the IDL. |
| 97 */ | 105 */ |
| 98 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; | 106 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; |
| 99 | 107 |
| 100 /** | 108 /** |
| 101 * Enums defined in the IDL. | 109 * Enums defined in the IDL. |
| 102 */ | 110 */ |
| 103 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; | 111 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; |
| 104 } | 112 } |
| OLD | NEW |