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

Side by Side Diff: frog/token_kind.g.dart

Issue 8980014: Make 'class' and 'extends' into real keywords, per language spec 0.06 . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « frog/scripts/token_info.py ('k') | tests/language/language.status » ('j') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Generated by scripts/token_kind_gen.py. 4 // Generated by scripts/token_kind_gen.py.
5 5
6 class TokenKind { 6 class TokenKind {
7 /** [TokenKind] representing end of file tokens. */ 7 /** [TokenKind] representing end of file tokens. */
8 static final int END_OF_FILE = 1; 8 static final int END_OF_FILE = 1;
9 9
10 /** [TokenKind] representing ( tokens. */ 10 /** [TokenKind] representing ( tokens. */
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 /** [TokenKind] representing identifier tokens. */ 214 /** [TokenKind] representing identifier tokens. */
215 static final int IDENTIFIER = 70; 215 static final int IDENTIFIER = 70;
216 216
217 /** [TokenKind] representing pseudo-keyword 'abstract' tokens. */ 217 /** [TokenKind] representing pseudo-keyword 'abstract' tokens. */
218 static final int ABSTRACT = 71; 218 static final int ABSTRACT = 71;
219 219
220 /** [TokenKind] representing pseudo-keyword 'assert' tokens. */ 220 /** [TokenKind] representing pseudo-keyword 'assert' tokens. */
221 static final int ASSERT = 72; 221 static final int ASSERT = 72;
222 222
223 /** [TokenKind] representing pseudo-keyword 'class' tokens. */
224 static final int CLASS = 73;
225
226 /** [TokenKind] representing pseudo-keyword 'extends' tokens. */
227 static final int EXTENDS = 74;
228
229 /** [TokenKind] representing pseudo-keyword 'factory' tokens. */ 223 /** [TokenKind] representing pseudo-keyword 'factory' tokens. */
230 static final int FACTORY = 75; 224 static final int FACTORY = 73;
231 225
232 /** [TokenKind] representing pseudo-keyword 'get' tokens. */ 226 /** [TokenKind] representing pseudo-keyword 'get' tokens. */
233 static final int GET = 76; 227 static final int GET = 74;
234 228
235 /** [TokenKind] representing pseudo-keyword 'implements' tokens. */ 229 /** [TokenKind] representing pseudo-keyword 'implements' tokens. */
236 static final int IMPLEMENTS = 77; 230 static final int IMPLEMENTS = 75;
237 231
238 /** [TokenKind] representing pseudo-keyword 'import' tokens. */ 232 /** [TokenKind] representing pseudo-keyword 'import' tokens. */
239 static final int IMPORT = 78; 233 static final int IMPORT = 76;
240 234
241 /** [TokenKind] representing pseudo-keyword 'interface' tokens. */ 235 /** [TokenKind] representing pseudo-keyword 'interface' tokens. */
242 static final int INTERFACE = 79; 236 static final int INTERFACE = 77;
243 237
244 /** [TokenKind] representing pseudo-keyword 'library' tokens. */ 238 /** [TokenKind] representing pseudo-keyword 'library' tokens. */
245 static final int LIBRARY = 80; 239 static final int LIBRARY = 78;
246 240
247 /** [TokenKind] representing pseudo-keyword 'native' tokens. */ 241 /** [TokenKind] representing pseudo-keyword 'native' tokens. */
248 static final int NATIVE = 81; 242 static final int NATIVE = 79;
249 243
250 /** [TokenKind] representing pseudo-keyword 'negate' tokens. */ 244 /** [TokenKind] representing pseudo-keyword 'negate' tokens. */
251 static final int NEGATE = 82; 245 static final int NEGATE = 80;
252 246
253 /** [TokenKind] representing pseudo-keyword 'operator' tokens. */ 247 /** [TokenKind] representing pseudo-keyword 'operator' tokens. */
254 static final int OPERATOR = 83; 248 static final int OPERATOR = 81;
255 249
256 /** [TokenKind] representing pseudo-keyword 'set' tokens. */ 250 /** [TokenKind] representing pseudo-keyword 'set' tokens. */
257 static final int SET = 84; 251 static final int SET = 82;
258 252
259 /** [TokenKind] representing pseudo-keyword 'source' tokens. */ 253 /** [TokenKind] representing pseudo-keyword 'source' tokens. */
260 static final int SOURCE = 85; 254 static final int SOURCE = 83;
261 255
262 /** [TokenKind] representing pseudo-keyword 'static' tokens. */ 256 /** [TokenKind] representing pseudo-keyword 'static' tokens. */
263 static final int STATIC = 86; 257 static final int STATIC = 84;
264 258
265 /** [TokenKind] representing pseudo-keyword 'typedef' tokens. */ 259 /** [TokenKind] representing pseudo-keyword 'typedef' tokens. */
266 static final int TYPEDEF = 87; 260 static final int TYPEDEF = 85;
267 261
268 /** [TokenKind] representing keyword 'await' tokens. */ 262 /** [TokenKind] representing keyword 'await' tokens. */
269 static final int AWAIT = 88; 263 static final int AWAIT = 86;
270 264
271 /** [TokenKind] representing keyword 'break' tokens. */ 265 /** [TokenKind] representing keyword 'break' tokens. */
272 static final int BREAK = 89; 266 static final int BREAK = 87;
273 267
274 /** [TokenKind] representing keyword 'case' tokens. */ 268 /** [TokenKind] representing keyword 'case' tokens. */
275 static final int CASE = 90; 269 static final int CASE = 88;
276 270
277 /** [TokenKind] representing keyword 'catch' tokens. */ 271 /** [TokenKind] representing keyword 'catch' tokens. */
278 static final int CATCH = 91; 272 static final int CATCH = 89;
273
274 /** [TokenKind] representing keyword 'class' tokens. */
275 static final int CLASS = 90;
279 276
280 /** [TokenKind] representing keyword 'const' tokens. */ 277 /** [TokenKind] representing keyword 'const' tokens. */
281 static final int CONST = 92; 278 static final int CONST = 91;
282 279
283 /** [TokenKind] representing keyword 'continue' tokens. */ 280 /** [TokenKind] representing keyword 'continue' tokens. */
284 static final int CONTINUE = 93; 281 static final int CONTINUE = 92;
285 282
286 /** [TokenKind] representing keyword 'default' tokens. */ 283 /** [TokenKind] representing keyword 'default' tokens. */
287 static final int DEFAULT = 94; 284 static final int DEFAULT = 93;
288 285
289 /** [TokenKind] representing keyword 'do' tokens. */ 286 /** [TokenKind] representing keyword 'do' tokens. */
290 static final int DO = 95; 287 static final int DO = 94;
291 288
292 /** [TokenKind] representing keyword 'else' tokens. */ 289 /** [TokenKind] representing keyword 'else' tokens. */
293 static final int ELSE = 96; 290 static final int ELSE = 95;
291
292 /** [TokenKind] representing keyword 'extends' tokens. */
293 static final int EXTENDS = 96;
294 294
295 /** [TokenKind] representing keyword 'false' tokens. */ 295 /** [TokenKind] representing keyword 'false' tokens. */
296 static final int FALSE = 97; 296 static final int FALSE = 97;
297 297
298 /** [TokenKind] representing keyword 'final' tokens. */ 298 /** [TokenKind] representing keyword 'final' tokens. */
299 static final int FINAL = 98; 299 static final int FINAL = 98;
300 300
301 /** [TokenKind] representing keyword 'finally' tokens. */ 301 /** [TokenKind] representing keyword 'finally' tokens. */
302 static final int FINALLY = 99; 302 static final int FINALLY = 99;
303 303
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 } 572 }
573 573
574 static int kindFromAssign(int kind) { 574 static int kindFromAssign(int kind) {
575 if (kind == ASSIGN) return 0; 575 if (kind == ASSIGN) return 0;
576 if (kind > ASSIGN && kind <= ASSIGN_MOD) { 576 if (kind > ASSIGN && kind <= ASSIGN_MOD) {
577 return kind + (ADD - ASSIGN_ADD); 577 return kind + (ADD - ASSIGN_ADD);
578 } 578 }
579 return -1; 579 return -1;
580 } 580 }
581 } 581 }
OLDNEW
« no previous file with comments | « frog/scripts/token_info.py ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698