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 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". | 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". |
7 | 7 |
8 library analyzer.src.summary.format; | 8 library analyzer.src.summary.format; |
9 | 9 |
10 import 'flat_buffers.dart' as fb; | 10 import 'flat_buffers.dart' as fb; |
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 | 1132 |
1133 @override | 1133 @override |
1134 String toString() => convert.JSON.encode(toJson()); | 1134 String toString() => convert.JSON.encode(toJson()); |
1135 } | 1135 } |
1136 | 1136 |
1137 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements idl.Link
edUnit { | 1137 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements idl.Link
edUnit { |
1138 bool _finished = false; | 1138 bool _finished = false; |
1139 | 1139 |
1140 List<LinkedReferenceBuilder> _references; | 1140 List<LinkedReferenceBuilder> _references; |
1141 List<EntityRefBuilder> _types; | 1141 List<EntityRefBuilder> _types; |
| 1142 List<int> _constCycles; |
1142 | 1143 |
1143 @override | 1144 @override |
1144 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; | 1145 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; |
1145 | 1146 |
1146 /** | 1147 /** |
1147 * Information about the resolution of references within the compilation | 1148 * Information about the resolution of references within the compilation |
1148 * unit. Each element of [UnlinkedUnit.references] has a corresponding | 1149 * unit. Each element of [UnlinkedUnit.references] has a corresponding |
1149 * element in this list (at the same index). If this list has additional | 1150 * element in this list (at the same index). If this list has additional |
1150 * elements beyond the number of elements in [UnlinkedUnit.references], those | 1151 * elements beyond the number of elements in [UnlinkedUnit.references], those |
1151 * additional elements are references that are only referred to implicitly | 1152 * additional elements are references that are only referred to implicitly |
1152 * (e.g. elements involved in inferred or propagated types). | 1153 * (e.g. elements involved in inferred or propagated types). |
1153 */ | 1154 */ |
1154 void set references(List<LinkedReferenceBuilder> _value) { | 1155 void set references(List<LinkedReferenceBuilder> _value) { |
1155 assert(!_finished); | 1156 assert(!_finished); |
1156 _references = _value; | 1157 _references = _value; |
1157 } | 1158 } |
1158 | 1159 |
1159 @override | 1160 @override |
1160 List<EntityRefBuilder> get types => _types ??= <EntityRefBuilder>[]; | 1161 List<EntityRefBuilder> get types => _types ??= <EntityRefBuilder>[]; |
1161 | 1162 |
1162 /** | 1163 /** |
1163 * List associating slot ids found inside the unlinked summary for the | 1164 * List associating slot ids found inside the unlinked summary for the |
1164 * compilation unit with propagated and inferred types. | 1165 * compilation unit with propagated and inferred types. |
1165 */ | 1166 */ |
1166 void set types(List<EntityRefBuilder> _value) { | 1167 void set types(List<EntityRefBuilder> _value) { |
1167 assert(!_finished); | 1168 assert(!_finished); |
1168 _types = _value; | 1169 _types = _value; |
1169 } | 1170 } |
1170 | 1171 |
1171 LinkedUnitBuilder({List<LinkedReferenceBuilder> references, List<EntityRefBuil
der> types}) | 1172 @override |
| 1173 List<int> get constCycles => _constCycles ??= <int>[]; |
| 1174 |
| 1175 /** |
| 1176 * List of slot ids (referring to [UnlinkedExecutable.constCycleSlot]) |
| 1177 * corresponding to const constructors that are part of cycles. |
| 1178 */ |
| 1179 void set constCycles(List<int> _value) { |
| 1180 assert(!_finished); |
| 1181 assert(_value == null || _value.every((e) => e >= 0)); |
| 1182 _constCycles = _value; |
| 1183 } |
| 1184 |
| 1185 LinkedUnitBuilder({List<LinkedReferenceBuilder> references, List<EntityRefBuil
der> types, List<int> constCycles}) |
1172 : _references = references, | 1186 : _references = references, |
1173 _types = types; | 1187 _types = types, |
| 1188 _constCycles = constCycles; |
1174 | 1189 |
1175 fb.Offset finish(fb.Builder fbBuilder) { | 1190 fb.Offset finish(fb.Builder fbBuilder) { |
1176 assert(!_finished); | 1191 assert(!_finished); |
1177 _finished = true; | 1192 _finished = true; |
1178 fb.Offset offset_references; | 1193 fb.Offset offset_references; |
1179 fb.Offset offset_types; | 1194 fb.Offset offset_types; |
| 1195 fb.Offset offset_constCycles; |
1180 if (!(_references == null || _references.isEmpty)) { | 1196 if (!(_references == null || _references.isEmpty)) { |
1181 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); | 1197 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); |
1182 } | 1198 } |
1183 if (!(_types == null || _types.isEmpty)) { | 1199 if (!(_types == null || _types.isEmpty)) { |
1184 offset_types = fbBuilder.writeList(_types.map((b) => b.finish(fbBuilder)).
toList()); | 1200 offset_types = fbBuilder.writeList(_types.map((b) => b.finish(fbBuilder)).
toList()); |
1185 } | 1201 } |
| 1202 if (!(_constCycles == null || _constCycles.isEmpty)) { |
| 1203 offset_constCycles = fbBuilder.writeListUint32(_constCycles); |
| 1204 } |
1186 fbBuilder.startTable(); | 1205 fbBuilder.startTable(); |
1187 if (offset_references != null) { | 1206 if (offset_references != null) { |
1188 fbBuilder.addOffset(0, offset_references); | 1207 fbBuilder.addOffset(0, offset_references); |
1189 } | 1208 } |
1190 if (offset_types != null) { | 1209 if (offset_types != null) { |
1191 fbBuilder.addOffset(1, offset_types); | 1210 fbBuilder.addOffset(1, offset_types); |
1192 } | 1211 } |
| 1212 if (offset_constCycles != null) { |
| 1213 fbBuilder.addOffset(2, offset_constCycles); |
| 1214 } |
1193 return fbBuilder.endTable(); | 1215 return fbBuilder.endTable(); |
1194 } | 1216 } |
1195 } | 1217 } |
1196 | 1218 |
1197 class _LinkedUnitReader extends fb.TableReader<_LinkedUnitImpl> { | 1219 class _LinkedUnitReader extends fb.TableReader<_LinkedUnitImpl> { |
1198 const _LinkedUnitReader(); | 1220 const _LinkedUnitReader(); |
1199 | 1221 |
1200 @override | 1222 @override |
1201 _LinkedUnitImpl createObject(fb.BufferPointer bp) => new _LinkedUnitImpl(bp); | 1223 _LinkedUnitImpl createObject(fb.BufferPointer bp) => new _LinkedUnitImpl(bp); |
1202 } | 1224 } |
1203 | 1225 |
1204 class _LinkedUnitImpl extends Object with _LinkedUnitMixin implements idl.Linked
Unit { | 1226 class _LinkedUnitImpl extends Object with _LinkedUnitMixin implements idl.Linked
Unit { |
1205 final fb.BufferPointer _bp; | 1227 final fb.BufferPointer _bp; |
1206 | 1228 |
1207 _LinkedUnitImpl(this._bp); | 1229 _LinkedUnitImpl(this._bp); |
1208 | 1230 |
1209 List<idl.LinkedReference> _references; | 1231 List<idl.LinkedReference> _references; |
1210 List<idl.EntityRef> _types; | 1232 List<idl.EntityRef> _types; |
| 1233 List<int> _constCycles; |
1211 | 1234 |
1212 @override | 1235 @override |
1213 List<idl.LinkedReference> get references { | 1236 List<idl.LinkedReference> get references { |
1214 _references ??= const fb.ListReader<idl.LinkedReference>(const _LinkedRefere
nceReader()).vTableGet(_bp, 0, const <idl.LinkedReference>[]); | 1237 _references ??= const fb.ListReader<idl.LinkedReference>(const _LinkedRefere
nceReader()).vTableGet(_bp, 0, const <idl.LinkedReference>[]); |
1215 return _references; | 1238 return _references; |
1216 } | 1239 } |
1217 | 1240 |
1218 @override | 1241 @override |
1219 List<idl.EntityRef> get types { | 1242 List<idl.EntityRef> get types { |
1220 _types ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTab
leGet(_bp, 1, const <idl.EntityRef>[]); | 1243 _types ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTab
leGet(_bp, 1, const <idl.EntityRef>[]); |
1221 return _types; | 1244 return _types; |
1222 } | 1245 } |
| 1246 |
| 1247 @override |
| 1248 List<int> get constCycles { |
| 1249 _constCycles ??= const fb.Uint32ListReader().vTableGet(_bp, 2, const <int>[]
); |
| 1250 return _constCycles; |
| 1251 } |
1223 } | 1252 } |
1224 | 1253 |
1225 abstract class _LinkedUnitMixin implements idl.LinkedUnit { | 1254 abstract class _LinkedUnitMixin implements idl.LinkedUnit { |
1226 @override | 1255 @override |
1227 Map<String, Object> toJson() { | 1256 Map<String, Object> toJson() { |
1228 Map<String, Object> _result = <String, Object>{}; | 1257 Map<String, Object> _result = <String, Object>{}; |
1229 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); | 1258 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
1230 if (types.isNotEmpty) _result["types"] = types.map((_value) => _value.toJson
()).toList(); | 1259 if (types.isNotEmpty) _result["types"] = types.map((_value) => _value.toJson
()).toList(); |
| 1260 if (constCycles.isNotEmpty) _result["constCycles"] = constCycles; |
1231 return _result; | 1261 return _result; |
1232 } | 1262 } |
1233 | 1263 |
1234 @override | 1264 @override |
1235 Map<String, Object> toMap() => { | 1265 Map<String, Object> toMap() => { |
1236 "references": references, | 1266 "references": references, |
1237 "types": types, | 1267 "types": types, |
| 1268 "constCycles": constCycles, |
1238 }; | 1269 }; |
1239 | 1270 |
1240 @override | 1271 @override |
1241 String toString() => convert.JSON.encode(toJson()); | 1272 String toString() => convert.JSON.encode(toJson()); |
1242 } | 1273 } |
1243 | 1274 |
1244 class PackageBundleBuilder extends Object with _PackageBundleMixin implements id
l.PackageBundle { | 1275 class PackageBundleBuilder extends Object with _PackageBundleMixin implements id
l.PackageBundle { |
1245 bool _finished = false; | 1276 bool _finished = false; |
1246 | 1277 |
1247 List<LinkedLibraryBuilder> _linkedLibraries; | 1278 List<LinkedLibraryBuilder> _linkedLibraries; |
(...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3581 int _nameEnd; | 3612 int _nameEnd; |
3582 int _nameOffset; | 3613 int _nameOffset; |
3583 List<UnlinkedParamBuilder> _parameters; | 3614 List<UnlinkedParamBuilder> _parameters; |
3584 int _periodOffset; | 3615 int _periodOffset; |
3585 EntityRefBuilder _redirectedConstructor; | 3616 EntityRefBuilder _redirectedConstructor; |
3586 String _redirectedConstructorName; | 3617 String _redirectedConstructorName; |
3587 EntityRefBuilder _returnType; | 3618 EntityRefBuilder _returnType; |
3588 List<UnlinkedTypeParamBuilder> _typeParameters; | 3619 List<UnlinkedTypeParamBuilder> _typeParameters; |
3589 int _visibleLength; | 3620 int _visibleLength; |
3590 int _visibleOffset; | 3621 int _visibleOffset; |
| 3622 int _constCycleSlot; |
3591 | 3623 |
3592 @override | 3624 @override |
3593 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 3625 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
3594 | 3626 |
3595 /** | 3627 /** |
3596 * Annotations for this executable. | 3628 * Annotations for this executable. |
3597 */ | 3629 */ |
3598 void set annotations(List<UnlinkedConstBuilder> _value) { | 3630 void set annotations(List<UnlinkedConstBuilder> _value) { |
3599 assert(!_finished); | 3631 assert(!_finished); |
3600 _annotations = _value; | 3632 _annotations = _value; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3891 | 3923 |
3892 /** | 3924 /** |
3893 * If a local function, the beginning of the visible range; zero otherwise. | 3925 * If a local function, the beginning of the visible range; zero otherwise. |
3894 */ | 3926 */ |
3895 void set visibleOffset(int _value) { | 3927 void set visibleOffset(int _value) { |
3896 assert(!_finished); | 3928 assert(!_finished); |
3897 assert(_value == null || _value >= 0); | 3929 assert(_value == null || _value >= 0); |
3898 _visibleOffset = _value; | 3930 _visibleOffset = _value; |
3899 } | 3931 } |
3900 | 3932 |
3901 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, List<Unlink
edConstructorInitializerBuilder> constantInitializers, UnlinkedDocumentationComm
entBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, bo
ol isConst, bool isExternal, bool isFactory, bool isRedirectedConstructor, bool
isStatic, idl.UnlinkedExecutableKind kind, List<UnlinkedExecutableBuilder> local
Functions, List<UnlinkedLabelBuilder> localLabels, List<UnlinkedVariableBuilder>
localVariables, String name, int nameEnd, int nameOffset, List<UnlinkedParamBui
lder> parameters, int periodOffset, EntityRefBuilder redirectedConstructor, Stri
ng redirectedConstructorName, EntityRefBuilder returnType, List<UnlinkedTypePara
mBuilder> typeParameters, int visibleLength, int visibleOffset}) | 3933 @override |
| 3934 int get constCycleSlot => _constCycleSlot ??= 0; |
| 3935 |
| 3936 /** |
| 3937 * If [kind] is [UnlinkedExecutableKind.constructor] and [isConst] is `true`, |
| 3938 * a nonzero slot id which is unique within this compilation unit. If this id |
| 3939 * is found in [LinkedUnit.constCycles], then this constructor is part of a |
| 3940 * cycle. |
| 3941 * |
| 3942 * Otherwise, zero. |
| 3943 */ |
| 3944 void set constCycleSlot(int _value) { |
| 3945 assert(!_finished); |
| 3946 assert(_value == null || _value >= 0); |
| 3947 _constCycleSlot = _value; |
| 3948 } |
| 3949 |
| 3950 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, List<Unlink
edConstructorInitializerBuilder> constantInitializers, UnlinkedDocumentationComm
entBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, bo
ol isConst, bool isExternal, bool isFactory, bool isRedirectedConstructor, bool
isStatic, idl.UnlinkedExecutableKind kind, List<UnlinkedExecutableBuilder> local
Functions, List<UnlinkedLabelBuilder> localLabels, List<UnlinkedVariableBuilder>
localVariables, String name, int nameEnd, int nameOffset, List<UnlinkedParamBui
lder> parameters, int periodOffset, EntityRefBuilder redirectedConstructor, Stri
ng redirectedConstructorName, EntityRefBuilder returnType, List<UnlinkedTypePara
mBuilder> typeParameters, int visibleLength, int visibleOffset, int constCycleSl
ot}) |
3902 : _annotations = annotations, | 3951 : _annotations = annotations, |
3903 _constantInitializers = constantInitializers, | 3952 _constantInitializers = constantInitializers, |
3904 _documentationComment = documentationComment, | 3953 _documentationComment = documentationComment, |
3905 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 3954 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
3906 _isAbstract = isAbstract, | 3955 _isAbstract = isAbstract, |
3907 _isConst = isConst, | 3956 _isConst = isConst, |
3908 _isExternal = isExternal, | 3957 _isExternal = isExternal, |
3909 _isFactory = isFactory, | 3958 _isFactory = isFactory, |
3910 _isRedirectedConstructor = isRedirectedConstructor, | 3959 _isRedirectedConstructor = isRedirectedConstructor, |
3911 _isStatic = isStatic, | 3960 _isStatic = isStatic, |
3912 _kind = kind, | 3961 _kind = kind, |
3913 _localFunctions = localFunctions, | 3962 _localFunctions = localFunctions, |
3914 _localLabels = localLabels, | 3963 _localLabels = localLabels, |
3915 _localVariables = localVariables, | 3964 _localVariables = localVariables, |
3916 _name = name, | 3965 _name = name, |
3917 _nameEnd = nameEnd, | 3966 _nameEnd = nameEnd, |
3918 _nameOffset = nameOffset, | 3967 _nameOffset = nameOffset, |
3919 _parameters = parameters, | 3968 _parameters = parameters, |
3920 _periodOffset = periodOffset, | 3969 _periodOffset = periodOffset, |
3921 _redirectedConstructor = redirectedConstructor, | 3970 _redirectedConstructor = redirectedConstructor, |
3922 _redirectedConstructorName = redirectedConstructorName, | 3971 _redirectedConstructorName = redirectedConstructorName, |
3923 _returnType = returnType, | 3972 _returnType = returnType, |
3924 _typeParameters = typeParameters, | 3973 _typeParameters = typeParameters, |
3925 _visibleLength = visibleLength, | 3974 _visibleLength = visibleLength, |
3926 _visibleOffset = visibleOffset; | 3975 _visibleOffset = visibleOffset, |
| 3976 _constCycleSlot = constCycleSlot; |
3927 | 3977 |
3928 fb.Offset finish(fb.Builder fbBuilder) { | 3978 fb.Offset finish(fb.Builder fbBuilder) { |
3929 assert(!_finished); | 3979 assert(!_finished); |
3930 _finished = true; | 3980 _finished = true; |
3931 fb.Offset offset_annotations; | 3981 fb.Offset offset_annotations; |
3932 fb.Offset offset_constantInitializers; | 3982 fb.Offset offset_constantInitializers; |
3933 fb.Offset offset_documentationComment; | 3983 fb.Offset offset_documentationComment; |
3934 fb.Offset offset_localFunctions; | 3984 fb.Offset offset_localFunctions; |
3935 fb.Offset offset_localLabels; | 3985 fb.Offset offset_localLabels; |
3936 fb.Offset offset_localVariables; | 3986 fb.Offset offset_localVariables; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4045 } | 4095 } |
4046 if (offset_typeParameters != null) { | 4096 if (offset_typeParameters != null) { |
4047 fbBuilder.addOffset(16, offset_typeParameters); | 4097 fbBuilder.addOffset(16, offset_typeParameters); |
4048 } | 4098 } |
4049 if (_visibleLength != null && _visibleLength != 0) { | 4099 if (_visibleLength != null && _visibleLength != 0) { |
4050 fbBuilder.addUint32(20, _visibleLength); | 4100 fbBuilder.addUint32(20, _visibleLength); |
4051 } | 4101 } |
4052 if (_visibleOffset != null && _visibleOffset != 0) { | 4102 if (_visibleOffset != null && _visibleOffset != 0) { |
4053 fbBuilder.addUint32(21, _visibleOffset); | 4103 fbBuilder.addUint32(21, _visibleOffset); |
4054 } | 4104 } |
| 4105 if (_constCycleSlot != null && _constCycleSlot != 0) { |
| 4106 fbBuilder.addUint32(25, _constCycleSlot); |
| 4107 } |
4055 return fbBuilder.endTable(); | 4108 return fbBuilder.endTable(); |
4056 } | 4109 } |
4057 } | 4110 } |
4058 | 4111 |
4059 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ | 4112 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ |
4060 const _UnlinkedExecutableReader(); | 4113 const _UnlinkedExecutableReader(); |
4061 | 4114 |
4062 @override | 4115 @override |
4063 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); | 4116 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); |
4064 } | 4117 } |
(...skipping 21 matching lines...) Expand all Loading... |
4086 int _nameEnd; | 4139 int _nameEnd; |
4087 int _nameOffset; | 4140 int _nameOffset; |
4088 List<idl.UnlinkedParam> _parameters; | 4141 List<idl.UnlinkedParam> _parameters; |
4089 int _periodOffset; | 4142 int _periodOffset; |
4090 idl.EntityRef _redirectedConstructor; | 4143 idl.EntityRef _redirectedConstructor; |
4091 String _redirectedConstructorName; | 4144 String _redirectedConstructorName; |
4092 idl.EntityRef _returnType; | 4145 idl.EntityRef _returnType; |
4093 List<idl.UnlinkedTypeParam> _typeParameters; | 4146 List<idl.UnlinkedTypeParam> _typeParameters; |
4094 int _visibleLength; | 4147 int _visibleLength; |
4095 int _visibleOffset; | 4148 int _visibleOffset; |
| 4149 int _constCycleSlot; |
4096 | 4150 |
4097 @override | 4151 @override |
4098 List<idl.UnlinkedConst> get annotations { | 4152 List<idl.UnlinkedConst> get annotations { |
4099 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 6, const <idl.UnlinkedConst>[]); | 4153 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 6, const <idl.UnlinkedConst>[]); |
4100 return _annotations; | 4154 return _annotations; |
4101 } | 4155 } |
4102 | 4156 |
4103 @override | 4157 @override |
4104 List<idl.UnlinkedConstructorInitializer> get constantInitializers { | 4158 List<idl.UnlinkedConstructorInitializer> get constantInitializers { |
4105 _constantInitializers ??= const fb.ListReader<idl.UnlinkedConstructorInitial
izer>(const _UnlinkedConstructorInitializerReader()).vTableGet(_bp, 14, const <i
dl.UnlinkedConstructorInitializer>[]); | 4159 _constantInitializers ??= const fb.ListReader<idl.UnlinkedConstructorInitial
izer>(const _UnlinkedConstructorInitializerReader()).vTableGet(_bp, 14, const <i
dl.UnlinkedConstructorInitializer>[]); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4236 int get visibleLength { | 4290 int get visibleLength { |
4237 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bp, 20, 0); | 4291 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bp, 20, 0); |
4238 return _visibleLength; | 4292 return _visibleLength; |
4239 } | 4293 } |
4240 | 4294 |
4241 @override | 4295 @override |
4242 int get visibleOffset { | 4296 int get visibleOffset { |
4243 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 21, 0); | 4297 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 21, 0); |
4244 return _visibleOffset; | 4298 return _visibleOffset; |
4245 } | 4299 } |
| 4300 |
| 4301 @override |
| 4302 int get constCycleSlot { |
| 4303 _constCycleSlot ??= const fb.Uint32Reader().vTableGet(_bp, 25, 0); |
| 4304 return _constCycleSlot; |
| 4305 } |
4246 } | 4306 } |
4247 | 4307 |
4248 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { | 4308 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { |
4249 @override | 4309 @override |
4250 Map<String, Object> toJson() { | 4310 Map<String, Object> toJson() { |
4251 Map<String, Object> _result = <String, Object>{}; | 4311 Map<String, Object> _result = <String, Object>{}; |
4252 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); | 4312 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
4253 if (constantInitializers.isNotEmpty) _result["constantInitializers"] = const
antInitializers.map((_value) => _value.toJson()).toList(); | 4313 if (constantInitializers.isNotEmpty) _result["constantInitializers"] = const
antInitializers.map((_value) => _value.toJson()).toList(); |
4254 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); | 4314 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
4255 if (inferredReturnTypeSlot != 0) _result["inferredReturnTypeSlot"] = inferre
dReturnTypeSlot; | 4315 if (inferredReturnTypeSlot != 0) _result["inferredReturnTypeSlot"] = inferre
dReturnTypeSlot; |
(...skipping 11 matching lines...) Expand all Loading... |
4267 if (nameEnd != 0) _result["nameEnd"] = nameEnd; | 4327 if (nameEnd != 0) _result["nameEnd"] = nameEnd; |
4268 if (nameOffset != 0) _result["nameOffset"] = nameOffset; | 4328 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
4269 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); | 4329 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
4270 if (periodOffset != 0) _result["periodOffset"] = periodOffset; | 4330 if (periodOffset != 0) _result["periodOffset"] = periodOffset; |
4271 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); | 4331 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); |
4272 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; | 4332 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; |
4273 if (returnType != null) _result["returnType"] = returnType.toJson(); | 4333 if (returnType != null) _result["returnType"] = returnType.toJson(); |
4274 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); | 4334 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
4275 if (visibleLength != 0) _result["visibleLength"] = visibleLength; | 4335 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
4276 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; | 4336 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 4337 if (constCycleSlot != 0) _result["constCycleSlot"] = constCycleSlot; |
4277 return _result; | 4338 return _result; |
4278 } | 4339 } |
4279 | 4340 |
4280 @override | 4341 @override |
4281 Map<String, Object> toMap() => { | 4342 Map<String, Object> toMap() => { |
4282 "annotations": annotations, | 4343 "annotations": annotations, |
4283 "constantInitializers": constantInitializers, | 4344 "constantInitializers": constantInitializers, |
4284 "documentationComment": documentationComment, | 4345 "documentationComment": documentationComment, |
4285 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 4346 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
4286 "isAbstract": isAbstract, | 4347 "isAbstract": isAbstract, |
(...skipping 10 matching lines...) Expand all Loading... |
4297 "nameEnd": nameEnd, | 4358 "nameEnd": nameEnd, |
4298 "nameOffset": nameOffset, | 4359 "nameOffset": nameOffset, |
4299 "parameters": parameters, | 4360 "parameters": parameters, |
4300 "periodOffset": periodOffset, | 4361 "periodOffset": periodOffset, |
4301 "redirectedConstructor": redirectedConstructor, | 4362 "redirectedConstructor": redirectedConstructor, |
4302 "redirectedConstructorName": redirectedConstructorName, | 4363 "redirectedConstructorName": redirectedConstructorName, |
4303 "returnType": returnType, | 4364 "returnType": returnType, |
4304 "typeParameters": typeParameters, | 4365 "typeParameters": typeParameters, |
4305 "visibleLength": visibleLength, | 4366 "visibleLength": visibleLength, |
4306 "visibleOffset": visibleOffset, | 4367 "visibleOffset": visibleOffset, |
| 4368 "constCycleSlot": constCycleSlot, |
4307 }; | 4369 }; |
4308 | 4370 |
4309 @override | 4371 @override |
4310 String toString() => convert.JSON.encode(toJson()); | 4372 String toString() => convert.JSON.encode(toJson()); |
4311 } | 4373 } |
4312 | 4374 |
4313 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 4375 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
4314 bool _finished = false; | 4376 bool _finished = false; |
4315 | 4377 |
4316 List<UnlinkedConstBuilder> _annotations; | 4378 List<UnlinkedConstBuilder> _annotations; |
(...skipping 3007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7324 "propagatedTypeSlot": propagatedTypeSlot, | 7386 "propagatedTypeSlot": propagatedTypeSlot, |
7325 "type": type, | 7387 "type": type, |
7326 "visibleLength": visibleLength, | 7388 "visibleLength": visibleLength, |
7327 "visibleOffset": visibleOffset, | 7389 "visibleOffset": visibleOffset, |
7328 }; | 7390 }; |
7329 | 7391 |
7330 @override | 7392 @override |
7331 String toString() => convert.JSON.encode(toJson()); | 7393 String toString() => convert.JSON.encode(toJson()); |
7332 } | 7394 } |
7333 | 7395 |
OLD | NEW |