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

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

Issue 2010993002: Migrate UnlinkedParam.defaultValue to UnlinkedExecutable.bodyExpr. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 /** 2142 /**
2143 * Annotations for this parameter. 2143 * Annotations for this parameter.
2144 */ 2144 */
2145 @Id(9) 2145 @Id(9)
2146 List<UnlinkedConst> get annotations; 2146 List<UnlinkedConst> get annotations;
2147 2147
2148 /** 2148 /**
2149 * Code range of the parameter. 2149 * Code range of the parameter.
2150 */ 2150 */
2151 @informative 2151 @informative
2152 @Id(14) 2152 @Id(7)
2153 CodeRange get codeRange; 2153 CodeRange get codeRange;
2154 2154
2155 /** 2155 /**
2156 * If the parameter has a default value, the constant expression in the
2157 * default value. Note that the presence of this expression does not mean
2158 * that it is a valid, check [UnlinkedConst.isInvalid].
2159 */
2160 @Id(7)
2161 UnlinkedConst get defaultValue;
2162
2163 /**
2164 * If the parameter has a default value, the source text of the constant 2156 * If the parameter has a default value, the source text of the constant
2165 * expression in the default value. Otherwise the empty string. 2157 * expression in the default value. Otherwise the empty string.
2166 */ 2158 */
2167 @informative 2159 @informative
2168 @Id(13) 2160 @Id(13)
2169 String get defaultValueCode; 2161 String get defaultValueCode;
2170 2162
2171 /** 2163 /**
2172 * If this parameter's type is inferable, nonzero slot id identifying which 2164 * If this parameter's type is inferable, nonzero slot id identifying which
2173 * entry in [LinkedLibrary.types] contains the inferred type. If there is no 2165 * entry in [LinkedLibrary.types] contains the inferred type. If there is no
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 */ 2706 */
2715 @Id(11) 2707 @Id(11)
2716 int get visibleLength; 2708 int get visibleLength;
2717 2709
2718 /** 2710 /**
2719 * If a local variable, the beginning of the visible range; zero otherwise. 2711 * If a local variable, the beginning of the visible range; zero otherwise.
2720 */ 2712 */
2721 @Id(12) 2713 @Id(12)
2722 int get visibleOffset; 2714 int get visibleOffset;
2723 } 2715 }
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