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

Side by Side Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1864753002: Use isValidConst flag to distinguish between const / final expressions. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge and tweaks. Created 4 years, 8 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 | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.dart » ('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) 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 6 * This file is an "idl" style description of the summary format. It
7 * contains abstract classes which declare the interface for reading data from 7 * contains abstract classes which declare the interface for reading data from
8 * summaries. It is parsed and transformed into code that implements the 8 * summaries. It is parsed and transformed into code that implements the
9 * summary format. 9 * summary format.
10 * 10 *
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 1004
1005 /** 1005 /**
1006 * Sequence of unsigned 32-bit integers consumed by the operations 1006 * Sequence of unsigned 32-bit integers consumed by the operations
1007 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, 1007 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`,
1008 * `makeList`, and `makeMap`. 1008 * `makeList`, and `makeMap`.
1009 */ 1009 */
1010 @Id(1) 1010 @Id(1)
1011 List<int> get ints; 1011 List<int> get ints;
1012 1012
1013 /** 1013 /**
1014 * Indicates whether the expression is not a valid potentially constant 1014 * Indicates whether the expression is a valid potentially constant
1015 * expression. 1015 * expression.
1016 */ 1016 */
1017 @Id(5) 1017 @Id(5)
1018 bool get isInvalid; 1018 bool get isValidConst;
1019 1019
1020 /** 1020 /**
1021 * Sequence of operations to execute (starting with an empty stack) to form 1021 * Sequence of operations to execute (starting with an empty stack) to form
1022 * the constant value. 1022 * the constant value.
1023 */ 1023 */
1024 @Id(0) 1024 @Id(0)
1025 List<UnlinkedConstOperation> get operations; 1025 List<UnlinkedConstOperation> get operations;
1026 1026
1027 /** 1027 /**
1028 * Sequence of language constructs consumed by the operations 1028 * Sequence of language constructs consumed by the operations
(...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 */ 2665 */
2666 @Id(11) 2666 @Id(11)
2667 int get visibleLength; 2667 int get visibleLength;
2668 2668
2669 /** 2669 /**
2670 * If a local variable, the beginning of the visible range; zero otherwise. 2670 * If a local variable, the beginning of the visible range; zero otherwise.
2671 */ 2671 */
2672 @Id(12) 2672 @Id(12)
2673 int get visibleOffset; 2673 int get visibleOffset;
2674 } 2674 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698