| 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; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Information about a single class defined in the IDL. | 13 * Information about a single class defined in the IDL. |
| 14 */ | 14 */ |
| 15 class ClassDeclaration extends Declaration { | 15 class ClassDeclaration extends Declaration { |
| 16 /** | 16 /** |
| 17 * All fields defined in the class, including deprecated ones. | 17 * All fields defined in the class, including deprecated ones. |
| 18 */ | 18 */ |
| 19 final List<FieldDeclaration> allFields = <FieldDeclaration>[]; | 19 final List<FieldDeclaration> allFields = <FieldDeclaration>[]; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Indicates whether the class has the `topLevel` annotation. | 22 * Indicates whether the class has the `topLevel` annotation. |
| 23 */ | 23 */ |
| 24 final bool isTopLevel; | 24 final bool isTopLevel; |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * If [isTopLevel] is `true` and a file identifier was specified for this | 27 * If [isTopLevel] is `true` and a file identifier was specified for this |
| 28 * class, the file identifier string. Otheswise `null`. | 28 * class, the file identifier string. Otherwise `null`. |
| 29 */ | 29 */ |
| 30 final String fileIdentifier; | 30 final String fileIdentifier; |
| 31 | 31 |
| 32 ClassDeclaration( | 32 ClassDeclaration( |
| 33 String documentation, String name, this.isTopLevel, this.fileIdentifier) | 33 String documentation, String name, this.isTopLevel, this.fileIdentifier) |
| 34 : super(documentation, name); | 34 : super(documentation, name); |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * Get the non-deprecated fields defined in the class. | 37 * Get the non-deprecated fields defined in the class. |
| 38 */ | 38 */ |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 /** | 90 /** |
| 91 * The id of the field. | 91 * The id of the field. |
| 92 */ | 92 */ |
| 93 final int id; | 93 final int id; |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * Indicates whether the field is deprecated. | 96 * Indicates whether the field is deprecated. |
| 97 */ | 97 */ |
| 98 final bool isDeprecated; | 98 final bool isDeprecated; |
| 99 | 99 |
| 100 FieldDeclaration( | 100 /** |
| 101 String documentation, String name, this.type, this.id, this.isDeprecated) | 101 * Indicates whether the field is informative. |
| 102 */ |
| 103 final bool isInformative; |
| 104 |
| 105 FieldDeclaration(String documentation, String name, this.type, this.id, |
| 106 this.isDeprecated, this.isInformative) |
| 102 : super(documentation, name); | 107 : super(documentation, name); |
| 103 } | 108 } |
| 104 | 109 |
| 105 /** | 110 /** |
| 106 * Information about the type of a class field defined in the IDL. | 111 * Information about the type of a class field defined in the IDL. |
| 107 */ | 112 */ |
| 108 class FieldType { | 113 class FieldType { |
| 109 /** | 114 /** |
| 110 * Type of the field (e.g. 'int'). | 115 * Type of the field (e.g. 'int'). |
| 111 */ | 116 */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 127 /** | 132 /** |
| 128 * Classes defined in the IDL. | 133 * Classes defined in the IDL. |
| 129 */ | 134 */ |
| 130 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; | 135 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; |
| 131 | 136 |
| 132 /** | 137 /** |
| 133 * Enums defined in the IDL. | 138 * Enums defined in the IDL. |
| 134 */ | 139 */ |
| 135 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; | 140 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; |
| 136 } | 141 } |
| OLD | NEW |