| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 */ | 116 */ |
| 117 final String typeName; | 117 final String typeName; |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * Indicates whether this field contains a list of the type specified in | 120 * Indicates whether this field contains a list of the type specified in |
| 121 * [typeName]. | 121 * [typeName]. |
| 122 */ | 122 */ |
| 123 final bool isList; | 123 final bool isList; |
| 124 | 124 |
| 125 FieldType(this.typeName, this.isList); | 125 FieldType(this.typeName, this.isList); |
| 126 |
| 127 @override |
| 128 String toString() => isList ? 'List<$typeName>' : typeName; |
| 126 } | 129 } |
| 127 | 130 |
| 128 /** | 131 /** |
| 129 * Top level representation of the summary IDL. | 132 * Top level representation of the summary IDL. |
| 130 */ | 133 */ |
| 131 class Idl { | 134 class Idl { |
| 132 /** | 135 /** |
| 133 * Classes defined in the IDL. | 136 * Classes defined in the IDL. |
| 134 */ | 137 */ |
| 135 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; | 138 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; |
| 136 | 139 |
| 137 /** | 140 /** |
| 138 * Enums defined in the IDL. | 141 * Enums defined in the IDL. |
| 139 */ | 142 */ |
| 140 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; | 143 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; |
| 141 } | 144 } |
| OLD | NEW |