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

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

Issue 1713593002: Store return types of variable initializers in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 /** 1168 /**
1169 * If [isRedirectedConstructor] is `true` and [isFactory] is `false`, the 1169 * If [isRedirectedConstructor] is `true` and [isFactory] is `false`, the
1170 * name of the constructor that this constructor redirects to; otherwise 1170 * name of the constructor that this constructor redirects to; otherwise
1171 * empty. 1171 * empty.
1172 */ 1172 */
1173 @Id(17) 1173 @Id(17)
1174 String get redirectedConstructorName; 1174 String get redirectedConstructorName;
1175 1175
1176 /** 1176 /**
1177 * Declared return type of the executable. Absent if the executable is a 1177 * Declared return type of the executable. Absent if the executable is a
1178 * constructor or the return type is implicit. 1178 * constructor or the return type is implicit. Absent for executables
1179 * associated with variable initializers and closures, since these
1180 * executables may have return types that are not accessible via direct
1181 * imports.
1179 */ 1182 */
1180 @Id(3) 1183 @Id(3)
1181 EntityRef get returnType; 1184 EntityRef get returnType;
1182 1185
1183 /** 1186 /**
1184 * Type parameters of the executable, if any. Empty if support for generic 1187 * Type parameters of the executable, if any. Empty if support for generic
1185 * method syntax is disabled. 1188 * method syntax is disabled.
1186 */ 1189 */
1187 @Id(16) 1190 @Id(16)
1188 List<UnlinkedTypeParam> get typeParameters; 1191 List<UnlinkedTypeParam> get typeParameters;
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 } 1575 }
1573 1576
1574 /** 1577 /**
1575 * Unlinked summary information about a name referred to in one library that 1578 * Unlinked summary information about a name referred to in one library that
1576 * might be defined in another. 1579 * might be defined in another.
1577 */ 1580 */
1578 abstract class UnlinkedReference extends base.SummaryClass { 1581 abstract class UnlinkedReference extends base.SummaryClass {
1579 /** 1582 /**
1580 * Name of the entity being referred to. For the pseudo-type `dynamic`, the 1583 * Name of the entity being referred to. For the pseudo-type `dynamic`, the
1581 * string is "dynamic". For the pseudo-type `void`, the string is "void". 1584 * string is "dynamic". For the pseudo-type `void`, the string is "void".
1585 * For the pseudo-type `bottom`, the string is "*bottom*".
1582 */ 1586 */
1583 @Id(0) 1587 @Id(0)
1584 String get name; 1588 String get name;
1585 1589
1586 /** 1590 /**
1587 * Prefix used to refer to the entity, or zero if no prefix is used. This is 1591 * Prefix used to refer to the entity, or zero if no prefix is used. This is
1588 * an index into [UnlinkedUnit.references]. 1592 * an index into [UnlinkedUnit.references].
1589 * 1593 *
1590 * Prefix references must always point backward; that is, for all i, if 1594 * Prefix references must always point backward; that is, for all i, if
1591 * UnlinkedUnit.references[i].prefixReference != 0, then 1595 * UnlinkedUnit.references[i].prefixReference != 0, then
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 */ 1891 */
1888 @Id(11) 1892 @Id(11)
1889 int get visibleLength; 1893 int get visibleLength;
1890 1894
1891 /** 1895 /**
1892 * If a local variable, the beginning of the visible range; zero otherwise. 1896 * If a local variable, the beginning of the visible range; zero otherwise.
1893 */ 1897 */
1894 @Id(12) 1898 @Id(12)
1895 int get visibleOffset; 1899 int get visibleOffset;
1896 } 1900 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698