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

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

Issue 1602203004: Serialize constant initializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 is an "idl" style description of the summary format. It is not 6 * This file is an "idl" style description of the summary format. It is not
7 * executed directly; instead it is parsed and transformed into code that 7 * executed directly; instead it is parsed and transformed into code that
8 * implements the summary format. 8 * implements the summary format.
9 * 9 *
10 * The code generation process introduces the following non-typical semantics: 10 * The code generation process introduces the following non-typical semantics:
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 * Pop the top n values from the stack (where n is obtained from 449 * Pop the top n values from the stack (where n is obtained from
450 * [UnlinkedConst.ints]), convert them to strings (if they aren't already), 450 * [UnlinkedConst.ints]), convert them to strings (if they aren't already),
451 * concatenate them into a single string, and push it back onto the stack. 451 * concatenate them into a single string, and push it back onto the stack.
452 * 452 *
453 * This operation is used to represent constants whose value is a literal 453 * This operation is used to represent constants whose value is a literal
454 * string containing string interpolations. 454 * string containing string interpolations.
455 */ 455 */
456 concatenate, 456 concatenate,
457 457
458 /** 458 /**
459 * Pop the top value from the stack, which should be a string, convert it to 459 * Pop the top n values from the stack (where n is obtained from
Paul Berry 2016/01/19 20:02:10 See my comments at summarize_elements.dart line 11
scheglov 2016/01/19 20:59:28 Done.
460 * [UnlinkedConst.ints]), which should be strings, convert them to
460 * a symbol, and push it back onto the stack. 461 * a symbol, and push it back onto the stack.
461 */ 462 */
462 makeSymbol, 463 makeSymbol,
463 464
464 /** 465 /**
465 * Push the constant `null` onto the stack. 466 * Push the constant `null` onto the stack.
466 */ 467 */
467 pushNull, 468 pushNull,
468 469
469 /** 470 /**
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 /** 1371 /**
1371 * Indicates whether the variable is declared using the `const` keyword. 1372 * Indicates whether the variable is declared using the `const` keyword.
1372 */ 1373 */
1373 bool isConst; 1374 bool isConst;
1374 1375
1375 /** 1376 /**
1376 * Indicates whether this variable lacks an explicit type declaration. 1377 * Indicates whether this variable lacks an explicit type declaration.
1377 */ 1378 */
1378 bool hasImplicitType; 1379 bool hasImplicitType;
1379 } 1380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698