Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: pkg/analyzer/tool/summary/idl_model.dart

Issue 1691923002: Make summary format stable when adding getters to idl. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« pkg/analyzer/lib/src/summary/idl.dart ('K') | « pkg/analyzer/tool/summary/generate.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698