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

Side by Side Diff: test/protos/reserved_names.proto

Issue 210843002: Include the Dart reserved words in the reserved names handling (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Minor fix Created 6 years, 9 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
« no previous file with comments | « test/generated_message_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 package protobuf_unittest; 7 package protobuf_unittest;
8 8
9 message ReservedNamesOptional { 9 message ReservedNamesOptional {
10 // Conflicts with Object. 10 // Conflicts with Object.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Other conflicts. 131 // Other conflicts.
132 required int32 hash_code_1 = 40; 132 required int32 hash_code_1 = 40;
133 133
134 required int32 x = 50; 134 required int32 x = 50;
135 required int32 has_x = 51; 135 required int32 has_x = 51;
136 required int32 clear_x = 53; 136 required int32 clear_x = 53;
137 required int32 has_x_51 = 54; 137 required int32 has_x_51 = 54;
138 required int32 clear_x_53 = 55; 138 required int32 clear_x_53 = 55;
139 } 139 }
140
141 message ReservedWordsOptional {
142 optional int32 assert = 1;
143 optional int32 break = 2;
144 optional int32 case = 3;
145 optional int32 catch = 4;
146 optional int32 class = 5;
147 optional int32 const = 6;
148 optional int32 continue = 7;
149 optional int32 default = 8;
150 optional int32 do = 9;
151 optional int32 else = 10;
152 optional int32 enum = 11;
153 optional int32 extends = 12;
154 optional int32 false = 13;
155 optional int32 final = 14;
156 optional int32 finally = 15;
157 optional int32 for = 16;
158 optional int32 if = 17;
159 optional int32 in = 18;
160 optional int32 is = 19;
161 optional int32 new = 20;
162 optional int32 null = 21;
163 optional int32 rethrow = 22;
164 optional int32 return = 23;
165 optional int32 super = 24;
166 optional int32 switch = 25;
167 optional int32 this = 26;
168 optional int32 throw = 27;
169 optional int32 true = 28;
170 optional int32 try = 29;
171 optional int32 var = 30;
172 optional int32 void = 31;
173 optional int32 while = 32;
174 optional int32 with = 33;
175 }
176
177 message ReservedWordsRepeated {
178 repeated int32 assert = 1;
179 repeated int32 break = 2;
180 repeated int32 case = 3;
181 repeated int32 catch = 4;
182 repeated int32 class = 5;
183 repeated int32 const = 6;
184 repeated int32 continue = 7;
185 repeated int32 default = 8;
186 repeated int32 do = 9;
187 repeated int32 else = 10;
188 repeated int32 enum = 11;
189 repeated int32 extends = 12;
190 repeated int32 false = 13;
191 repeated int32 final = 14;
192 repeated int32 finally = 15;
193 repeated int32 for = 16;
194 repeated int32 if = 17;
195 repeated int32 in = 18;
196 repeated int32 is = 19;
197 repeated int32 new = 20;
198 repeated int32 null = 21;
199 repeated int32 rethrow = 22;
200 repeated int32 return = 23;
201 repeated int32 super = 24;
202 repeated int32 switch = 25;
203 repeated int32 this = 26;
204 repeated int32 throw = 27;
205 repeated int32 true = 28;
206 repeated int32 try = 29;
207 repeated int32 var = 30;
208 repeated int32 void = 31;
209 repeated int32 while = 32;
210 repeated int32 with = 33;
211 }
212
213 message ReservedWordsRequired {
214 required int32 assert = 1;
215 required int32 break = 2;
216 required int32 case = 3;
217 required int32 catch = 4;
218 required int32 class = 5;
219 required int32 const = 6;
220 required int32 continue = 7;
221 required int32 default = 8;
222 required int32 do = 9;
223 required int32 else = 10;
224 required int32 enum = 11;
225 required int32 extends = 12;
226 required int32 false = 13;
227 required int32 final = 14;
228 required int32 finally = 15;
229 required int32 for = 16;
230 required int32 if = 17;
231 required int32 in = 18;
232 required int32 is = 19;
233 required int32 new = 20;
234 required int32 null = 21;
235 required int32 rethrow = 22;
236 required int32 return = 23;
237 required int32 super = 24;
238 required int32 switch = 25;
239 required int32 this = 26;
240 required int32 throw = 27;
241 required int32 true = 28;
242 required int32 try = 29;
243 required int32 var = 30;
244 required int32 void = 31;
245 required int32 while = 32;
246 required int32 with = 33;
247 }
OLDNEW
« no previous file with comments | « test/generated_message_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698