| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * Information about a single class field defined in the IDL. | 69 * Information about a single class field defined in the IDL. |
| 70 */ | 70 */ |
| 71 class FieldDeclaration extends Declaration { | 71 class FieldDeclaration extends Declaration { |
| 72 /** | 72 /** |
| 73 * The file of the field. | 73 * The file of the field. |
| 74 */ | 74 */ |
| 75 final FieldType type; | 75 final FieldType type; |
| 76 | 76 |
| 77 FieldDeclaration(String documentation, String name, this.type) | 77 /** |
| 78 * The id of the field. |
| 79 */ |
| 80 final int id; |
| 81 |
| 82 FieldDeclaration(String documentation, String name, this.type, this.id) |
| 78 : super(documentation, name); | 83 : super(documentation, name); |
| 79 } | 84 } |
| 80 | 85 |
| 81 /** | 86 /** |
| 82 * Information about the type of a class field defined in the IDL. | 87 * Information about the type of a class field defined in the IDL. |
| 83 */ | 88 */ |
| 84 class FieldType { | 89 class FieldType { |
| 85 /** | 90 /** |
| 86 * Type of the field (e.g. 'int'). | 91 * Type of the field (e.g. 'int'). |
| 87 */ | 92 */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 103 /** | 108 /** |
| 104 * Classes defined in the IDL. | 109 * Classes defined in the IDL. |
| 105 */ | 110 */ |
| 106 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; | 111 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; |
| 107 | 112 |
| 108 /** | 113 /** |
| 109 * Enums defined in the IDL. | 114 * Enums defined in the IDL. |
| 110 */ | 115 */ |
| 111 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; | 116 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; |
| 112 } | 117 } |
| OLD | NEW |