Chromium Code Reviews| 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 { | 15 class ClassDeclaration { |
| 16 /** | 16 /** |
| 17 * Fields defined in the class. | 17 * Fields defined in the class. |
| 18 */ | 18 */ |
| 19 final Map<String, FieldType> fields = <String, FieldType>{}; | 19 final Map<String, FieldType> fields = <String, FieldType>{}; |
| 20 | |
| 21 /** | |
| 22 * Indicates whether the class has the `topLevel` annotation. | |
| 23 */ | |
|
Brian Wilkerson
2015/11/11 21:06:39
Misaligned comment. Needs formatting?
Paul Berry
2015/11/11 21:14:08
Done.
| |
| 24 final bool isTopLevel; | |
| 25 | |
| 26 ClassDeclaration(this.isTopLevel); | |
| 20 } | 27 } |
| 21 | 28 |
| 22 /** | 29 /** |
| 23 * Information about a single enum defined in the IDL. | 30 * Information about a single enum defined in the IDL. |
| 24 */ | 31 */ |
| 25 class EnumDeclaration { | 32 class EnumDeclaration { |
| 26 /** | 33 /** |
| 27 * List of enumerated values. | 34 * List of enumerated values. |
| 28 */ | 35 */ |
| 29 final List<String> values = <String>[]; | 36 final List<String> values = <String>[]; |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 54 /** | 61 /** |
| 55 * Classes defined in the IDL. | 62 * Classes defined in the IDL. |
| 56 */ | 63 */ |
| 57 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; | 64 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; |
| 58 | 65 |
| 59 /** | 66 /** |
| 60 * Enums defined in the IDL. | 67 * Enums defined in the IDL. |
| 61 */ | 68 */ |
| 62 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; | 69 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; |
| 63 } | 70 } |
| OLD | NEW |