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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 @override | 57 @override |
58 int get size => 1; | 58 int get size => 1; |
59 | 59 |
60 @override | 60 @override |
61 idl.ReferenceKind read(fb.BufferContext bc, int offset) { | 61 idl.ReferenceKind read(fb.BufferContext bc, int offset) { |
62 int index = const fb.Uint8Reader().read(bc, offset); | 62 int index = const fb.Uint8Reader().read(bc, offset); |
63 return index < idl.ReferenceKind.values.length ? idl.ReferenceKind.values[in
dex] : idl.ReferenceKind.classOrEnum; | 63 return index < idl.ReferenceKind.values.length ? idl.ReferenceKind.values[in
dex] : idl.ReferenceKind.classOrEnum; |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 class _UnlinkedConstOperationReader extends fb.Reader<idl.UnlinkedConstOperation
> { | |
68 const _UnlinkedConstOperationReader() : super(); | |
69 | |
70 @override | |
71 int get size => 1; | |
72 | |
73 @override | |
74 idl.UnlinkedConstOperation read(fb.BufferContext bc, int offset) { | |
75 int index = const fb.Uint8Reader().read(bc, offset); | |
76 return index < idl.UnlinkedConstOperation.values.length ? idl.UnlinkedConstO
peration.values[index] : idl.UnlinkedConstOperation.pushInt; | |
77 } | |
78 } | |
79 | |
80 class _UnlinkedConstructorInitializerKindReader extends fb.Reader<idl.UnlinkedCo
nstructorInitializerKind> { | 67 class _UnlinkedConstructorInitializerKindReader extends fb.Reader<idl.UnlinkedCo
nstructorInitializerKind> { |
81 const _UnlinkedConstructorInitializerKindReader() : super(); | 68 const _UnlinkedConstructorInitializerKindReader() : super(); |
82 | 69 |
83 @override | 70 @override |
84 int get size => 1; | 71 int get size => 1; |
85 | 72 |
86 @override | 73 @override |
87 idl.UnlinkedConstructorInitializerKind read(fb.BufferContext bc, int offset) { | 74 idl.UnlinkedConstructorInitializerKind read(fb.BufferContext bc, int offset) { |
88 int index = const fb.Uint8Reader().read(bc, offset); | 75 int index = const fb.Uint8Reader().read(bc, offset); |
89 return index < idl.UnlinkedConstructorInitializerKind.values.length ? idl.Un
linkedConstructorInitializerKind.values[index] : idl.UnlinkedConstructorInitiali
zerKind.field; | 76 return index < idl.UnlinkedConstructorInitializerKind.values.length ? idl.Un
linkedConstructorInitializerKind.values[index] : idl.UnlinkedConstructorInitiali
zerKind.field; |
(...skipping 19 matching lines...) Expand all Loading... |
109 @override | 96 @override |
110 int get size => 1; | 97 int get size => 1; |
111 | 98 |
112 @override | 99 @override |
113 idl.UnlinkedExprAssignOperator read(fb.BufferContext bc, int offset) { | 100 idl.UnlinkedExprAssignOperator read(fb.BufferContext bc, int offset) { |
114 int index = const fb.Uint8Reader().read(bc, offset); | 101 int index = const fb.Uint8Reader().read(bc, offset); |
115 return index < idl.UnlinkedExprAssignOperator.values.length ? idl.UnlinkedEx
prAssignOperator.values[index] : idl.UnlinkedExprAssignOperator.assign; | 102 return index < idl.UnlinkedExprAssignOperator.values.length ? idl.UnlinkedEx
prAssignOperator.values[index] : idl.UnlinkedExprAssignOperator.assign; |
116 } | 103 } |
117 } | 104 } |
118 | 105 |
| 106 class _UnlinkedExprOperationReader extends fb.Reader<idl.UnlinkedExprOperation>
{ |
| 107 const _UnlinkedExprOperationReader() : super(); |
| 108 |
| 109 @override |
| 110 int get size => 1; |
| 111 |
| 112 @override |
| 113 idl.UnlinkedExprOperation read(fb.BufferContext bc, int offset) { |
| 114 int index = const fb.Uint8Reader().read(bc, offset); |
| 115 return index < idl.UnlinkedExprOperation.values.length ? idl.UnlinkedExprOpe
ration.values[index] : idl.UnlinkedExprOperation.pushInt; |
| 116 } |
| 117 } |
| 118 |
119 class _UnlinkedParamKindReader extends fb.Reader<idl.UnlinkedParamKind> { | 119 class _UnlinkedParamKindReader extends fb.Reader<idl.UnlinkedParamKind> { |
120 const _UnlinkedParamKindReader() : super(); | 120 const _UnlinkedParamKindReader() : super(); |
121 | 121 |
122 @override | 122 @override |
123 int get size => 1; | 123 int get size => 1; |
124 | 124 |
125 @override | 125 @override |
126 idl.UnlinkedParamKind read(fb.BufferContext bc, int offset) { | 126 idl.UnlinkedParamKind read(fb.BufferContext bc, int offset) { |
127 int index = const fb.Uint8Reader().read(bc, offset); | 127 int index = const fb.Uint8Reader().read(bc, offset); |
128 return index < idl.UnlinkedParamKind.values.length ? idl.UnlinkedParamKind.v
alues[index] : idl.UnlinkedParamKind.required; | 128 return index < idl.UnlinkedParamKind.values.length ? idl.UnlinkedParamKind.v
alues[index] : idl.UnlinkedParamKind.required; |
(...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3418 "usedNameKinds": usedNameKinds, | 3418 "usedNameKinds": usedNameKinds, |
3419 "usedNameOffsets": usedNameOffsets, | 3419 "usedNameOffsets": usedNameOffsets, |
3420 "usedNames": usedNames, | 3420 "usedNames": usedNames, |
3421 }; | 3421 }; |
3422 | 3422 |
3423 @override | 3423 @override |
3424 String toString() => convert.JSON.encode(toJson()); | 3424 String toString() => convert.JSON.encode(toJson()); |
3425 } | 3425 } |
3426 | 3426 |
3427 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 3427 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
3428 List<UnlinkedConstBuilder> _annotations; | 3428 List<UnlinkedExprBuilder> _annotations; |
3429 CodeRangeBuilder _codeRange; | 3429 CodeRangeBuilder _codeRange; |
3430 UnlinkedDocumentationCommentBuilder _documentationComment; | 3430 UnlinkedDocumentationCommentBuilder _documentationComment; |
3431 List<UnlinkedExecutableBuilder> _executables; | 3431 List<UnlinkedExecutableBuilder> _executables; |
3432 List<UnlinkedVariableBuilder> _fields; | 3432 List<UnlinkedVariableBuilder> _fields; |
3433 bool _hasNoSupertype; | 3433 bool _hasNoSupertype; |
3434 List<EntityRefBuilder> _interfaces; | 3434 List<EntityRefBuilder> _interfaces; |
3435 bool _isAbstract; | 3435 bool _isAbstract; |
3436 bool _isMixinApplication; | 3436 bool _isMixinApplication; |
3437 List<EntityRefBuilder> _mixins; | 3437 List<EntityRefBuilder> _mixins; |
3438 String _name; | 3438 String _name; |
3439 int _nameOffset; | 3439 int _nameOffset; |
3440 EntityRefBuilder _supertype; | 3440 EntityRefBuilder _supertype; |
3441 List<UnlinkedTypeParamBuilder> _typeParameters; | 3441 List<UnlinkedTypeParamBuilder> _typeParameters; |
3442 | 3442 |
3443 @override | 3443 @override |
3444 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 3444 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
3445 | 3445 |
3446 /** | 3446 /** |
3447 * Annotations for this class. | 3447 * Annotations for this class. |
3448 */ | 3448 */ |
3449 void set annotations(List<UnlinkedConstBuilder> value) { | 3449 void set annotations(List<UnlinkedExprBuilder> value) { |
3450 this._annotations = value; | 3450 this._annotations = value; |
3451 } | 3451 } |
3452 | 3452 |
3453 @override | 3453 @override |
3454 CodeRangeBuilder get codeRange => _codeRange; | 3454 CodeRangeBuilder get codeRange => _codeRange; |
3455 | 3455 |
3456 /** | 3456 /** |
3457 * Code range of the class. | 3457 * Code range of the class. |
3458 */ | 3458 */ |
3459 void set codeRange(CodeRangeBuilder value) { | 3459 void set codeRange(CodeRangeBuilder value) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3578 @override | 3578 @override |
3579 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 3579 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
3580 | 3580 |
3581 /** | 3581 /** |
3582 * Type parameters of the class, if any. | 3582 * Type parameters of the class, if any. |
3583 */ | 3583 */ |
3584 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { | 3584 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
3585 this._typeParameters = value; | 3585 this._typeParameters = value; |
3586 } | 3586 } |
3587 | 3587 |
3588 UnlinkedClassBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, List<Unlin
kedExecutableBuilder> executables, List<UnlinkedVariableBuilder> fields, bool ha
sNoSupertype, List<EntityRefBuilder> interfaces, bool isAbstract, bool isMixinAp
plication, List<EntityRefBuilder> mixins, String name, int nameOffset, EntityRef
Builder supertype, List<UnlinkedTypeParamBuilder> typeParameters}) | 3588 UnlinkedClassBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, List<Unlink
edExecutableBuilder> executables, List<UnlinkedVariableBuilder> fields, bool has
NoSupertype, List<EntityRefBuilder> interfaces, bool isAbstract, bool isMixinApp
lication, List<EntityRefBuilder> mixins, String name, int nameOffset, EntityRefB
uilder supertype, List<UnlinkedTypeParamBuilder> typeParameters}) |
3589 : _annotations = annotations, | 3589 : _annotations = annotations, |
3590 _codeRange = codeRange, | 3590 _codeRange = codeRange, |
3591 _documentationComment = documentationComment, | 3591 _documentationComment = documentationComment, |
3592 _executables = executables, | 3592 _executables = executables, |
3593 _fields = fields, | 3593 _fields = fields, |
3594 _hasNoSupertype = hasNoSupertype, | 3594 _hasNoSupertype = hasNoSupertype, |
3595 _interfaces = interfaces, | 3595 _interfaces = interfaces, |
3596 _isAbstract = isAbstract, | 3596 _isAbstract = isAbstract, |
3597 _isMixinApplication = isMixinApplication, | 3597 _isMixinApplication = isMixinApplication, |
3598 _mixins = mixins, | 3598 _mixins = mixins, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3771 @override | 3771 @override |
3772 _UnlinkedClassImpl createObject(fb.BufferContext bc, int offset) => new _Unlin
kedClassImpl(bc, offset); | 3772 _UnlinkedClassImpl createObject(fb.BufferContext bc, int offset) => new _Unlin
kedClassImpl(bc, offset); |
3773 } | 3773 } |
3774 | 3774 |
3775 class _UnlinkedClassImpl extends Object with _UnlinkedClassMixin implements idl.
UnlinkedClass { | 3775 class _UnlinkedClassImpl extends Object with _UnlinkedClassMixin implements idl.
UnlinkedClass { |
3776 final fb.BufferContext _bc; | 3776 final fb.BufferContext _bc; |
3777 final int _bcOffset; | 3777 final int _bcOffset; |
3778 | 3778 |
3779 _UnlinkedClassImpl(this._bc, this._bcOffset); | 3779 _UnlinkedClassImpl(this._bc, this._bcOffset); |
3780 | 3780 |
3781 List<idl.UnlinkedConst> _annotations; | 3781 List<idl.UnlinkedExpr> _annotations; |
3782 idl.CodeRange _codeRange; | 3782 idl.CodeRange _codeRange; |
3783 idl.UnlinkedDocumentationComment _documentationComment; | 3783 idl.UnlinkedDocumentationComment _documentationComment; |
3784 List<idl.UnlinkedExecutable> _executables; | 3784 List<idl.UnlinkedExecutable> _executables; |
3785 List<idl.UnlinkedVariable> _fields; | 3785 List<idl.UnlinkedVariable> _fields; |
3786 bool _hasNoSupertype; | 3786 bool _hasNoSupertype; |
3787 List<idl.EntityRef> _interfaces; | 3787 List<idl.EntityRef> _interfaces; |
3788 bool _isAbstract; | 3788 bool _isAbstract; |
3789 bool _isMixinApplication; | 3789 bool _isMixinApplication; |
3790 List<idl.EntityRef> _mixins; | 3790 List<idl.EntityRef> _mixins; |
3791 String _name; | 3791 String _name; |
3792 int _nameOffset; | 3792 int _nameOffset; |
3793 idl.EntityRef _supertype; | 3793 idl.EntityRef _supertype; |
3794 List<idl.UnlinkedTypeParam> _typeParameters; | 3794 List<idl.UnlinkedTypeParam> _typeParameters; |
3795 | 3795 |
3796 @override | 3796 @override |
3797 List<idl.UnlinkedConst> get annotations { | 3797 List<idl.UnlinkedExpr> get annotations { |
3798 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedConst>[]); | 3798 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedExpr>[]); |
3799 return _annotations; | 3799 return _annotations; |
3800 } | 3800 } |
3801 | 3801 |
3802 @override | 3802 @override |
3803 idl.CodeRange get codeRange { | 3803 idl.CodeRange get codeRange { |
3804 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 13, null); | 3804 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 13, null); |
3805 return _codeRange; | 3805 return _codeRange; |
3806 } | 3806 } |
3807 | 3807 |
3808 @override | 3808 @override |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4233 Map<String, Object> toMap() => { | 4233 Map<String, Object> toMap() => { |
4234 "name": name, | 4234 "name": name, |
4235 "uri": uri, | 4235 "uri": uri, |
4236 "value": value, | 4236 "value": value, |
4237 }; | 4237 }; |
4238 | 4238 |
4239 @override | 4239 @override |
4240 String toString() => convert.JSON.encode(toJson()); | 4240 String toString() => convert.JSON.encode(toJson()); |
4241 } | 4241 } |
4242 | 4242 |
4243 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { | |
4244 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; | |
4245 List<double> _doubles; | |
4246 List<int> _ints; | |
4247 bool _isValidConst; | |
4248 List<idl.UnlinkedConstOperation> _operations; | |
4249 List<EntityRefBuilder> _references; | |
4250 List<String> _strings; | |
4251 | |
4252 @override | |
4253 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; | |
4254 | |
4255 /** | |
4256 * Sequence of operators used by assignment operations. | |
4257 */ | |
4258 void set assignmentOperators(List<idl.UnlinkedExprAssignOperator> value) { | |
4259 this._assignmentOperators = value; | |
4260 } | |
4261 | |
4262 @override | |
4263 List<double> get doubles => _doubles ??= <double>[]; | |
4264 | |
4265 /** | |
4266 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. | |
4267 */ | |
4268 void set doubles(List<double> value) { | |
4269 this._doubles = value; | |
4270 } | |
4271 | |
4272 @override | |
4273 List<int> get ints => _ints ??= <int>[]; | |
4274 | |
4275 /** | |
4276 * Sequence of unsigned 32-bit integers consumed by the operations | |
4277 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, | |
4278 * `makeList`, and `makeMap`. | |
4279 */ | |
4280 void set ints(List<int> value) { | |
4281 assert(value == null || value.every((e) => e >= 0)); | |
4282 this._ints = value; | |
4283 } | |
4284 | |
4285 @override | |
4286 bool get isValidConst => _isValidConst ??= false; | |
4287 | |
4288 /** | |
4289 * Indicates whether the expression is a valid potentially constant | |
4290 * expression. | |
4291 */ | |
4292 void set isValidConst(bool value) { | |
4293 this._isValidConst = value; | |
4294 } | |
4295 | |
4296 @override | |
4297 List<idl.UnlinkedConstOperation> get operations => _operations ??= <idl.Unlink
edConstOperation>[]; | |
4298 | |
4299 /** | |
4300 * Sequence of operations to execute (starting with an empty stack) to form | |
4301 * the constant value. | |
4302 */ | |
4303 void set operations(List<idl.UnlinkedConstOperation> value) { | |
4304 this._operations = value; | |
4305 } | |
4306 | |
4307 @override | |
4308 List<EntityRefBuilder> get references => _references ??= <EntityRefBuilder>[]; | |
4309 | |
4310 /** | |
4311 * Sequence of language constructs consumed by the operations | |
4312 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note | |
4313 * that in the case of `pushReference` (and sometimes `invokeConstructor` the | |
4314 * actual entity being referred to may be something other than a type. | |
4315 */ | |
4316 void set references(List<EntityRefBuilder> value) { | |
4317 this._references = value; | |
4318 } | |
4319 | |
4320 @override | |
4321 List<String> get strings => _strings ??= <String>[]; | |
4322 | |
4323 /** | |
4324 * Sequence of strings consumed by the operations `pushString` and | |
4325 * `invokeConstructor`. | |
4326 */ | |
4327 void set strings(List<String> value) { | |
4328 this._strings = value; | |
4329 } | |
4330 | |
4331 UnlinkedConstBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators
, List<double> doubles, List<int> ints, bool isValidConst, List<idl.UnlinkedCons
tOperation> operations, List<EntityRefBuilder> references, List<String> strings}
) | |
4332 : _assignmentOperators = assignmentOperators, | |
4333 _doubles = doubles, | |
4334 _ints = ints, | |
4335 _isValidConst = isValidConst, | |
4336 _operations = operations, | |
4337 _references = references, | |
4338 _strings = strings; | |
4339 | |
4340 /** | |
4341 * Flush [informative] data recursively. | |
4342 */ | |
4343 void flushInformative() { | |
4344 _references?.forEach((b) => b.flushInformative()); | |
4345 } | |
4346 | |
4347 /** | |
4348 * Accumulate non-[informative] data into [signature]. | |
4349 */ | |
4350 void collectApiSignature(api_sig.ApiSignature signature) { | |
4351 if (this._operations == null) { | |
4352 signature.addInt(0); | |
4353 } else { | |
4354 signature.addInt(this._operations.length); | |
4355 for (var x in this._operations) { | |
4356 signature.addInt(x.index); | |
4357 } | |
4358 } | |
4359 if (this._ints == null) { | |
4360 signature.addInt(0); | |
4361 } else { | |
4362 signature.addInt(this._ints.length); | |
4363 for (var x in this._ints) { | |
4364 signature.addInt(x); | |
4365 } | |
4366 } | |
4367 if (this._references == null) { | |
4368 signature.addInt(0); | |
4369 } else { | |
4370 signature.addInt(this._references.length); | |
4371 for (var x in this._references) { | |
4372 x?.collectApiSignature(signature); | |
4373 } | |
4374 } | |
4375 if (this._strings == null) { | |
4376 signature.addInt(0); | |
4377 } else { | |
4378 signature.addInt(this._strings.length); | |
4379 for (var x in this._strings) { | |
4380 signature.addString(x); | |
4381 } | |
4382 } | |
4383 if (this._doubles == null) { | |
4384 signature.addInt(0); | |
4385 } else { | |
4386 signature.addInt(this._doubles.length); | |
4387 for (var x in this._doubles) { | |
4388 signature.addDouble(x); | |
4389 } | |
4390 } | |
4391 signature.addBool(this._isValidConst == true); | |
4392 if (this._assignmentOperators == null) { | |
4393 signature.addInt(0); | |
4394 } else { | |
4395 signature.addInt(this._assignmentOperators.length); | |
4396 for (var x in this._assignmentOperators) { | |
4397 signature.addInt(x.index); | |
4398 } | |
4399 } | |
4400 } | |
4401 | |
4402 fb.Offset finish(fb.Builder fbBuilder) { | |
4403 fb.Offset offset_assignmentOperators; | |
4404 fb.Offset offset_doubles; | |
4405 fb.Offset offset_ints; | |
4406 fb.Offset offset_operations; | |
4407 fb.Offset offset_references; | |
4408 fb.Offset offset_strings; | |
4409 if (!(_assignmentOperators == null || _assignmentOperators.isEmpty)) { | |
4410 offset_assignmentOperators = fbBuilder.writeListUint8(_assignmentOperators
.map((b) => b.index).toList()); | |
4411 } | |
4412 if (!(_doubles == null || _doubles.isEmpty)) { | |
4413 offset_doubles = fbBuilder.writeListFloat64(_doubles); | |
4414 } | |
4415 if (!(_ints == null || _ints.isEmpty)) { | |
4416 offset_ints = fbBuilder.writeListUint32(_ints); | |
4417 } | |
4418 if (!(_operations == null || _operations.isEmpty)) { | |
4419 offset_operations = fbBuilder.writeListUint8(_operations.map((b) => b.inde
x).toList()); | |
4420 } | |
4421 if (!(_references == null || _references.isEmpty)) { | |
4422 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); | |
4423 } | |
4424 if (!(_strings == null || _strings.isEmpty)) { | |
4425 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); | |
4426 } | |
4427 fbBuilder.startTable(); | |
4428 if (offset_assignmentOperators != null) { | |
4429 fbBuilder.addOffset(6, offset_assignmentOperators); | |
4430 } | |
4431 if (offset_doubles != null) { | |
4432 fbBuilder.addOffset(4, offset_doubles); | |
4433 } | |
4434 if (offset_ints != null) { | |
4435 fbBuilder.addOffset(1, offset_ints); | |
4436 } | |
4437 if (_isValidConst == true) { | |
4438 fbBuilder.addBool(5, true); | |
4439 } | |
4440 if (offset_operations != null) { | |
4441 fbBuilder.addOffset(0, offset_operations); | |
4442 } | |
4443 if (offset_references != null) { | |
4444 fbBuilder.addOffset(2, offset_references); | |
4445 } | |
4446 if (offset_strings != null) { | |
4447 fbBuilder.addOffset(3, offset_strings); | |
4448 } | |
4449 return fbBuilder.endTable(); | |
4450 } | |
4451 } | |
4452 | |
4453 class _UnlinkedConstReader extends fb.TableReader<_UnlinkedConstImpl> { | |
4454 const _UnlinkedConstReader(); | |
4455 | |
4456 @override | |
4457 _UnlinkedConstImpl createObject(fb.BufferContext bc, int offset) => new _Unlin
kedConstImpl(bc, offset); | |
4458 } | |
4459 | |
4460 class _UnlinkedConstImpl extends Object with _UnlinkedConstMixin implements idl.
UnlinkedConst { | |
4461 final fb.BufferContext _bc; | |
4462 final int _bcOffset; | |
4463 | |
4464 _UnlinkedConstImpl(this._bc, this._bcOffset); | |
4465 | |
4466 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; | |
4467 List<double> _doubles; | |
4468 List<int> _ints; | |
4469 bool _isValidConst; | |
4470 List<idl.UnlinkedConstOperation> _operations; | |
4471 List<idl.EntityRef> _references; | |
4472 List<String> _strings; | |
4473 | |
4474 @override | |
4475 List<idl.UnlinkedExprAssignOperator> get assignmentOperators { | |
4476 _assignmentOperators ??= const fb.ListReader<idl.UnlinkedExprAssignOperator>
(const _UnlinkedExprAssignOperatorReader()).vTableGet(_bc, _bcOffset, 6, const <
idl.UnlinkedExprAssignOperator>[]); | |
4477 return _assignmentOperators; | |
4478 } | |
4479 | |
4480 @override | |
4481 List<double> get doubles { | |
4482 _doubles ??= const fb.Float64ListReader().vTableGet(_bc, _bcOffset, 4, const
<double>[]); | |
4483 return _doubles; | |
4484 } | |
4485 | |
4486 @override | |
4487 List<int> get ints { | |
4488 _ints ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset, 1, const <in
t>[]); | |
4489 return _ints; | |
4490 } | |
4491 | |
4492 @override | |
4493 bool get isValidConst { | |
4494 _isValidConst ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 5, false); | |
4495 return _isValidConst; | |
4496 } | |
4497 | |
4498 @override | |
4499 List<idl.UnlinkedConstOperation> get operations { | |
4500 _operations ??= const fb.ListReader<idl.UnlinkedConstOperation>(const _Unlin
kedConstOperationReader()).vTableGet(_bc, _bcOffset, 0, const <idl.UnlinkedConst
Operation>[]); | |
4501 return _operations; | |
4502 } | |
4503 | |
4504 @override | |
4505 List<idl.EntityRef> get references { | |
4506 _references ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bc, _bcOffset, 2, const <idl.EntityRef>[]); | |
4507 return _references; | |
4508 } | |
4509 | |
4510 @override | |
4511 List<String> get strings { | |
4512 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bc, _bcOffset, 3, const <String>[]); | |
4513 return _strings; | |
4514 } | |
4515 } | |
4516 | |
4517 abstract class _UnlinkedConstMixin implements idl.UnlinkedConst { | |
4518 @override | |
4519 Map<String, Object> toJson() { | |
4520 Map<String, Object> _result = <String, Object>{}; | |
4521 if (assignmentOperators.isNotEmpty) _result["assignmentOperators"] = assignm
entOperators.map((_value) => _value.toString().split('.')[1]).toList(); | |
4522 if (doubles.isNotEmpty) _result["doubles"] = doubles.map((_value) => _value.
isFinite ? _value : _value.toString()).toList(); | |
4523 if (ints.isNotEmpty) _result["ints"] = ints; | |
4524 if (isValidConst != false) _result["isValidConst"] = isValidConst; | |
4525 if (operations.isNotEmpty) _result["operations"] = operations.map((_value) =
> _value.toString().split('.')[1]).toList(); | |
4526 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); | |
4527 if (strings.isNotEmpty) _result["strings"] = strings; | |
4528 return _result; | |
4529 } | |
4530 | |
4531 @override | |
4532 Map<String, Object> toMap() => { | |
4533 "assignmentOperators": assignmentOperators, | |
4534 "doubles": doubles, | |
4535 "ints": ints, | |
4536 "isValidConst": isValidConst, | |
4537 "operations": operations, | |
4538 "references": references, | |
4539 "strings": strings, | |
4540 }; | |
4541 | |
4542 @override | |
4543 String toString() => convert.JSON.encode(toJson()); | |
4544 } | |
4545 | |
4546 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { | 4243 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { |
4547 List<String> _argumentNames; | 4244 List<String> _argumentNames; |
4548 List<UnlinkedConstBuilder> _arguments; | 4245 List<UnlinkedExprBuilder> _arguments; |
4549 UnlinkedConstBuilder _expression; | 4246 UnlinkedExprBuilder _expression; |
4550 idl.UnlinkedConstructorInitializerKind _kind; | 4247 idl.UnlinkedConstructorInitializerKind _kind; |
4551 String _name; | 4248 String _name; |
4552 | 4249 |
4553 @override | 4250 @override |
4554 List<String> get argumentNames => _argumentNames ??= <String>[]; | 4251 List<String> get argumentNames => _argumentNames ??= <String>[]; |
4555 | 4252 |
4556 /** | 4253 /** |
4557 * If there are `m` [arguments] and `n` [argumentNames], then each argument | 4254 * If there are `m` [arguments] and `n` [argumentNames], then each argument |
4558 * from [arguments] with index `i` such that `n + i - m >= 0`, should be used | 4255 * from [arguments] with index `i` such that `n + i - m >= 0`, should be used |
4559 * with the name at `n + i - m`. | 4256 * with the name at `n + i - m`. |
4560 */ | 4257 */ |
4561 void set argumentNames(List<String> value) { | 4258 void set argumentNames(List<String> value) { |
4562 this._argumentNames = value; | 4259 this._argumentNames = value; |
4563 } | 4260 } |
4564 | 4261 |
4565 @override | 4262 @override |
4566 List<UnlinkedConstBuilder> get arguments => _arguments ??= <UnlinkedConstBuild
er>[]; | 4263 List<UnlinkedExprBuilder> get arguments => _arguments ??= <UnlinkedExprBuilder
>[]; |
4567 | 4264 |
4568 /** | 4265 /** |
4569 * If [kind] is `thisInvocation` or `superInvocation`, the arguments of the | 4266 * If [kind] is `thisInvocation` or `superInvocation`, the arguments of the |
4570 * invocation. Otherwise empty. | 4267 * invocation. Otherwise empty. |
4571 */ | 4268 */ |
4572 void set arguments(List<UnlinkedConstBuilder> value) { | 4269 void set arguments(List<UnlinkedExprBuilder> value) { |
4573 this._arguments = value; | 4270 this._arguments = value; |
4574 } | 4271 } |
4575 | 4272 |
4576 @override | 4273 @override |
4577 UnlinkedConstBuilder get expression => _expression; | 4274 UnlinkedExprBuilder get expression => _expression; |
4578 | 4275 |
4579 /** | 4276 /** |
4580 * If [kind] is `field`, the expression of the field initializer. | 4277 * If [kind] is `field`, the expression of the field initializer. |
4581 * Otherwise `null`. | 4278 * Otherwise `null`. |
4582 */ | 4279 */ |
4583 void set expression(UnlinkedConstBuilder value) { | 4280 void set expression(UnlinkedExprBuilder value) { |
4584 this._expression = value; | 4281 this._expression = value; |
4585 } | 4282 } |
4586 | 4283 |
4587 @override | 4284 @override |
4588 idl.UnlinkedConstructorInitializerKind get kind => _kind ??= idl.UnlinkedConst
ructorInitializerKind.field; | 4285 idl.UnlinkedConstructorInitializerKind get kind => _kind ??= idl.UnlinkedConst
ructorInitializerKind.field; |
4589 | 4286 |
4590 /** | 4287 /** |
4591 * The kind of the constructor initializer (field, redirect, super). | 4288 * The kind of the constructor initializer (field, redirect, super). |
4592 */ | 4289 */ |
4593 void set kind(idl.UnlinkedConstructorInitializerKind value) { | 4290 void set kind(idl.UnlinkedConstructorInitializerKind value) { |
4594 this._kind = value; | 4291 this._kind = value; |
4595 } | 4292 } |
4596 | 4293 |
4597 @override | 4294 @override |
4598 String get name => _name ??= ''; | 4295 String get name => _name ??= ''; |
4599 | 4296 |
4600 /** | 4297 /** |
4601 * If [kind] is `field`, the name of the field declared in the class. If | 4298 * If [kind] is `field`, the name of the field declared in the class. If |
4602 * [kind] is `thisInvocation`, the name of the constructor, declared in this | 4299 * [kind] is `thisInvocation`, the name of the constructor, declared in this |
4603 * class, to redirect to. If [kind] is `superInvocation`, the name of the | 4300 * class, to redirect to. If [kind] is `superInvocation`, the name of the |
4604 * constructor, declared in the superclass, to invoke. | 4301 * constructor, declared in the superclass, to invoke. |
4605 */ | 4302 */ |
4606 void set name(String value) { | 4303 void set name(String value) { |
4607 this._name = value; | 4304 this._name = value; |
4608 } | 4305 } |
4609 | 4306 |
4610 UnlinkedConstructorInitializerBuilder({List<String> argumentNames, List<Unlink
edConstBuilder> arguments, UnlinkedConstBuilder expression, idl.UnlinkedConstruc
torInitializerKind kind, String name}) | 4307 UnlinkedConstructorInitializerBuilder({List<String> argumentNames, List<Unlink
edExprBuilder> arguments, UnlinkedExprBuilder expression, idl.UnlinkedConstructo
rInitializerKind kind, String name}) |
4611 : _argumentNames = argumentNames, | 4308 : _argumentNames = argumentNames, |
4612 _arguments = arguments, | 4309 _arguments = arguments, |
4613 _expression = expression, | 4310 _expression = expression, |
4614 _kind = kind, | 4311 _kind = kind, |
4615 _name = name; | 4312 _name = name; |
4616 | 4313 |
4617 /** | 4314 /** |
4618 * Flush [informative] data recursively. | 4315 * Flush [informative] data recursively. |
4619 */ | 4316 */ |
4620 void flushInformative() { | 4317 void flushInformative() { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4692 _UnlinkedConstructorInitializerImpl createObject(fb.BufferContext bc, int offs
et) => new _UnlinkedConstructorInitializerImpl(bc, offset); | 4389 _UnlinkedConstructorInitializerImpl createObject(fb.BufferContext bc, int offs
et) => new _UnlinkedConstructorInitializerImpl(bc, offset); |
4693 } | 4390 } |
4694 | 4391 |
4695 class _UnlinkedConstructorInitializerImpl extends Object with _UnlinkedConstruct
orInitializerMixin implements idl.UnlinkedConstructorInitializer { | 4392 class _UnlinkedConstructorInitializerImpl extends Object with _UnlinkedConstruct
orInitializerMixin implements idl.UnlinkedConstructorInitializer { |
4696 final fb.BufferContext _bc; | 4393 final fb.BufferContext _bc; |
4697 final int _bcOffset; | 4394 final int _bcOffset; |
4698 | 4395 |
4699 _UnlinkedConstructorInitializerImpl(this._bc, this._bcOffset); | 4396 _UnlinkedConstructorInitializerImpl(this._bc, this._bcOffset); |
4700 | 4397 |
4701 List<String> _argumentNames; | 4398 List<String> _argumentNames; |
4702 List<idl.UnlinkedConst> _arguments; | 4399 List<idl.UnlinkedExpr> _arguments; |
4703 idl.UnlinkedConst _expression; | 4400 idl.UnlinkedExpr _expression; |
4704 idl.UnlinkedConstructorInitializerKind _kind; | 4401 idl.UnlinkedConstructorInitializerKind _kind; |
4705 String _name; | 4402 String _name; |
4706 | 4403 |
4707 @override | 4404 @override |
4708 List<String> get argumentNames { | 4405 List<String> get argumentNames { |
4709 _argumentNames ??= const fb.ListReader<String>(const fb.StringReader()).vTab
leGet(_bc, _bcOffset, 4, const <String>[]); | 4406 _argumentNames ??= const fb.ListReader<String>(const fb.StringReader()).vTab
leGet(_bc, _bcOffset, 4, const <String>[]); |
4710 return _argumentNames; | 4407 return _argumentNames; |
4711 } | 4408 } |
4712 | 4409 |
4713 @override | 4410 @override |
4714 List<idl.UnlinkedConst> get arguments { | 4411 List<idl.UnlinkedExpr> get arguments { |
4715 _arguments ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConstRe
ader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedConst>[]); | 4412 _arguments ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRead
er()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedExpr>[]); |
4716 return _arguments; | 4413 return _arguments; |
4717 } | 4414 } |
4718 | 4415 |
4719 @override | 4416 @override |
4720 idl.UnlinkedConst get expression { | 4417 idl.UnlinkedExpr get expression { |
4721 _expression ??= const _UnlinkedConstReader().vTableGet(_bc, _bcOffset, 1, nu
ll); | 4418 _expression ??= const _UnlinkedExprReader().vTableGet(_bc, _bcOffset, 1, nul
l); |
4722 return _expression; | 4419 return _expression; |
4723 } | 4420 } |
4724 | 4421 |
4725 @override | 4422 @override |
4726 idl.UnlinkedConstructorInitializerKind get kind { | 4423 idl.UnlinkedConstructorInitializerKind get kind { |
4727 _kind ??= const _UnlinkedConstructorInitializerKindReader().vTableGet(_bc, _
bcOffset, 2, idl.UnlinkedConstructorInitializerKind.field); | 4424 _kind ??= const _UnlinkedConstructorInitializerKindReader().vTableGet(_bc, _
bcOffset, 2, idl.UnlinkedConstructorInitializerKind.field); |
4728 return _kind; | 4425 return _kind; |
4729 } | 4426 } |
4730 | 4427 |
4731 @override | 4428 @override |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4850 @override | 4547 @override |
4851 Map<String, Object> toMap() => { | 4548 Map<String, Object> toMap() => { |
4852 "text": text, | 4549 "text": text, |
4853 }; | 4550 }; |
4854 | 4551 |
4855 @override | 4552 @override |
4856 String toString() => convert.JSON.encode(toJson()); | 4553 String toString() => convert.JSON.encode(toJson()); |
4857 } | 4554 } |
4858 | 4555 |
4859 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { | 4556 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { |
4860 List<UnlinkedConstBuilder> _annotations; | 4557 List<UnlinkedExprBuilder> _annotations; |
4861 CodeRangeBuilder _codeRange; | 4558 CodeRangeBuilder _codeRange; |
4862 UnlinkedDocumentationCommentBuilder _documentationComment; | 4559 UnlinkedDocumentationCommentBuilder _documentationComment; |
4863 String _name; | 4560 String _name; |
4864 int _nameOffset; | 4561 int _nameOffset; |
4865 List<UnlinkedEnumValueBuilder> _values; | 4562 List<UnlinkedEnumValueBuilder> _values; |
4866 | 4563 |
4867 @override | 4564 @override |
4868 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 4565 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
4869 | 4566 |
4870 /** | 4567 /** |
4871 * Annotations for this enum. | 4568 * Annotations for this enum. |
4872 */ | 4569 */ |
4873 void set annotations(List<UnlinkedConstBuilder> value) { | 4570 void set annotations(List<UnlinkedExprBuilder> value) { |
4874 this._annotations = value; | 4571 this._annotations = value; |
4875 } | 4572 } |
4876 | 4573 |
4877 @override | 4574 @override |
4878 CodeRangeBuilder get codeRange => _codeRange; | 4575 CodeRangeBuilder get codeRange => _codeRange; |
4879 | 4576 |
4880 /** | 4577 /** |
4881 * Code range of the enum. | 4578 * Code range of the enum. |
4882 */ | 4579 */ |
4883 void set codeRange(CodeRangeBuilder value) { | 4580 void set codeRange(CodeRangeBuilder value) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4919 @override | 4616 @override |
4920 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; | 4617 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; |
4921 | 4618 |
4922 /** | 4619 /** |
4923 * Values listed in the enum declaration, in declaration order. | 4620 * Values listed in the enum declaration, in declaration order. |
4924 */ | 4621 */ |
4925 void set values(List<UnlinkedEnumValueBuilder> value) { | 4622 void set values(List<UnlinkedEnumValueBuilder> value) { |
4926 this._values = value; | 4623 this._values = value; |
4927 } | 4624 } |
4928 | 4625 |
4929 UnlinkedEnumBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name
, int nameOffset, List<UnlinkedEnumValueBuilder> values}) | 4626 UnlinkedEnumBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuilder c
odeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name,
int nameOffset, List<UnlinkedEnumValueBuilder> values}) |
4930 : _annotations = annotations, | 4627 : _annotations = annotations, |
4931 _codeRange = codeRange, | 4628 _codeRange = codeRange, |
4932 _documentationComment = documentationComment, | 4629 _documentationComment = documentationComment, |
4933 _name = name, | 4630 _name = name, |
4934 _nameOffset = nameOffset, | 4631 _nameOffset = nameOffset, |
4935 _values = values; | 4632 _values = values; |
4936 | 4633 |
4937 /** | 4634 /** |
4938 * Flush [informative] data recursively. | 4635 * Flush [informative] data recursively. |
4939 */ | 4636 */ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5018 @override | 4715 @override |
5019 _UnlinkedEnumImpl createObject(fb.BufferContext bc, int offset) => new _Unlink
edEnumImpl(bc, offset); | 4716 _UnlinkedEnumImpl createObject(fb.BufferContext bc, int offset) => new _Unlink
edEnumImpl(bc, offset); |
5020 } | 4717 } |
5021 | 4718 |
5022 class _UnlinkedEnumImpl extends Object with _UnlinkedEnumMixin implements idl.Un
linkedEnum { | 4719 class _UnlinkedEnumImpl extends Object with _UnlinkedEnumMixin implements idl.Un
linkedEnum { |
5023 final fb.BufferContext _bc; | 4720 final fb.BufferContext _bc; |
5024 final int _bcOffset; | 4721 final int _bcOffset; |
5025 | 4722 |
5026 _UnlinkedEnumImpl(this._bc, this._bcOffset); | 4723 _UnlinkedEnumImpl(this._bc, this._bcOffset); |
5027 | 4724 |
5028 List<idl.UnlinkedConst> _annotations; | 4725 List<idl.UnlinkedExpr> _annotations; |
5029 idl.CodeRange _codeRange; | 4726 idl.CodeRange _codeRange; |
5030 idl.UnlinkedDocumentationComment _documentationComment; | 4727 idl.UnlinkedDocumentationComment _documentationComment; |
5031 String _name; | 4728 String _name; |
5032 int _nameOffset; | 4729 int _nameOffset; |
5033 List<idl.UnlinkedEnumValue> _values; | 4730 List<idl.UnlinkedEnumValue> _values; |
5034 | 4731 |
5035 @override | 4732 @override |
5036 List<idl.UnlinkedConst> get annotations { | 4733 List<idl.UnlinkedExpr> get annotations { |
5037 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedConst>[]); | 4734 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedExpr>[]); |
5038 return _annotations; | 4735 return _annotations; |
5039 } | 4736 } |
5040 | 4737 |
5041 @override | 4738 @override |
5042 idl.CodeRange get codeRange { | 4739 idl.CodeRange get codeRange { |
5043 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 5, null); | 4740 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 5, null); |
5044 return _codeRange; | 4741 return _codeRange; |
5045 } | 4742 } |
5046 | 4743 |
5047 @override | 4744 @override |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5227 "documentationComment": documentationComment, | 4924 "documentationComment": documentationComment, |
5228 "name": name, | 4925 "name": name, |
5229 "nameOffset": nameOffset, | 4926 "nameOffset": nameOffset, |
5230 }; | 4927 }; |
5231 | 4928 |
5232 @override | 4929 @override |
5233 String toString() => convert.JSON.encode(toJson()); | 4930 String toString() => convert.JSON.encode(toJson()); |
5234 } | 4931 } |
5235 | 4932 |
5236 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { | 4933 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { |
5237 List<UnlinkedConstBuilder> _annotations; | 4934 List<UnlinkedExprBuilder> _annotations; |
5238 UnlinkedConstBuilder _bodyExpr; | 4935 UnlinkedExprBuilder _bodyExpr; |
5239 CodeRangeBuilder _codeRange; | 4936 CodeRangeBuilder _codeRange; |
5240 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; | 4937 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; |
5241 int _constCycleSlot; | 4938 int _constCycleSlot; |
5242 UnlinkedDocumentationCommentBuilder _documentationComment; | 4939 UnlinkedDocumentationCommentBuilder _documentationComment; |
5243 int _inferredReturnTypeSlot; | 4940 int _inferredReturnTypeSlot; |
5244 bool _isAbstract; | 4941 bool _isAbstract; |
5245 bool _isAsynchronous; | 4942 bool _isAsynchronous; |
5246 bool _isConst; | 4943 bool _isConst; |
5247 bool _isExternal; | 4944 bool _isExternal; |
5248 bool _isFactory; | 4945 bool _isFactory; |
(...skipping 10 matching lines...) Expand all Loading... |
5259 List<UnlinkedParamBuilder> _parameters; | 4956 List<UnlinkedParamBuilder> _parameters; |
5260 int _periodOffset; | 4957 int _periodOffset; |
5261 EntityRefBuilder _redirectedConstructor; | 4958 EntityRefBuilder _redirectedConstructor; |
5262 String _redirectedConstructorName; | 4959 String _redirectedConstructorName; |
5263 EntityRefBuilder _returnType; | 4960 EntityRefBuilder _returnType; |
5264 List<UnlinkedTypeParamBuilder> _typeParameters; | 4961 List<UnlinkedTypeParamBuilder> _typeParameters; |
5265 int _visibleLength; | 4962 int _visibleLength; |
5266 int _visibleOffset; | 4963 int _visibleOffset; |
5267 | 4964 |
5268 @override | 4965 @override |
5269 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 4966 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
5270 | 4967 |
5271 /** | 4968 /** |
5272 * Annotations for this executable. | 4969 * Annotations for this executable. |
5273 */ | 4970 */ |
5274 void set annotations(List<UnlinkedConstBuilder> value) { | 4971 void set annotations(List<UnlinkedExprBuilder> value) { |
5275 this._annotations = value; | 4972 this._annotations = value; |
5276 } | 4973 } |
5277 | 4974 |
5278 @override | 4975 @override |
5279 UnlinkedConstBuilder get bodyExpr => _bodyExpr; | 4976 UnlinkedExprBuilder get bodyExpr => _bodyExpr; |
5280 | 4977 |
5281 /** | 4978 /** |
5282 * If this executable's function body is declared using `=>`, the expression | 4979 * If this executable's function body is declared using `=>`, the expression |
5283 * to the right of the `=>`. May be omitted if neither type inference nor | 4980 * to the right of the `=>`. May be omitted if neither type inference nor |
5284 * constant evaluation depends on the function body. | 4981 * constant evaluation depends on the function body. |
5285 */ | 4982 */ |
5286 void set bodyExpr(UnlinkedConstBuilder value) { | 4983 void set bodyExpr(UnlinkedExprBuilder value) { |
5287 this._bodyExpr = value; | 4984 this._bodyExpr = value; |
5288 } | 4985 } |
5289 | 4986 |
5290 @override | 4987 @override |
5291 CodeRangeBuilder get codeRange => _codeRange; | 4988 CodeRangeBuilder get codeRange => _codeRange; |
5292 | 4989 |
5293 /** | 4990 /** |
5294 * Code range of the executable. | 4991 * Code range of the executable. |
5295 */ | 4992 */ |
5296 void set codeRange(CodeRangeBuilder value) { | 4993 void set codeRange(CodeRangeBuilder value) { |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5600 int get visibleOffset => _visibleOffset ??= 0; | 5297 int get visibleOffset => _visibleOffset ??= 0; |
5601 | 5298 |
5602 /** | 5299 /** |
5603 * If a local function, the beginning of the visible range; zero otherwise. | 5300 * If a local function, the beginning of the visible range; zero otherwise. |
5604 */ | 5301 */ |
5605 void set visibleOffset(int value) { | 5302 void set visibleOffset(int value) { |
5606 assert(value == null || value >= 0); | 5303 assert(value == null || value >= 0); |
5607 this._visibleOffset = value; | 5304 this._visibleOffset = value; |
5608 } | 5305 } |
5609 | 5306 |
5610 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedCon
stBuilder bodyExpr, CodeRangeBuilder codeRange, List<UnlinkedConstructorInitiali
zerBuilder> constantInitializers, int constCycleSlot, UnlinkedDocumentationComme
ntBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, boo
l isAsynchronous, bool isConst, bool isExternal, bool isFactory, bool isGenerato
r, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind,
List<UnlinkedExecutableBuilder> localFunctions, List<UnlinkedLabelBuilder> loca
lLabels, List<UnlinkedVariableBuilder> localVariables, String name, int nameEnd,
int nameOffset, List<UnlinkedParamBuilder> parameters, int periodOffset, Entity
RefBuilder redirectedConstructor, String redirectedConstructorName, EntityRefBui
lder returnType, List<UnlinkedTypeParamBuilder> typeParameters, int visibleLengt
h, int visibleOffset}) | 5307 UnlinkedExecutableBuilder({List<UnlinkedExprBuilder> annotations, UnlinkedExpr
Builder bodyExpr, CodeRangeBuilder codeRange, List<UnlinkedConstructorInitialize
rBuilder> constantInitializers, int constCycleSlot, UnlinkedDocumentationComment
Builder documentationComment, int inferredReturnTypeSlot, bool isAbstract, bool
isAsynchronous, bool isConst, bool isExternal, bool isFactory, bool isGenerator,
bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind, L
ist<UnlinkedExecutableBuilder> localFunctions, List<UnlinkedLabelBuilder> localL
abels, List<UnlinkedVariableBuilder> localVariables, String name, int nameEnd, i
nt nameOffset, List<UnlinkedParamBuilder> parameters, int periodOffset, EntityRe
fBuilder redirectedConstructor, String redirectedConstructorName, EntityRefBuild
er returnType, List<UnlinkedTypeParamBuilder> typeParameters, int visibleLength,
int visibleOffset}) |
5611 : _annotations = annotations, | 5308 : _annotations = annotations, |
5612 _bodyExpr = bodyExpr, | 5309 _bodyExpr = bodyExpr, |
5613 _codeRange = codeRange, | 5310 _codeRange = codeRange, |
5614 _constantInitializers = constantInitializers, | 5311 _constantInitializers = constantInitializers, |
5615 _constCycleSlot = constCycleSlot, | 5312 _constCycleSlot = constCycleSlot, |
5616 _documentationComment = documentationComment, | 5313 _documentationComment = documentationComment, |
5617 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 5314 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
5618 _isAbstract = isAbstract, | 5315 _isAbstract = isAbstract, |
5619 _isAsynchronous = isAsynchronous, | 5316 _isAsynchronous = isAsynchronous, |
5620 _isConst = isConst, | 5317 _isConst = isConst, |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5885 @override | 5582 @override |
5886 _UnlinkedExecutableImpl createObject(fb.BufferContext bc, int offset) => new _
UnlinkedExecutableImpl(bc, offset); | 5583 _UnlinkedExecutableImpl createObject(fb.BufferContext bc, int offset) => new _
UnlinkedExecutableImpl(bc, offset); |
5887 } | 5584 } |
5888 | 5585 |
5889 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { | 5586 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { |
5890 final fb.BufferContext _bc; | 5587 final fb.BufferContext _bc; |
5891 final int _bcOffset; | 5588 final int _bcOffset; |
5892 | 5589 |
5893 _UnlinkedExecutableImpl(this._bc, this._bcOffset); | 5590 _UnlinkedExecutableImpl(this._bc, this._bcOffset); |
5894 | 5591 |
5895 List<idl.UnlinkedConst> _annotations; | 5592 List<idl.UnlinkedExpr> _annotations; |
5896 idl.UnlinkedConst _bodyExpr; | 5593 idl.UnlinkedExpr _bodyExpr; |
5897 idl.CodeRange _codeRange; | 5594 idl.CodeRange _codeRange; |
5898 List<idl.UnlinkedConstructorInitializer> _constantInitializers; | 5595 List<idl.UnlinkedConstructorInitializer> _constantInitializers; |
5899 int _constCycleSlot; | 5596 int _constCycleSlot; |
5900 idl.UnlinkedDocumentationComment _documentationComment; | 5597 idl.UnlinkedDocumentationComment _documentationComment; |
5901 int _inferredReturnTypeSlot; | 5598 int _inferredReturnTypeSlot; |
5902 bool _isAbstract; | 5599 bool _isAbstract; |
5903 bool _isAsynchronous; | 5600 bool _isAsynchronous; |
5904 bool _isConst; | 5601 bool _isConst; |
5905 bool _isExternal; | 5602 bool _isExternal; |
5906 bool _isFactory; | 5603 bool _isFactory; |
(...skipping 10 matching lines...) Expand all Loading... |
5917 List<idl.UnlinkedParam> _parameters; | 5614 List<idl.UnlinkedParam> _parameters; |
5918 int _periodOffset; | 5615 int _periodOffset; |
5919 idl.EntityRef _redirectedConstructor; | 5616 idl.EntityRef _redirectedConstructor; |
5920 String _redirectedConstructorName; | 5617 String _redirectedConstructorName; |
5921 idl.EntityRef _returnType; | 5618 idl.EntityRef _returnType; |
5922 List<idl.UnlinkedTypeParam> _typeParameters; | 5619 List<idl.UnlinkedTypeParam> _typeParameters; |
5923 int _visibleLength; | 5620 int _visibleLength; |
5924 int _visibleOffset; | 5621 int _visibleOffset; |
5925 | 5622 |
5926 @override | 5623 @override |
5927 List<idl.UnlinkedConst> get annotations { | 5624 List<idl.UnlinkedExpr> get annotations { |
5928 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 6, const <idl.UnlinkedConst>[]); | 5625 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 6, const <idl.UnlinkedExpr>[]); |
5929 return _annotations; | 5626 return _annotations; |
5930 } | 5627 } |
5931 | 5628 |
5932 @override | 5629 @override |
5933 idl.UnlinkedConst get bodyExpr { | 5630 idl.UnlinkedExpr get bodyExpr { |
5934 _bodyExpr ??= const _UnlinkedConstReader().vTableGet(_bc, _bcOffset, 29, nul
l); | 5631 _bodyExpr ??= const _UnlinkedExprReader().vTableGet(_bc, _bcOffset, 29, null
); |
5935 return _bodyExpr; | 5632 return _bodyExpr; |
5936 } | 5633 } |
5937 | 5634 |
5938 @override | 5635 @override |
5939 idl.CodeRange get codeRange { | 5636 idl.CodeRange get codeRange { |
5940 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 26, null); | 5637 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 26, null); |
5941 return _codeRange; | 5638 return _codeRange; |
5942 } | 5639 } |
5943 | 5640 |
5944 @override | 5641 @override |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6173 "typeParameters": typeParameters, | 5870 "typeParameters": typeParameters, |
6174 "visibleLength": visibleLength, | 5871 "visibleLength": visibleLength, |
6175 "visibleOffset": visibleOffset, | 5872 "visibleOffset": visibleOffset, |
6176 }; | 5873 }; |
6177 | 5874 |
6178 @override | 5875 @override |
6179 String toString() => convert.JSON.encode(toJson()); | 5876 String toString() => convert.JSON.encode(toJson()); |
6180 } | 5877 } |
6181 | 5878 |
6182 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 5879 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
6183 List<UnlinkedConstBuilder> _annotations; | 5880 List<UnlinkedExprBuilder> _annotations; |
6184 int _offset; | 5881 int _offset; |
6185 int _uriEnd; | 5882 int _uriEnd; |
6186 int _uriOffset; | 5883 int _uriOffset; |
6187 | 5884 |
6188 @override | 5885 @override |
6189 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 5886 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
6190 | 5887 |
6191 /** | 5888 /** |
6192 * Annotations for this export directive. | 5889 * Annotations for this export directive. |
6193 */ | 5890 */ |
6194 void set annotations(List<UnlinkedConstBuilder> value) { | 5891 void set annotations(List<UnlinkedExprBuilder> value) { |
6195 this._annotations = value; | 5892 this._annotations = value; |
6196 } | 5893 } |
6197 | 5894 |
6198 @override | 5895 @override |
6199 int get offset => _offset ??= 0; | 5896 int get offset => _offset ??= 0; |
6200 | 5897 |
6201 /** | 5898 /** |
6202 * Offset of the "export" keyword. | 5899 * Offset of the "export" keyword. |
6203 */ | 5900 */ |
6204 void set offset(int value) { | 5901 void set offset(int value) { |
(...skipping 18 matching lines...) Expand all Loading... |
6223 | 5920 |
6224 /** | 5921 /** |
6225 * Offset of the URI string (including quotes) relative to the beginning of | 5922 * Offset of the URI string (including quotes) relative to the beginning of |
6226 * the file. | 5923 * the file. |
6227 */ | 5924 */ |
6228 void set uriOffset(int value) { | 5925 void set uriOffset(int value) { |
6229 assert(value == null || value >= 0); | 5926 assert(value == null || value >= 0); |
6230 this._uriOffset = value; | 5927 this._uriOffset = value; |
6231 } | 5928 } |
6232 | 5929 |
6233 UnlinkedExportNonPublicBuilder({List<UnlinkedConstBuilder> annotations, int of
fset, int uriEnd, int uriOffset}) | 5930 UnlinkedExportNonPublicBuilder({List<UnlinkedExprBuilder> annotations, int off
set, int uriEnd, int uriOffset}) |
6234 : _annotations = annotations, | 5931 : _annotations = annotations, |
6235 _offset = offset, | 5932 _offset = offset, |
6236 _uriEnd = uriEnd, | 5933 _uriEnd = uriEnd, |
6237 _uriOffset = uriOffset; | 5934 _uriOffset = uriOffset; |
6238 | 5935 |
6239 /** | 5936 /** |
6240 * Flush [informative] data recursively. | 5937 * Flush [informative] data recursively. |
6241 */ | 5938 */ |
6242 void flushInformative() { | 5939 void flushInformative() { |
6243 _annotations?.forEach((b) => b.flushInformative()); | 5940 _annotations?.forEach((b) => b.flushInformative()); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6288 @override | 5985 @override |
6289 _UnlinkedExportNonPublicImpl createObject(fb.BufferContext bc, int offset) =>
new _UnlinkedExportNonPublicImpl(bc, offset); | 5986 _UnlinkedExportNonPublicImpl createObject(fb.BufferContext bc, int offset) =>
new _UnlinkedExportNonPublicImpl(bc, offset); |
6290 } | 5987 } |
6291 | 5988 |
6292 class _UnlinkedExportNonPublicImpl extends Object with _UnlinkedExportNonPublicM
ixin implements idl.UnlinkedExportNonPublic { | 5989 class _UnlinkedExportNonPublicImpl extends Object with _UnlinkedExportNonPublicM
ixin implements idl.UnlinkedExportNonPublic { |
6293 final fb.BufferContext _bc; | 5990 final fb.BufferContext _bc; |
6294 final int _bcOffset; | 5991 final int _bcOffset; |
6295 | 5992 |
6296 _UnlinkedExportNonPublicImpl(this._bc, this._bcOffset); | 5993 _UnlinkedExportNonPublicImpl(this._bc, this._bcOffset); |
6297 | 5994 |
6298 List<idl.UnlinkedConst> _annotations; | 5995 List<idl.UnlinkedExpr> _annotations; |
6299 int _offset; | 5996 int _offset; |
6300 int _uriEnd; | 5997 int _uriEnd; |
6301 int _uriOffset; | 5998 int _uriOffset; |
6302 | 5999 |
6303 @override | 6000 @override |
6304 List<idl.UnlinkedConst> get annotations { | 6001 List<idl.UnlinkedExpr> get annotations { |
6305 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedConst>[]); | 6002 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedExpr>[]); |
6306 return _annotations; | 6003 return _annotations; |
6307 } | 6004 } |
6308 | 6005 |
6309 @override | 6006 @override |
6310 int get offset { | 6007 int get offset { |
6311 _offset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0); | 6008 _offset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0); |
6312 return _offset; | 6009 return _offset; |
6313 } | 6010 } |
6314 | 6011 |
6315 @override | 6012 @override |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6497 Map<String, Object> toMap() => { | 6194 Map<String, Object> toMap() => { |
6498 "combinators": combinators, | 6195 "combinators": combinators, |
6499 "configurations": configurations, | 6196 "configurations": configurations, |
6500 "uri": uri, | 6197 "uri": uri, |
6501 }; | 6198 }; |
6502 | 6199 |
6503 @override | 6200 @override |
6504 String toString() => convert.JSON.encode(toJson()); | 6201 String toString() => convert.JSON.encode(toJson()); |
6505 } | 6202 } |
6506 | 6203 |
| 6204 class UnlinkedExprBuilder extends Object with _UnlinkedExprMixin implements idl.
UnlinkedExpr { |
| 6205 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; |
| 6206 List<double> _doubles; |
| 6207 List<int> _ints; |
| 6208 bool _isValidConst; |
| 6209 List<idl.UnlinkedExprOperation> _operations; |
| 6210 List<EntityRefBuilder> _references; |
| 6211 List<String> _strings; |
| 6212 |
| 6213 @override |
| 6214 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; |
| 6215 |
| 6216 /** |
| 6217 * Sequence of operators used by assignment operations. |
| 6218 */ |
| 6219 void set assignmentOperators(List<idl.UnlinkedExprAssignOperator> value) { |
| 6220 this._assignmentOperators = value; |
| 6221 } |
| 6222 |
| 6223 @override |
| 6224 List<double> get doubles => _doubles ??= <double>[]; |
| 6225 |
| 6226 /** |
| 6227 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. |
| 6228 */ |
| 6229 void set doubles(List<double> value) { |
| 6230 this._doubles = value; |
| 6231 } |
| 6232 |
| 6233 @override |
| 6234 List<int> get ints => _ints ??= <int>[]; |
| 6235 |
| 6236 /** |
| 6237 * Sequence of unsigned 32-bit integers consumed by the operations |
| 6238 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, |
| 6239 * `makeList`, and `makeMap`. |
| 6240 */ |
| 6241 void set ints(List<int> value) { |
| 6242 assert(value == null || value.every((e) => e >= 0)); |
| 6243 this._ints = value; |
| 6244 } |
| 6245 |
| 6246 @override |
| 6247 bool get isValidConst => _isValidConst ??= false; |
| 6248 |
| 6249 /** |
| 6250 * Indicates whether the expression is a valid potentially constant |
| 6251 * expression. |
| 6252 */ |
| 6253 void set isValidConst(bool value) { |
| 6254 this._isValidConst = value; |
| 6255 } |
| 6256 |
| 6257 @override |
| 6258 List<idl.UnlinkedExprOperation> get operations => _operations ??= <idl.Unlinke
dExprOperation>[]; |
| 6259 |
| 6260 /** |
| 6261 * Sequence of operations to execute (starting with an empty stack) to form |
| 6262 * the constant value. |
| 6263 */ |
| 6264 void set operations(List<idl.UnlinkedExprOperation> value) { |
| 6265 this._operations = value; |
| 6266 } |
| 6267 |
| 6268 @override |
| 6269 List<EntityRefBuilder> get references => _references ??= <EntityRefBuilder>[]; |
| 6270 |
| 6271 /** |
| 6272 * Sequence of language constructs consumed by the operations |
| 6273 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note |
| 6274 * that in the case of `pushReference` (and sometimes `invokeConstructor` the |
| 6275 * actual entity being referred to may be something other than a type. |
| 6276 */ |
| 6277 void set references(List<EntityRefBuilder> value) { |
| 6278 this._references = value; |
| 6279 } |
| 6280 |
| 6281 @override |
| 6282 List<String> get strings => _strings ??= <String>[]; |
| 6283 |
| 6284 /** |
| 6285 * Sequence of strings consumed by the operations `pushString` and |
| 6286 * `invokeConstructor`. |
| 6287 */ |
| 6288 void set strings(List<String> value) { |
| 6289 this._strings = value; |
| 6290 } |
| 6291 |
| 6292 UnlinkedExprBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators,
List<double> doubles, List<int> ints, bool isValidConst, List<idl.UnlinkedExprO
peration> operations, List<EntityRefBuilder> references, List<String> strings}) |
| 6293 : _assignmentOperators = assignmentOperators, |
| 6294 _doubles = doubles, |
| 6295 _ints = ints, |
| 6296 _isValidConst = isValidConst, |
| 6297 _operations = operations, |
| 6298 _references = references, |
| 6299 _strings = strings; |
| 6300 |
| 6301 /** |
| 6302 * Flush [informative] data recursively. |
| 6303 */ |
| 6304 void flushInformative() { |
| 6305 _references?.forEach((b) => b.flushInformative()); |
| 6306 } |
| 6307 |
| 6308 /** |
| 6309 * Accumulate non-[informative] data into [signature]. |
| 6310 */ |
| 6311 void collectApiSignature(api_sig.ApiSignature signature) { |
| 6312 if (this._operations == null) { |
| 6313 signature.addInt(0); |
| 6314 } else { |
| 6315 signature.addInt(this._operations.length); |
| 6316 for (var x in this._operations) { |
| 6317 signature.addInt(x.index); |
| 6318 } |
| 6319 } |
| 6320 if (this._ints == null) { |
| 6321 signature.addInt(0); |
| 6322 } else { |
| 6323 signature.addInt(this._ints.length); |
| 6324 for (var x in this._ints) { |
| 6325 signature.addInt(x); |
| 6326 } |
| 6327 } |
| 6328 if (this._references == null) { |
| 6329 signature.addInt(0); |
| 6330 } else { |
| 6331 signature.addInt(this._references.length); |
| 6332 for (var x in this._references) { |
| 6333 x?.collectApiSignature(signature); |
| 6334 } |
| 6335 } |
| 6336 if (this._strings == null) { |
| 6337 signature.addInt(0); |
| 6338 } else { |
| 6339 signature.addInt(this._strings.length); |
| 6340 for (var x in this._strings) { |
| 6341 signature.addString(x); |
| 6342 } |
| 6343 } |
| 6344 if (this._doubles == null) { |
| 6345 signature.addInt(0); |
| 6346 } else { |
| 6347 signature.addInt(this._doubles.length); |
| 6348 for (var x in this._doubles) { |
| 6349 signature.addDouble(x); |
| 6350 } |
| 6351 } |
| 6352 signature.addBool(this._isValidConst == true); |
| 6353 if (this._assignmentOperators == null) { |
| 6354 signature.addInt(0); |
| 6355 } else { |
| 6356 signature.addInt(this._assignmentOperators.length); |
| 6357 for (var x in this._assignmentOperators) { |
| 6358 signature.addInt(x.index); |
| 6359 } |
| 6360 } |
| 6361 } |
| 6362 |
| 6363 fb.Offset finish(fb.Builder fbBuilder) { |
| 6364 fb.Offset offset_assignmentOperators; |
| 6365 fb.Offset offset_doubles; |
| 6366 fb.Offset offset_ints; |
| 6367 fb.Offset offset_operations; |
| 6368 fb.Offset offset_references; |
| 6369 fb.Offset offset_strings; |
| 6370 if (!(_assignmentOperators == null || _assignmentOperators.isEmpty)) { |
| 6371 offset_assignmentOperators = fbBuilder.writeListUint8(_assignmentOperators
.map((b) => b.index).toList()); |
| 6372 } |
| 6373 if (!(_doubles == null || _doubles.isEmpty)) { |
| 6374 offset_doubles = fbBuilder.writeListFloat64(_doubles); |
| 6375 } |
| 6376 if (!(_ints == null || _ints.isEmpty)) { |
| 6377 offset_ints = fbBuilder.writeListUint32(_ints); |
| 6378 } |
| 6379 if (!(_operations == null || _operations.isEmpty)) { |
| 6380 offset_operations = fbBuilder.writeListUint8(_operations.map((b) => b.inde
x).toList()); |
| 6381 } |
| 6382 if (!(_references == null || _references.isEmpty)) { |
| 6383 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); |
| 6384 } |
| 6385 if (!(_strings == null || _strings.isEmpty)) { |
| 6386 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); |
| 6387 } |
| 6388 fbBuilder.startTable(); |
| 6389 if (offset_assignmentOperators != null) { |
| 6390 fbBuilder.addOffset(6, offset_assignmentOperators); |
| 6391 } |
| 6392 if (offset_doubles != null) { |
| 6393 fbBuilder.addOffset(4, offset_doubles); |
| 6394 } |
| 6395 if (offset_ints != null) { |
| 6396 fbBuilder.addOffset(1, offset_ints); |
| 6397 } |
| 6398 if (_isValidConst == true) { |
| 6399 fbBuilder.addBool(5, true); |
| 6400 } |
| 6401 if (offset_operations != null) { |
| 6402 fbBuilder.addOffset(0, offset_operations); |
| 6403 } |
| 6404 if (offset_references != null) { |
| 6405 fbBuilder.addOffset(2, offset_references); |
| 6406 } |
| 6407 if (offset_strings != null) { |
| 6408 fbBuilder.addOffset(3, offset_strings); |
| 6409 } |
| 6410 return fbBuilder.endTable(); |
| 6411 } |
| 6412 } |
| 6413 |
| 6414 class _UnlinkedExprReader extends fb.TableReader<_UnlinkedExprImpl> { |
| 6415 const _UnlinkedExprReader(); |
| 6416 |
| 6417 @override |
| 6418 _UnlinkedExprImpl createObject(fb.BufferContext bc, int offset) => new _Unlink
edExprImpl(bc, offset); |
| 6419 } |
| 6420 |
| 6421 class _UnlinkedExprImpl extends Object with _UnlinkedExprMixin implements idl.Un
linkedExpr { |
| 6422 final fb.BufferContext _bc; |
| 6423 final int _bcOffset; |
| 6424 |
| 6425 _UnlinkedExprImpl(this._bc, this._bcOffset); |
| 6426 |
| 6427 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; |
| 6428 List<double> _doubles; |
| 6429 List<int> _ints; |
| 6430 bool _isValidConst; |
| 6431 List<idl.UnlinkedExprOperation> _operations; |
| 6432 List<idl.EntityRef> _references; |
| 6433 List<String> _strings; |
| 6434 |
| 6435 @override |
| 6436 List<idl.UnlinkedExprAssignOperator> get assignmentOperators { |
| 6437 _assignmentOperators ??= const fb.ListReader<idl.UnlinkedExprAssignOperator>
(const _UnlinkedExprAssignOperatorReader()).vTableGet(_bc, _bcOffset, 6, const <
idl.UnlinkedExprAssignOperator>[]); |
| 6438 return _assignmentOperators; |
| 6439 } |
| 6440 |
| 6441 @override |
| 6442 List<double> get doubles { |
| 6443 _doubles ??= const fb.Float64ListReader().vTableGet(_bc, _bcOffset, 4, const
<double>[]); |
| 6444 return _doubles; |
| 6445 } |
| 6446 |
| 6447 @override |
| 6448 List<int> get ints { |
| 6449 _ints ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset, 1, const <in
t>[]); |
| 6450 return _ints; |
| 6451 } |
| 6452 |
| 6453 @override |
| 6454 bool get isValidConst { |
| 6455 _isValidConst ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 5, false); |
| 6456 return _isValidConst; |
| 6457 } |
| 6458 |
| 6459 @override |
| 6460 List<idl.UnlinkedExprOperation> get operations { |
| 6461 _operations ??= const fb.ListReader<idl.UnlinkedExprOperation>(const _Unlink
edExprOperationReader()).vTableGet(_bc, _bcOffset, 0, const <idl.UnlinkedExprOpe
ration>[]); |
| 6462 return _operations; |
| 6463 } |
| 6464 |
| 6465 @override |
| 6466 List<idl.EntityRef> get references { |
| 6467 _references ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bc, _bcOffset, 2, const <idl.EntityRef>[]); |
| 6468 return _references; |
| 6469 } |
| 6470 |
| 6471 @override |
| 6472 List<String> get strings { |
| 6473 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bc, _bcOffset, 3, const <String>[]); |
| 6474 return _strings; |
| 6475 } |
| 6476 } |
| 6477 |
| 6478 abstract class _UnlinkedExprMixin implements idl.UnlinkedExpr { |
| 6479 @override |
| 6480 Map<String, Object> toJson() { |
| 6481 Map<String, Object> _result = <String, Object>{}; |
| 6482 if (assignmentOperators.isNotEmpty) _result["assignmentOperators"] = assignm
entOperators.map((_value) => _value.toString().split('.')[1]).toList(); |
| 6483 if (doubles.isNotEmpty) _result["doubles"] = doubles.map((_value) => _value.
isFinite ? _value : _value.toString()).toList(); |
| 6484 if (ints.isNotEmpty) _result["ints"] = ints; |
| 6485 if (isValidConst != false) _result["isValidConst"] = isValidConst; |
| 6486 if (operations.isNotEmpty) _result["operations"] = operations.map((_value) =
> _value.toString().split('.')[1]).toList(); |
| 6487 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
| 6488 if (strings.isNotEmpty) _result["strings"] = strings; |
| 6489 return _result; |
| 6490 } |
| 6491 |
| 6492 @override |
| 6493 Map<String, Object> toMap() => { |
| 6494 "assignmentOperators": assignmentOperators, |
| 6495 "doubles": doubles, |
| 6496 "ints": ints, |
| 6497 "isValidConst": isValidConst, |
| 6498 "operations": operations, |
| 6499 "references": references, |
| 6500 "strings": strings, |
| 6501 }; |
| 6502 |
| 6503 @override |
| 6504 String toString() => convert.JSON.encode(toJson()); |
| 6505 } |
| 6506 |
6507 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { | 6507 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { |
6508 List<UnlinkedConstBuilder> _annotations; | 6508 List<UnlinkedExprBuilder> _annotations; |
6509 List<UnlinkedCombinatorBuilder> _combinators; | 6509 List<UnlinkedCombinatorBuilder> _combinators; |
6510 List<UnlinkedConfigurationBuilder> _configurations; | 6510 List<UnlinkedConfigurationBuilder> _configurations; |
6511 bool _isDeferred; | 6511 bool _isDeferred; |
6512 bool _isImplicit; | 6512 bool _isImplicit; |
6513 int _offset; | 6513 int _offset; |
6514 int _prefixOffset; | 6514 int _prefixOffset; |
6515 int _prefixReference; | 6515 int _prefixReference; |
6516 String _uri; | 6516 String _uri; |
6517 int _uriEnd; | 6517 int _uriEnd; |
6518 int _uriOffset; | 6518 int _uriOffset; |
6519 | 6519 |
6520 @override | 6520 @override |
6521 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 6521 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
6522 | 6522 |
6523 /** | 6523 /** |
6524 * Annotations for this import declaration. | 6524 * Annotations for this import declaration. |
6525 */ | 6525 */ |
6526 void set annotations(List<UnlinkedConstBuilder> value) { | 6526 void set annotations(List<UnlinkedExprBuilder> value) { |
6527 this._annotations = value; | 6527 this._annotations = value; |
6528 } | 6528 } |
6529 | 6529 |
6530 @override | 6530 @override |
6531 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; | 6531 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; |
6532 | 6532 |
6533 /** | 6533 /** |
6534 * Combinators contained in this import declaration. | 6534 * Combinators contained in this import declaration. |
6535 */ | 6535 */ |
6536 void set combinators(List<UnlinkedCombinatorBuilder> value) { | 6536 void set combinators(List<UnlinkedCombinatorBuilder> value) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6633 | 6633 |
6634 /** | 6634 /** |
6635 * Offset of the URI string (including quotes) relative to the beginning of | 6635 * Offset of the URI string (including quotes) relative to the beginning of |
6636 * the file. If [isImplicit] is true, zero. | 6636 * the file. If [isImplicit] is true, zero. |
6637 */ | 6637 */ |
6638 void set uriOffset(int value) { | 6638 void set uriOffset(int value) { |
6639 assert(value == null || value >= 0); | 6639 assert(value == null || value >= 0); |
6640 this._uriOffset = value; | 6640 this._uriOffset = value; |
6641 } | 6641 } |
6642 | 6642 |
6643 UnlinkedImportBuilder({List<UnlinkedConstBuilder> annotations, List<UnlinkedCo
mbinatorBuilder> combinators, List<UnlinkedConfigurationBuilder> configurations,
bool isDeferred, bool isImplicit, int offset, int prefixOffset, int prefixRefer
ence, String uri, int uriEnd, int uriOffset}) | 6643 UnlinkedImportBuilder({List<UnlinkedExprBuilder> annotations, List<UnlinkedCom
binatorBuilder> combinators, List<UnlinkedConfigurationBuilder> configurations,
bool isDeferred, bool isImplicit, int offset, int prefixOffset, int prefixRefere
nce, String uri, int uriEnd, int uriOffset}) |
6644 : _annotations = annotations, | 6644 : _annotations = annotations, |
6645 _combinators = combinators, | 6645 _combinators = combinators, |
6646 _configurations = configurations, | 6646 _configurations = configurations, |
6647 _isDeferred = isDeferred, | 6647 _isDeferred = isDeferred, |
6648 _isImplicit = isImplicit, | 6648 _isImplicit = isImplicit, |
6649 _offset = offset, | 6649 _offset = offset, |
6650 _prefixOffset = prefixOffset, | 6650 _prefixOffset = prefixOffset, |
6651 _prefixReference = prefixReference, | 6651 _prefixReference = prefixReference, |
6652 _uri = uri, | 6652 _uri = uri, |
6653 _uriEnd = uriEnd, | 6653 _uriEnd = uriEnd, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6761 @override | 6761 @override |
6762 _UnlinkedImportImpl createObject(fb.BufferContext bc, int offset) => new _Unli
nkedImportImpl(bc, offset); | 6762 _UnlinkedImportImpl createObject(fb.BufferContext bc, int offset) => new _Unli
nkedImportImpl(bc, offset); |
6763 } | 6763 } |
6764 | 6764 |
6765 class _UnlinkedImportImpl extends Object with _UnlinkedImportMixin implements id
l.UnlinkedImport { | 6765 class _UnlinkedImportImpl extends Object with _UnlinkedImportMixin implements id
l.UnlinkedImport { |
6766 final fb.BufferContext _bc; | 6766 final fb.BufferContext _bc; |
6767 final int _bcOffset; | 6767 final int _bcOffset; |
6768 | 6768 |
6769 _UnlinkedImportImpl(this._bc, this._bcOffset); | 6769 _UnlinkedImportImpl(this._bc, this._bcOffset); |
6770 | 6770 |
6771 List<idl.UnlinkedConst> _annotations; | 6771 List<idl.UnlinkedExpr> _annotations; |
6772 List<idl.UnlinkedCombinator> _combinators; | 6772 List<idl.UnlinkedCombinator> _combinators; |
6773 List<idl.UnlinkedConfiguration> _configurations; | 6773 List<idl.UnlinkedConfiguration> _configurations; |
6774 bool _isDeferred; | 6774 bool _isDeferred; |
6775 bool _isImplicit; | 6775 bool _isImplicit; |
6776 int _offset; | 6776 int _offset; |
6777 int _prefixOffset; | 6777 int _prefixOffset; |
6778 int _prefixReference; | 6778 int _prefixReference; |
6779 String _uri; | 6779 String _uri; |
6780 int _uriEnd; | 6780 int _uriEnd; |
6781 int _uriOffset; | 6781 int _uriOffset; |
6782 | 6782 |
6783 @override | 6783 @override |
6784 List<idl.UnlinkedConst> get annotations { | 6784 List<idl.UnlinkedExpr> get annotations { |
6785 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedConst>[]); | 6785 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedExpr>[]); |
6786 return _annotations; | 6786 return _annotations; |
6787 } | 6787 } |
6788 | 6788 |
6789 @override | 6789 @override |
6790 List<idl.UnlinkedCombinator> get combinators { | 6790 List<idl.UnlinkedCombinator> get combinators { |
6791 _combinators ??= const fb.ListReader<idl.UnlinkedCombinator>(const _Unlinked
CombinatorReader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedCombinator>[
]); | 6791 _combinators ??= const fb.ListReader<idl.UnlinkedCombinator>(const _Unlinked
CombinatorReader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedCombinator>[
]); |
6792 return _combinators; | 6792 return _combinators; |
6793 } | 6793 } |
6794 | 6794 |
6795 @override | 6795 @override |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7036 "isOnSwitchStatement": isOnSwitchStatement, | 7036 "isOnSwitchStatement": isOnSwitchStatement, |
7037 "name": name, | 7037 "name": name, |
7038 "nameOffset": nameOffset, | 7038 "nameOffset": nameOffset, |
7039 }; | 7039 }; |
7040 | 7040 |
7041 @override | 7041 @override |
7042 String toString() => convert.JSON.encode(toJson()); | 7042 String toString() => convert.JSON.encode(toJson()); |
7043 } | 7043 } |
7044 | 7044 |
7045 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { | 7045 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { |
7046 List<UnlinkedConstBuilder> _annotations; | 7046 List<UnlinkedExprBuilder> _annotations; |
7047 CodeRangeBuilder _codeRange; | 7047 CodeRangeBuilder _codeRange; |
7048 String _defaultValueCode; | 7048 String _defaultValueCode; |
7049 int _inferredTypeSlot; | 7049 int _inferredTypeSlot; |
7050 int _inheritsCovariantSlot; | 7050 int _inheritsCovariantSlot; |
7051 UnlinkedExecutableBuilder _initializer; | 7051 UnlinkedExecutableBuilder _initializer; |
7052 bool _isFunctionTyped; | 7052 bool _isFunctionTyped; |
7053 bool _isInitializingFormal; | 7053 bool _isInitializingFormal; |
7054 idl.UnlinkedParamKind _kind; | 7054 idl.UnlinkedParamKind _kind; |
7055 String _name; | 7055 String _name; |
7056 int _nameOffset; | 7056 int _nameOffset; |
7057 List<UnlinkedParamBuilder> _parameters; | 7057 List<UnlinkedParamBuilder> _parameters; |
7058 EntityRefBuilder _type; | 7058 EntityRefBuilder _type; |
7059 int _visibleLength; | 7059 int _visibleLength; |
7060 int _visibleOffset; | 7060 int _visibleOffset; |
7061 | 7061 |
7062 @override | 7062 @override |
7063 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 7063 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
7064 | 7064 |
7065 /** | 7065 /** |
7066 * Annotations for this parameter. | 7066 * Annotations for this parameter. |
7067 */ | 7067 */ |
7068 void set annotations(List<UnlinkedConstBuilder> value) { | 7068 void set annotations(List<UnlinkedExprBuilder> value) { |
7069 this._annotations = value; | 7069 this._annotations = value; |
7070 } | 7070 } |
7071 | 7071 |
7072 @override | 7072 @override |
7073 CodeRangeBuilder get codeRange => _codeRange; | 7073 CodeRangeBuilder get codeRange => _codeRange; |
7074 | 7074 |
7075 /** | 7075 /** |
7076 * Code range of the parameter. | 7076 * Code range of the parameter. |
7077 */ | 7077 */ |
7078 void set codeRange(CodeRangeBuilder value) { | 7078 void set codeRange(CodeRangeBuilder value) { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7225 int get visibleOffset => _visibleOffset ??= 0; | 7225 int get visibleOffset => _visibleOffset ??= 0; |
7226 | 7226 |
7227 /** | 7227 /** |
7228 * The beginning of the visible range. | 7228 * The beginning of the visible range. |
7229 */ | 7229 */ |
7230 void set visibleOffset(int value) { | 7230 void set visibleOffset(int value) { |
7231 assert(value == null || value >= 0); | 7231 assert(value == null || value >= 0); |
7232 this._visibleOffset = value; | 7232 this._visibleOffset = value; |
7233 } | 7233 } |
7234 | 7234 |
7235 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, String defaultValueCode, int inferredTypeSlot, int inheritsCovariant
Slot, UnlinkedExecutableBuilder initializer, bool isFunctionTyped, bool isInitia
lizingFormal, idl.UnlinkedParamKind kind, String name, int nameOffset, List<Unli
nkedParamBuilder> parameters, EntityRefBuilder type, int visibleLength, int visi
bleOffset}) | 7235 UnlinkedParamBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuilder
codeRange, String defaultValueCode, int inferredTypeSlot, int inheritsCovariantS
lot, UnlinkedExecutableBuilder initializer, bool isFunctionTyped, bool isInitial
izingFormal, idl.UnlinkedParamKind kind, String name, int nameOffset, List<Unlin
kedParamBuilder> parameters, EntityRefBuilder type, int visibleLength, int visib
leOffset}) |
7236 : _annotations = annotations, | 7236 : _annotations = annotations, |
7237 _codeRange = codeRange, | 7237 _codeRange = codeRange, |
7238 _defaultValueCode = defaultValueCode, | 7238 _defaultValueCode = defaultValueCode, |
7239 _inferredTypeSlot = inferredTypeSlot, | 7239 _inferredTypeSlot = inferredTypeSlot, |
7240 _inheritsCovariantSlot = inheritsCovariantSlot, | 7240 _inheritsCovariantSlot = inheritsCovariantSlot, |
7241 _initializer = initializer, | 7241 _initializer = initializer, |
7242 _isFunctionTyped = isFunctionTyped, | 7242 _isFunctionTyped = isFunctionTyped, |
7243 _isInitializingFormal = isInitializingFormal, | 7243 _isInitializingFormal = isInitializingFormal, |
7244 _kind = kind, | 7244 _kind = kind, |
7245 _name = name, | 7245 _name = name, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7381 @override | 7381 @override |
7382 _UnlinkedParamImpl createObject(fb.BufferContext bc, int offset) => new _Unlin
kedParamImpl(bc, offset); | 7382 _UnlinkedParamImpl createObject(fb.BufferContext bc, int offset) => new _Unlin
kedParamImpl(bc, offset); |
7383 } | 7383 } |
7384 | 7384 |
7385 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { | 7385 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { |
7386 final fb.BufferContext _bc; | 7386 final fb.BufferContext _bc; |
7387 final int _bcOffset; | 7387 final int _bcOffset; |
7388 | 7388 |
7389 _UnlinkedParamImpl(this._bc, this._bcOffset); | 7389 _UnlinkedParamImpl(this._bc, this._bcOffset); |
7390 | 7390 |
7391 List<idl.UnlinkedConst> _annotations; | 7391 List<idl.UnlinkedExpr> _annotations; |
7392 idl.CodeRange _codeRange; | 7392 idl.CodeRange _codeRange; |
7393 String _defaultValueCode; | 7393 String _defaultValueCode; |
7394 int _inferredTypeSlot; | 7394 int _inferredTypeSlot; |
7395 int _inheritsCovariantSlot; | 7395 int _inheritsCovariantSlot; |
7396 idl.UnlinkedExecutable _initializer; | 7396 idl.UnlinkedExecutable _initializer; |
7397 bool _isFunctionTyped; | 7397 bool _isFunctionTyped; |
7398 bool _isInitializingFormal; | 7398 bool _isInitializingFormal; |
7399 idl.UnlinkedParamKind _kind; | 7399 idl.UnlinkedParamKind _kind; |
7400 String _name; | 7400 String _name; |
7401 int _nameOffset; | 7401 int _nameOffset; |
7402 List<idl.UnlinkedParam> _parameters; | 7402 List<idl.UnlinkedParam> _parameters; |
7403 idl.EntityRef _type; | 7403 idl.EntityRef _type; |
7404 int _visibleLength; | 7404 int _visibleLength; |
7405 int _visibleOffset; | 7405 int _visibleOffset; |
7406 | 7406 |
7407 @override | 7407 @override |
7408 List<idl.UnlinkedConst> get annotations { | 7408 List<idl.UnlinkedExpr> get annotations { |
7409 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 9, const <idl.UnlinkedConst>[]); | 7409 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 9, const <idl.UnlinkedExpr>[]); |
7410 return _annotations; | 7410 return _annotations; |
7411 } | 7411 } |
7412 | 7412 |
7413 @override | 7413 @override |
7414 idl.CodeRange get codeRange { | 7414 idl.CodeRange get codeRange { |
7415 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 7, null); | 7415 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 7, null); |
7416 return _codeRange; | 7416 return _codeRange; |
7417 } | 7417 } |
7418 | 7418 |
7419 @override | 7419 @override |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7534 "type": type, | 7534 "type": type, |
7535 "visibleLength": visibleLength, | 7535 "visibleLength": visibleLength, |
7536 "visibleOffset": visibleOffset, | 7536 "visibleOffset": visibleOffset, |
7537 }; | 7537 }; |
7538 | 7538 |
7539 @override | 7539 @override |
7540 String toString() => convert.JSON.encode(toJson()); | 7540 String toString() => convert.JSON.encode(toJson()); |
7541 } | 7541 } |
7542 | 7542 |
7543 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { | 7543 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { |
7544 List<UnlinkedConstBuilder> _annotations; | 7544 List<UnlinkedExprBuilder> _annotations; |
7545 int _uriEnd; | 7545 int _uriEnd; |
7546 int _uriOffset; | 7546 int _uriOffset; |
7547 | 7547 |
7548 @override | 7548 @override |
7549 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 7549 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
7550 | 7550 |
7551 /** | 7551 /** |
7552 * Annotations for this part declaration. | 7552 * Annotations for this part declaration. |
7553 */ | 7553 */ |
7554 void set annotations(List<UnlinkedConstBuilder> value) { | 7554 void set annotations(List<UnlinkedExprBuilder> value) { |
7555 this._annotations = value; | 7555 this._annotations = value; |
7556 } | 7556 } |
7557 | 7557 |
7558 @override | 7558 @override |
7559 int get uriEnd => _uriEnd ??= 0; | 7559 int get uriEnd => _uriEnd ??= 0; |
7560 | 7560 |
7561 /** | 7561 /** |
7562 * End of the URI string (including quotes) relative to the beginning of the | 7562 * End of the URI string (including quotes) relative to the beginning of the |
7563 * file. | 7563 * file. |
7564 */ | 7564 */ |
7565 void set uriEnd(int value) { | 7565 void set uriEnd(int value) { |
7566 assert(value == null || value >= 0); | 7566 assert(value == null || value >= 0); |
7567 this._uriEnd = value; | 7567 this._uriEnd = value; |
7568 } | 7568 } |
7569 | 7569 |
7570 @override | 7570 @override |
7571 int get uriOffset => _uriOffset ??= 0; | 7571 int get uriOffset => _uriOffset ??= 0; |
7572 | 7572 |
7573 /** | 7573 /** |
7574 * Offset of the URI string (including quotes) relative to the beginning of | 7574 * Offset of the URI string (including quotes) relative to the beginning of |
7575 * the file. | 7575 * the file. |
7576 */ | 7576 */ |
7577 void set uriOffset(int value) { | 7577 void set uriOffset(int value) { |
7578 assert(value == null || value >= 0); | 7578 assert(value == null || value >= 0); |
7579 this._uriOffset = value; | 7579 this._uriOffset = value; |
7580 } | 7580 } |
7581 | 7581 |
7582 UnlinkedPartBuilder({List<UnlinkedConstBuilder> annotations, int uriEnd, int u
riOffset}) | 7582 UnlinkedPartBuilder({List<UnlinkedExprBuilder> annotations, int uriEnd, int ur
iOffset}) |
7583 : _annotations = annotations, | 7583 : _annotations = annotations, |
7584 _uriEnd = uriEnd, | 7584 _uriEnd = uriEnd, |
7585 _uriOffset = uriOffset; | 7585 _uriOffset = uriOffset; |
7586 | 7586 |
7587 /** | 7587 /** |
7588 * Flush [informative] data recursively. | 7588 * Flush [informative] data recursively. |
7589 */ | 7589 */ |
7590 void flushInformative() { | 7590 void flushInformative() { |
7591 _annotations?.forEach((b) => b.flushInformative()); | 7591 _annotations?.forEach((b) => b.flushInformative()); |
7592 _uriEnd = null; | 7592 _uriEnd = null; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7632 @override | 7632 @override |
7633 _UnlinkedPartImpl createObject(fb.BufferContext bc, int offset) => new _Unlink
edPartImpl(bc, offset); | 7633 _UnlinkedPartImpl createObject(fb.BufferContext bc, int offset) => new _Unlink
edPartImpl(bc, offset); |
7634 } | 7634 } |
7635 | 7635 |
7636 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements idl.Un
linkedPart { | 7636 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements idl.Un
linkedPart { |
7637 final fb.BufferContext _bc; | 7637 final fb.BufferContext _bc; |
7638 final int _bcOffset; | 7638 final int _bcOffset; |
7639 | 7639 |
7640 _UnlinkedPartImpl(this._bc, this._bcOffset); | 7640 _UnlinkedPartImpl(this._bc, this._bcOffset); |
7641 | 7641 |
7642 List<idl.UnlinkedConst> _annotations; | 7642 List<idl.UnlinkedExpr> _annotations; |
7643 int _uriEnd; | 7643 int _uriEnd; |
7644 int _uriOffset; | 7644 int _uriOffset; |
7645 | 7645 |
7646 @override | 7646 @override |
7647 List<idl.UnlinkedConst> get annotations { | 7647 List<idl.UnlinkedExpr> get annotations { |
7648 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 2, const <idl.UnlinkedConst>[]); | 7648 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 2, const <idl.UnlinkedExpr>[]); |
7649 return _annotations; | 7649 return _annotations; |
7650 } | 7650 } |
7651 | 7651 |
7652 @override | 7652 @override |
7653 int get uriEnd { | 7653 int get uriEnd { |
7654 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0); | 7654 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0); |
7655 return _uriEnd; | 7655 return _uriEnd; |
7656 } | 7656 } |
7657 | 7657 |
7658 @override | 7658 @override |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8141 Map<String, Object> toMap() => { | 8141 Map<String, Object> toMap() => { |
8142 "name": name, | 8142 "name": name, |
8143 "prefixReference": prefixReference, | 8143 "prefixReference": prefixReference, |
8144 }; | 8144 }; |
8145 | 8145 |
8146 @override | 8146 @override |
8147 String toString() => convert.JSON.encode(toJson()); | 8147 String toString() => convert.JSON.encode(toJson()); |
8148 } | 8148 } |
8149 | 8149 |
8150 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { | 8150 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { |
8151 List<UnlinkedConstBuilder> _annotations; | 8151 List<UnlinkedExprBuilder> _annotations; |
8152 CodeRangeBuilder _codeRange; | 8152 CodeRangeBuilder _codeRange; |
8153 UnlinkedDocumentationCommentBuilder _documentationComment; | 8153 UnlinkedDocumentationCommentBuilder _documentationComment; |
8154 String _name; | 8154 String _name; |
8155 int _nameOffset; | 8155 int _nameOffset; |
8156 List<UnlinkedParamBuilder> _parameters; | 8156 List<UnlinkedParamBuilder> _parameters; |
8157 EntityRefBuilder _returnType; | 8157 EntityRefBuilder _returnType; |
8158 List<UnlinkedTypeParamBuilder> _typeParameters; | 8158 List<UnlinkedTypeParamBuilder> _typeParameters; |
8159 | 8159 |
8160 @override | 8160 @override |
8161 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 8161 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
8162 | 8162 |
8163 /** | 8163 /** |
8164 * Annotations for this typedef. | 8164 * Annotations for this typedef. |
8165 */ | 8165 */ |
8166 void set annotations(List<UnlinkedConstBuilder> value) { | 8166 void set annotations(List<UnlinkedExprBuilder> value) { |
8167 this._annotations = value; | 8167 this._annotations = value; |
8168 } | 8168 } |
8169 | 8169 |
8170 @override | 8170 @override |
8171 CodeRangeBuilder get codeRange => _codeRange; | 8171 CodeRangeBuilder get codeRange => _codeRange; |
8172 | 8172 |
8173 /** | 8173 /** |
8174 * Code range of the typedef. | 8174 * Code range of the typedef. |
8175 */ | 8175 */ |
8176 void set codeRange(CodeRangeBuilder value) { | 8176 void set codeRange(CodeRangeBuilder value) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8232 @override | 8232 @override |
8233 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 8233 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
8234 | 8234 |
8235 /** | 8235 /** |
8236 * Type parameters of the typedef, if any. | 8236 * Type parameters of the typedef, if any. |
8237 */ | 8237 */ |
8238 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { | 8238 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
8239 this._typeParameters = value; | 8239 this._typeParameters = value; |
8240 } | 8240 } |
8241 | 8241 |
8242 UnlinkedTypedefBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String n
ame, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder ret
urnType, List<UnlinkedTypeParamBuilder> typeParameters}) | 8242 UnlinkedTypedefBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuilde
r codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String na
me, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder retu
rnType, List<UnlinkedTypeParamBuilder> typeParameters}) |
8243 : _annotations = annotations, | 8243 : _annotations = annotations, |
8244 _codeRange = codeRange, | 8244 _codeRange = codeRange, |
8245 _documentationComment = documentationComment, | 8245 _documentationComment = documentationComment, |
8246 _name = name, | 8246 _name = name, |
8247 _nameOffset = nameOffset, | 8247 _nameOffset = nameOffset, |
8248 _parameters = parameters, | 8248 _parameters = parameters, |
8249 _returnType = returnType, | 8249 _returnType = returnType, |
8250 _typeParameters = typeParameters; | 8250 _typeParameters = typeParameters; |
8251 | 8251 |
8252 /** | 8252 /** |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8359 @override | 8359 @override |
8360 _UnlinkedTypedefImpl createObject(fb.BufferContext bc, int offset) => new _Unl
inkedTypedefImpl(bc, offset); | 8360 _UnlinkedTypedefImpl createObject(fb.BufferContext bc, int offset) => new _Unl
inkedTypedefImpl(bc, offset); |
8361 } | 8361 } |
8362 | 8362 |
8363 class _UnlinkedTypedefImpl extends Object with _UnlinkedTypedefMixin implements
idl.UnlinkedTypedef { | 8363 class _UnlinkedTypedefImpl extends Object with _UnlinkedTypedefMixin implements
idl.UnlinkedTypedef { |
8364 final fb.BufferContext _bc; | 8364 final fb.BufferContext _bc; |
8365 final int _bcOffset; | 8365 final int _bcOffset; |
8366 | 8366 |
8367 _UnlinkedTypedefImpl(this._bc, this._bcOffset); | 8367 _UnlinkedTypedefImpl(this._bc, this._bcOffset); |
8368 | 8368 |
8369 List<idl.UnlinkedConst> _annotations; | 8369 List<idl.UnlinkedExpr> _annotations; |
8370 idl.CodeRange _codeRange; | 8370 idl.CodeRange _codeRange; |
8371 idl.UnlinkedDocumentationComment _documentationComment; | 8371 idl.UnlinkedDocumentationComment _documentationComment; |
8372 String _name; | 8372 String _name; |
8373 int _nameOffset; | 8373 int _nameOffset; |
8374 List<idl.UnlinkedParam> _parameters; | 8374 List<idl.UnlinkedParam> _parameters; |
8375 idl.EntityRef _returnType; | 8375 idl.EntityRef _returnType; |
8376 List<idl.UnlinkedTypeParam> _typeParameters; | 8376 List<idl.UnlinkedTypeParam> _typeParameters; |
8377 | 8377 |
8378 @override | 8378 @override |
8379 List<idl.UnlinkedConst> get annotations { | 8379 List<idl.UnlinkedExpr> get annotations { |
8380 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedConst>[]); | 8380 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 4, const <idl.UnlinkedExpr>[]); |
8381 return _annotations; | 8381 return _annotations; |
8382 } | 8382 } |
8383 | 8383 |
8384 @override | 8384 @override |
8385 idl.CodeRange get codeRange { | 8385 idl.CodeRange get codeRange { |
8386 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 7, null); | 8386 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 7, null); |
8387 return _codeRange; | 8387 return _codeRange; |
8388 } | 8388 } |
8389 | 8389 |
8390 @override | 8390 @override |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8449 "parameters": parameters, | 8449 "parameters": parameters, |
8450 "returnType": returnType, | 8450 "returnType": returnType, |
8451 "typeParameters": typeParameters, | 8451 "typeParameters": typeParameters, |
8452 }; | 8452 }; |
8453 | 8453 |
8454 @override | 8454 @override |
8455 String toString() => convert.JSON.encode(toJson()); | 8455 String toString() => convert.JSON.encode(toJson()); |
8456 } | 8456 } |
8457 | 8457 |
8458 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { | 8458 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { |
8459 List<UnlinkedConstBuilder> _annotations; | 8459 List<UnlinkedExprBuilder> _annotations; |
8460 EntityRefBuilder _bound; | 8460 EntityRefBuilder _bound; |
8461 CodeRangeBuilder _codeRange; | 8461 CodeRangeBuilder _codeRange; |
8462 String _name; | 8462 String _name; |
8463 int _nameOffset; | 8463 int _nameOffset; |
8464 | 8464 |
8465 @override | 8465 @override |
8466 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 8466 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
8467 | 8467 |
8468 /** | 8468 /** |
8469 * Annotations for this type parameter. | 8469 * Annotations for this type parameter. |
8470 */ | 8470 */ |
8471 void set annotations(List<UnlinkedConstBuilder> value) { | 8471 void set annotations(List<UnlinkedExprBuilder> value) { |
8472 this._annotations = value; | 8472 this._annotations = value; |
8473 } | 8473 } |
8474 | 8474 |
8475 @override | 8475 @override |
8476 EntityRefBuilder get bound => _bound; | 8476 EntityRefBuilder get bound => _bound; |
8477 | 8477 |
8478 /** | 8478 /** |
8479 * Bound of the type parameter, if a bound is explicitly declared. Otherwise | 8479 * Bound of the type parameter, if a bound is explicitly declared. Otherwise |
8480 * null. | 8480 * null. |
8481 */ | 8481 */ |
(...skipping 25 matching lines...) Expand all Loading... |
8507 int get nameOffset => _nameOffset ??= 0; | 8507 int get nameOffset => _nameOffset ??= 0; |
8508 | 8508 |
8509 /** | 8509 /** |
8510 * Offset of the type parameter name relative to the beginning of the file. | 8510 * Offset of the type parameter name relative to the beginning of the file. |
8511 */ | 8511 */ |
8512 void set nameOffset(int value) { | 8512 void set nameOffset(int value) { |
8513 assert(value == null || value >= 0); | 8513 assert(value == null || value >= 0); |
8514 this._nameOffset = value; | 8514 this._nameOffset = value; |
8515 } | 8515 } |
8516 | 8516 |
8517 UnlinkedTypeParamBuilder({List<UnlinkedConstBuilder> annotations, EntityRefBui
lder bound, CodeRangeBuilder codeRange, String name, int nameOffset}) | 8517 UnlinkedTypeParamBuilder({List<UnlinkedExprBuilder> annotations, EntityRefBuil
der bound, CodeRangeBuilder codeRange, String name, int nameOffset}) |
8518 : _annotations = annotations, | 8518 : _annotations = annotations, |
8519 _bound = bound, | 8519 _bound = bound, |
8520 _codeRange = codeRange, | 8520 _codeRange = codeRange, |
8521 _name = name, | 8521 _name = name, |
8522 _nameOffset = nameOffset; | 8522 _nameOffset = nameOffset; |
8523 | 8523 |
8524 /** | 8524 /** |
8525 * Flush [informative] data recursively. | 8525 * Flush [informative] data recursively. |
8526 */ | 8526 */ |
8527 void flushInformative() { | 8527 void flushInformative() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8591 @override | 8591 @override |
8592 _UnlinkedTypeParamImpl createObject(fb.BufferContext bc, int offset) => new _U
nlinkedTypeParamImpl(bc, offset); | 8592 _UnlinkedTypeParamImpl createObject(fb.BufferContext bc, int offset) => new _U
nlinkedTypeParamImpl(bc, offset); |
8593 } | 8593 } |
8594 | 8594 |
8595 class _UnlinkedTypeParamImpl extends Object with _UnlinkedTypeParamMixin impleme
nts idl.UnlinkedTypeParam { | 8595 class _UnlinkedTypeParamImpl extends Object with _UnlinkedTypeParamMixin impleme
nts idl.UnlinkedTypeParam { |
8596 final fb.BufferContext _bc; | 8596 final fb.BufferContext _bc; |
8597 final int _bcOffset; | 8597 final int _bcOffset; |
8598 | 8598 |
8599 _UnlinkedTypeParamImpl(this._bc, this._bcOffset); | 8599 _UnlinkedTypeParamImpl(this._bc, this._bcOffset); |
8600 | 8600 |
8601 List<idl.UnlinkedConst> _annotations; | 8601 List<idl.UnlinkedExpr> _annotations; |
8602 idl.EntityRef _bound; | 8602 idl.EntityRef _bound; |
8603 idl.CodeRange _codeRange; | 8603 idl.CodeRange _codeRange; |
8604 String _name; | 8604 String _name; |
8605 int _nameOffset; | 8605 int _nameOffset; |
8606 | 8606 |
8607 @override | 8607 @override |
8608 List<idl.UnlinkedConst> get annotations { | 8608 List<idl.UnlinkedExpr> get annotations { |
8609 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedConst>[]); | 8609 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedExpr>[]); |
8610 return _annotations; | 8610 return _annotations; |
8611 } | 8611 } |
8612 | 8612 |
8613 @override | 8613 @override |
8614 idl.EntityRef get bound { | 8614 idl.EntityRef get bound { |
8615 _bound ??= const _EntityRefReader().vTableGet(_bc, _bcOffset, 2, null); | 8615 _bound ??= const _EntityRefReader().vTableGet(_bc, _bcOffset, 2, null); |
8616 return _bound; | 8616 return _bound; |
8617 } | 8617 } |
8618 | 8618 |
8619 @override | 8619 @override |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8663 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { | 8663 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { |
8664 List<int> _apiSignature; | 8664 List<int> _apiSignature; |
8665 List<UnlinkedClassBuilder> _classes; | 8665 List<UnlinkedClassBuilder> _classes; |
8666 CodeRangeBuilder _codeRange; | 8666 CodeRangeBuilder _codeRange; |
8667 List<UnlinkedEnumBuilder> _enums; | 8667 List<UnlinkedEnumBuilder> _enums; |
8668 List<UnlinkedExecutableBuilder> _executables; | 8668 List<UnlinkedExecutableBuilder> _executables; |
8669 List<UnlinkedExportNonPublicBuilder> _exports; | 8669 List<UnlinkedExportNonPublicBuilder> _exports; |
8670 String _fallbackModePath; | 8670 String _fallbackModePath; |
8671 List<UnlinkedImportBuilder> _imports; | 8671 List<UnlinkedImportBuilder> _imports; |
8672 bool _isPartOf; | 8672 bool _isPartOf; |
8673 List<UnlinkedConstBuilder> _libraryAnnotations; | 8673 List<UnlinkedExprBuilder> _libraryAnnotations; |
8674 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; | 8674 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; |
8675 String _libraryName; | 8675 String _libraryName; |
8676 int _libraryNameLength; | 8676 int _libraryNameLength; |
8677 int _libraryNameOffset; | 8677 int _libraryNameOffset; |
8678 List<int> _lineStarts; | 8678 List<int> _lineStarts; |
8679 List<UnlinkedPartBuilder> _parts; | 8679 List<UnlinkedPartBuilder> _parts; |
8680 UnlinkedPublicNamespaceBuilder _publicNamespace; | 8680 UnlinkedPublicNamespaceBuilder _publicNamespace; |
8681 List<UnlinkedReferenceBuilder> _references; | 8681 List<UnlinkedReferenceBuilder> _references; |
8682 List<UnlinkedTypedefBuilder> _typedefs; | 8682 List<UnlinkedTypedefBuilder> _typedefs; |
8683 List<UnlinkedVariableBuilder> _variables; | 8683 List<UnlinkedVariableBuilder> _variables; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8774 bool get isPartOf => _isPartOf ??= false; | 8774 bool get isPartOf => _isPartOf ??= false; |
8775 | 8775 |
8776 /** | 8776 /** |
8777 * Indicates whether the unit contains a "part of" declaration. | 8777 * Indicates whether the unit contains a "part of" declaration. |
8778 */ | 8778 */ |
8779 void set isPartOf(bool value) { | 8779 void set isPartOf(bool value) { |
8780 this._isPartOf = value; | 8780 this._isPartOf = value; |
8781 } | 8781 } |
8782 | 8782 |
8783 @override | 8783 @override |
8784 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= <
UnlinkedConstBuilder>[]; | 8784 List<UnlinkedExprBuilder> get libraryAnnotations => _libraryAnnotations ??= <U
nlinkedExprBuilder>[]; |
8785 | 8785 |
8786 /** | 8786 /** |
8787 * Annotations for the library declaration, or the empty list if there is no | 8787 * Annotations for the library declaration, or the empty list if there is no |
8788 * library declaration. | 8788 * library declaration. |
8789 */ | 8789 */ |
8790 void set libraryAnnotations(List<UnlinkedConstBuilder> value) { | 8790 void set libraryAnnotations(List<UnlinkedExprBuilder> value) { |
8791 this._libraryAnnotations = value; | 8791 this._libraryAnnotations = value; |
8792 } | 8792 } |
8793 | 8793 |
8794 @override | 8794 @override |
8795 UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _librar
yDocumentationComment; | 8795 UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _librar
yDocumentationComment; |
8796 | 8796 |
8797 /** | 8797 /** |
8798 * Documentation comment for the library, or `null` if there is no | 8798 * Documentation comment for the library, or `null` if there is no |
8799 * documentation comment. | 8799 * documentation comment. |
8800 */ | 8800 */ |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8894 @override | 8894 @override |
8895 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; | 8895 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; |
8896 | 8896 |
8897 /** | 8897 /** |
8898 * Top level variables declared in the compilation unit. | 8898 * Top level variables declared in the compilation unit. |
8899 */ | 8899 */ |
8900 void set variables(List<UnlinkedVariableBuilder> value) { | 8900 void set variables(List<UnlinkedVariableBuilder> value) { |
8901 this._variables = value; | 8901 this._variables = value; |
8902 } | 8902 } |
8903 | 8903 |
8904 UnlinkedUnitBuilder({List<int> apiSignature, List<UnlinkedClassBuilder> classe
s, CodeRangeBuilder codeRange, List<UnlinkedEnumBuilder> enums, List<UnlinkedExe
cutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> exports, Strin
g fallbackModePath, List<UnlinkedImportBuilder> imports, bool isPartOf, List<Unl
inkedConstBuilder> libraryAnnotations, UnlinkedDocumentationCommentBuilder libra
ryDocumentationComment, String libraryName, int libraryNameLength, int libraryNa
meOffset, List<int> lineStarts, List<UnlinkedPartBuilder> parts, UnlinkedPublicN
amespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> references, List
<UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) | 8904 UnlinkedUnitBuilder({List<int> apiSignature, List<UnlinkedClassBuilder> classe
s, CodeRangeBuilder codeRange, List<UnlinkedEnumBuilder> enums, List<UnlinkedExe
cutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> exports, Strin
g fallbackModePath, List<UnlinkedImportBuilder> imports, bool isPartOf, List<Unl
inkedExprBuilder> libraryAnnotations, UnlinkedDocumentationCommentBuilder librar
yDocumentationComment, String libraryName, int libraryNameLength, int libraryNam
eOffset, List<int> lineStarts, List<UnlinkedPartBuilder> parts, UnlinkedPublicNa
mespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> references, List<
UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) |
8905 : _apiSignature = apiSignature, | 8905 : _apiSignature = apiSignature, |
8906 _classes = classes, | 8906 _classes = classes, |
8907 _codeRange = codeRange, | 8907 _codeRange = codeRange, |
8908 _enums = enums, | 8908 _enums = enums, |
8909 _executables = executables, | 8909 _executables = executables, |
8910 _exports = exports, | 8910 _exports = exports, |
8911 _fallbackModePath = fallbackModePath, | 8911 _fallbackModePath = fallbackModePath, |
8912 _imports = imports, | 8912 _imports = imports, |
8913 _isPartOf = isPartOf, | 8913 _isPartOf = isPartOf, |
8914 _libraryAnnotations = libraryAnnotations, | 8914 _libraryAnnotations = libraryAnnotations, |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9203 | 9203 |
9204 List<int> _apiSignature; | 9204 List<int> _apiSignature; |
9205 List<idl.UnlinkedClass> _classes; | 9205 List<idl.UnlinkedClass> _classes; |
9206 idl.CodeRange _codeRange; | 9206 idl.CodeRange _codeRange; |
9207 List<idl.UnlinkedEnum> _enums; | 9207 List<idl.UnlinkedEnum> _enums; |
9208 List<idl.UnlinkedExecutable> _executables; | 9208 List<idl.UnlinkedExecutable> _executables; |
9209 List<idl.UnlinkedExportNonPublic> _exports; | 9209 List<idl.UnlinkedExportNonPublic> _exports; |
9210 String _fallbackModePath; | 9210 String _fallbackModePath; |
9211 List<idl.UnlinkedImport> _imports; | 9211 List<idl.UnlinkedImport> _imports; |
9212 bool _isPartOf; | 9212 bool _isPartOf; |
9213 List<idl.UnlinkedConst> _libraryAnnotations; | 9213 List<idl.UnlinkedExpr> _libraryAnnotations; |
9214 idl.UnlinkedDocumentationComment _libraryDocumentationComment; | 9214 idl.UnlinkedDocumentationComment _libraryDocumentationComment; |
9215 String _libraryName; | 9215 String _libraryName; |
9216 int _libraryNameLength; | 9216 int _libraryNameLength; |
9217 int _libraryNameOffset; | 9217 int _libraryNameOffset; |
9218 List<int> _lineStarts; | 9218 List<int> _lineStarts; |
9219 List<idl.UnlinkedPart> _parts; | 9219 List<idl.UnlinkedPart> _parts; |
9220 idl.UnlinkedPublicNamespace _publicNamespace; | 9220 idl.UnlinkedPublicNamespace _publicNamespace; |
9221 List<idl.UnlinkedReference> _references; | 9221 List<idl.UnlinkedReference> _references; |
9222 List<idl.UnlinkedTypedef> _typedefs; | 9222 List<idl.UnlinkedTypedef> _typedefs; |
9223 List<idl.UnlinkedVariable> _variables; | 9223 List<idl.UnlinkedVariable> _variables; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9270 return _imports; | 9270 return _imports; |
9271 } | 9271 } |
9272 | 9272 |
9273 @override | 9273 @override |
9274 bool get isPartOf { | 9274 bool get isPartOf { |
9275 _isPartOf ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 18, false); | 9275 _isPartOf ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 18, false); |
9276 return _isPartOf; | 9276 return _isPartOf; |
9277 } | 9277 } |
9278 | 9278 |
9279 @override | 9279 @override |
9280 List<idl.UnlinkedConst> get libraryAnnotations { | 9280 List<idl.UnlinkedExpr> get libraryAnnotations { |
9281 _libraryAnnotations ??= const fb.ListReader<idl.UnlinkedConst>(const _Unlink
edConstReader()).vTableGet(_bc, _bcOffset, 14, const <idl.UnlinkedConst>[]); | 9281 _libraryAnnotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _Unlinke
dExprReader()).vTableGet(_bc, _bcOffset, 14, const <idl.UnlinkedExpr>[]); |
9282 return _libraryAnnotations; | 9282 return _libraryAnnotations; |
9283 } | 9283 } |
9284 | 9284 |
9285 @override | 9285 @override |
9286 idl.UnlinkedDocumentationComment get libraryDocumentationComment { | 9286 idl.UnlinkedDocumentationComment get libraryDocumentationComment { |
9287 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader()
.vTableGet(_bc, _bcOffset, 9, null); | 9287 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader()
.vTableGet(_bc, _bcOffset, 9, null); |
9288 return _libraryDocumentationComment; | 9288 return _libraryDocumentationComment; |
9289 } | 9289 } |
9290 | 9290 |
9291 @override | 9291 @override |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9392 "references": references, | 9392 "references": references, |
9393 "typedefs": typedefs, | 9393 "typedefs": typedefs, |
9394 "variables": variables, | 9394 "variables": variables, |
9395 }; | 9395 }; |
9396 | 9396 |
9397 @override | 9397 @override |
9398 String toString() => convert.JSON.encode(toJson()); | 9398 String toString() => convert.JSON.encode(toJson()); |
9399 } | 9399 } |
9400 | 9400 |
9401 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { | 9401 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { |
9402 List<UnlinkedConstBuilder> _annotations; | 9402 List<UnlinkedExprBuilder> _annotations; |
9403 CodeRangeBuilder _codeRange; | 9403 CodeRangeBuilder _codeRange; |
9404 UnlinkedDocumentationCommentBuilder _documentationComment; | 9404 UnlinkedDocumentationCommentBuilder _documentationComment; |
9405 int _inferredTypeSlot; | 9405 int _inferredTypeSlot; |
9406 UnlinkedExecutableBuilder _initializer; | 9406 UnlinkedExecutableBuilder _initializer; |
9407 bool _isConst; | 9407 bool _isConst; |
9408 bool _isFinal; | 9408 bool _isFinal; |
9409 bool _isStatic; | 9409 bool _isStatic; |
9410 String _name; | 9410 String _name; |
9411 int _nameOffset; | 9411 int _nameOffset; |
9412 int _propagatedTypeSlot; | 9412 int _propagatedTypeSlot; |
9413 EntityRefBuilder _type; | 9413 EntityRefBuilder _type; |
9414 int _visibleLength; | 9414 int _visibleLength; |
9415 int _visibleOffset; | 9415 int _visibleOffset; |
9416 | 9416 |
9417 @override | 9417 @override |
9418 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 9418 List<UnlinkedExprBuilder> get annotations => _annotations ??= <UnlinkedExprBui
lder>[]; |
9419 | 9419 |
9420 /** | 9420 /** |
9421 * Annotations for this variable. | 9421 * Annotations for this variable. |
9422 */ | 9422 */ |
9423 void set annotations(List<UnlinkedConstBuilder> value) { | 9423 void set annotations(List<UnlinkedExprBuilder> value) { |
9424 this._annotations = value; | 9424 this._annotations = value; |
9425 } | 9425 } |
9426 | 9426 |
9427 @override | 9427 @override |
9428 CodeRangeBuilder get codeRange => _codeRange; | 9428 CodeRangeBuilder get codeRange => _codeRange; |
9429 | 9429 |
9430 /** | 9430 /** |
9431 * Code range of the variable. | 9431 * Code range of the variable. |
9432 */ | 9432 */ |
9433 void set codeRange(CodeRangeBuilder value) { | 9433 void set codeRange(CodeRangeBuilder value) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9566 int get visibleOffset => _visibleOffset ??= 0; | 9566 int get visibleOffset => _visibleOffset ??= 0; |
9567 | 9567 |
9568 /** | 9568 /** |
9569 * If a local variable, the beginning of the visible range; zero otherwise. | 9569 * If a local variable, the beginning of the visible range; zero otherwise. |
9570 */ | 9570 */ |
9571 void set visibleOffset(int value) { | 9571 void set visibleOffset(int value) { |
9572 assert(value == null || value >= 0); | 9572 assert(value == null || value >= 0); |
9573 this._visibleOffset = value; | 9573 this._visibleOffset = value; |
9574 } | 9574 } |
9575 | 9575 |
9576 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuil
der codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int inf
erredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isFinal
, bool isStatic, String name, int nameOffset, int propagatedTypeSlot, EntityRefB
uilder type, int visibleLength, int visibleOffset}) | 9576 UnlinkedVariableBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int infe
rredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isFinal,
bool isStatic, String name, int nameOffset, int propagatedTypeSlot, EntityRefBu
ilder type, int visibleLength, int visibleOffset}) |
9577 : _annotations = annotations, | 9577 : _annotations = annotations, |
9578 _codeRange = codeRange, | 9578 _codeRange = codeRange, |
9579 _documentationComment = documentationComment, | 9579 _documentationComment = documentationComment, |
9580 _inferredTypeSlot = inferredTypeSlot, | 9580 _inferredTypeSlot = inferredTypeSlot, |
9581 _initializer = initializer, | 9581 _initializer = initializer, |
9582 _isConst = isConst, | 9582 _isConst = isConst, |
9583 _isFinal = isFinal, | 9583 _isFinal = isFinal, |
9584 _isStatic = isStatic, | 9584 _isStatic = isStatic, |
9585 _name = name, | 9585 _name = name, |
9586 _nameOffset = nameOffset, | 9586 _nameOffset = nameOffset, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9705 @override | 9705 @override |
9706 _UnlinkedVariableImpl createObject(fb.BufferContext bc, int offset) => new _Un
linkedVariableImpl(bc, offset); | 9706 _UnlinkedVariableImpl createObject(fb.BufferContext bc, int offset) => new _Un
linkedVariableImpl(bc, offset); |
9707 } | 9707 } |
9708 | 9708 |
9709 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { | 9709 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { |
9710 final fb.BufferContext _bc; | 9710 final fb.BufferContext _bc; |
9711 final int _bcOffset; | 9711 final int _bcOffset; |
9712 | 9712 |
9713 _UnlinkedVariableImpl(this._bc, this._bcOffset); | 9713 _UnlinkedVariableImpl(this._bc, this._bcOffset); |
9714 | 9714 |
9715 List<idl.UnlinkedConst> _annotations; | 9715 List<idl.UnlinkedExpr> _annotations; |
9716 idl.CodeRange _codeRange; | 9716 idl.CodeRange _codeRange; |
9717 idl.UnlinkedDocumentationComment _documentationComment; | 9717 idl.UnlinkedDocumentationComment _documentationComment; |
9718 int _inferredTypeSlot; | 9718 int _inferredTypeSlot; |
9719 idl.UnlinkedExecutable _initializer; | 9719 idl.UnlinkedExecutable _initializer; |
9720 bool _isConst; | 9720 bool _isConst; |
9721 bool _isFinal; | 9721 bool _isFinal; |
9722 bool _isStatic; | 9722 bool _isStatic; |
9723 String _name; | 9723 String _name; |
9724 int _nameOffset; | 9724 int _nameOffset; |
9725 int _propagatedTypeSlot; | 9725 int _propagatedTypeSlot; |
9726 idl.EntityRef _type; | 9726 idl.EntityRef _type; |
9727 int _visibleLength; | 9727 int _visibleLength; |
9728 int _visibleOffset; | 9728 int _visibleOffset; |
9729 | 9729 |
9730 @override | 9730 @override |
9731 List<idl.UnlinkedConst> get annotations { | 9731 List<idl.UnlinkedExpr> get annotations { |
9732 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedConst>[]); | 9732 _annotations ??= const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprRe
ader()).vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedExpr>[]); |
9733 return _annotations; | 9733 return _annotations; |
9734 } | 9734 } |
9735 | 9735 |
9736 @override | 9736 @override |
9737 idl.CodeRange get codeRange { | 9737 idl.CodeRange get codeRange { |
9738 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 5, null); | 9738 _codeRange ??= const _CodeRangeReader().vTableGet(_bc, _bcOffset, 5, null); |
9739 return _codeRange; | 9739 return _codeRange; |
9740 } | 9740 } |
9741 | 9741 |
9742 @override | 9742 @override |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9848 "propagatedTypeSlot": propagatedTypeSlot, | 9848 "propagatedTypeSlot": propagatedTypeSlot, |
9849 "type": type, | 9849 "type": type, |
9850 "visibleLength": visibleLength, | 9850 "visibleLength": visibleLength, |
9851 "visibleOffset": visibleOffset, | 9851 "visibleOffset": visibleOffset, |
9852 }; | 9852 }; |
9853 | 9853 |
9854 @override | 9854 @override |
9855 String toString() => convert.JSON.encode(toJson()); | 9855 String toString() => convert.JSON.encode(toJson()); |
9856 } | 9856 } |
9857 | 9857 |
OLD | NEW |