Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 984 List<UnlinkedConstructorInitializer> get constantInitializers; | 984 List<UnlinkedConstructorInitializer> get constantInitializers; |
| 985 | 985 |
| 986 /** | 986 /** |
| 987 * Documentation comment for the executable, or `null` if there is no | 987 * Documentation comment for the executable, or `null` if there is no |
| 988 * documentation comment. | 988 * documentation comment. |
| 989 */ | 989 */ |
| 990 @informative | 990 @informative |
| 991 UnlinkedDocumentationComment get documentationComment; | 991 UnlinkedDocumentationComment get documentationComment; |
| 992 | 992 |
| 993 /** | 993 /** |
| 994 * The list of local functions. | |
| 995 */ | |
| 996 List<UnlinkedExecutable> get executables; | |
|
Paul Berry
2016/02/11 15:29:19
I'd prefer if we called this "localFunctions" for
scheglov
2016/02/11 15:50:08
Done!
Actually I named them as localFunctions and
| |
| 997 | |
| 998 /** | |
| 994 * If this executable's return type is inferable, nonzero slot id | 999 * If this executable's return type is inferable, nonzero slot id |
| 995 * identifying which entry in [LinkedUnit.types] contains the inferred | 1000 * identifying which entry in [LinkedUnit.types] contains the inferred |
| 996 * return type. If there is no matching entry in [LinkedUnit.types], then | 1001 * return type. If there is no matching entry in [LinkedUnit.types], then |
| 997 * no return type was inferred for this variable, so its static type is | 1002 * no return type was inferred for this variable, so its static type is |
| 998 * `dynamic`. | 1003 * `dynamic`. |
| 999 */ | 1004 */ |
| 1000 int get inferredReturnTypeSlot; | 1005 int get inferredReturnTypeSlot; |
| 1001 | 1006 |
| 1002 /** | 1007 /** |
| 1003 * Indicates whether the executable is declared using the `abstract` keyword. | 1008 * Indicates whether the executable is declared using the `abstract` keyword. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1079 * Declared return type of the executable. Absent if the executable is a | 1084 * Declared return type of the executable. Absent if the executable is a |
| 1080 * constructor or the return type is implicit. | 1085 * constructor or the return type is implicit. |
| 1081 */ | 1086 */ |
| 1082 EntityRef get returnType; | 1087 EntityRef get returnType; |
| 1083 | 1088 |
| 1084 /** | 1089 /** |
| 1085 * Type parameters of the executable, if any. Empty if support for generic | 1090 * Type parameters of the executable, if any. Empty if support for generic |
| 1086 * method syntax is disabled. | 1091 * method syntax is disabled. |
| 1087 */ | 1092 */ |
| 1088 List<UnlinkedTypeParam> get typeParameters; | 1093 List<UnlinkedTypeParam> get typeParameters; |
| 1094 | |
| 1095 /** | |
| 1096 * The list of local variable. | |
|
Paul Berry
2016/02/11 15:29:19
s/variable/variables/
scheglov
2016/02/11 15:50:08
Done.
| |
| 1097 */ | |
| 1098 List<UnlinkedVariable> get variables; | |
|
Paul Berry
2016/02/11 15:29:19
Similarly, this should be called "localVariables".
scheglov
2016/02/11 15:50:08
Done.
| |
| 1099 | |
| 1100 /** | |
| 1101 * If a local function, the length of the visible range; absent otherwise. | |
|
Paul Berry
2016/02/11 15:29:19
s/absent/zero/ here and in 3 other places below.
scheglov
2016/02/11 15:50:08
Done.
| |
| 1102 */ | |
| 1103 int get visibleLength; | |
| 1104 | |
| 1105 /** | |
| 1106 * If a local function, the beginning of the visible range; absent otherwise. | |
| 1107 */ | |
| 1108 int get visibleOffset; | |
| 1089 } | 1109 } |
| 1090 | 1110 |
| 1091 /** | 1111 /** |
| 1092 * Enum used to indicate the kind of an executable. | 1112 * Enum used to indicate the kind of an executable. |
| 1093 */ | 1113 */ |
| 1094 enum UnlinkedExecutableKind { | 1114 enum UnlinkedExecutableKind { |
| 1095 /** | 1115 /** |
| 1096 * Executable is a function or method. | 1116 * Executable is a function or method. |
| 1097 */ | 1117 */ |
| 1098 functionOrMethod, | 1118 functionOrMethod, |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1661 * propagated type is the same as its declared type. | 1681 * propagated type is the same as its declared type. |
| 1662 * | 1682 * |
| 1663 * Non-propagable variables have a [propagatedTypeSlot] of zero. | 1683 * Non-propagable variables have a [propagatedTypeSlot] of zero. |
| 1664 */ | 1684 */ |
| 1665 int get propagatedTypeSlot; | 1685 int get propagatedTypeSlot; |
| 1666 | 1686 |
| 1667 /** | 1687 /** |
| 1668 * Declared type of the variable. Absent if the type is implicit. | 1688 * Declared type of the variable. Absent if the type is implicit. |
| 1669 */ | 1689 */ |
| 1670 EntityRef get type; | 1690 EntityRef get type; |
| 1691 | |
| 1692 /** | |
| 1693 * If a local variable, the length of the visible range; absent otherwise. | |
| 1694 */ | |
| 1695 int get visibleLength; | |
| 1696 | |
| 1697 /** | |
| 1698 * If a local variable, the beginning of the visible range; absent otherwise. | |
| 1699 */ | |
| 1700 int get visibleOffset; | |
| 1671 } | 1701 } |
| OLD | NEW |