| 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 3567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3578 "uriOffset": uriOffset, | 3578 "uriOffset": uriOffset, |
| 3579 }; | 3579 }; |
| 3580 } | 3580 } |
| 3581 | 3581 |
| 3582 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { | 3582 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { |
| 3583 bool _finished = false; | 3583 bool _finished = false; |
| 3584 | 3584 |
| 3585 List<UnlinkedConstBuilder> _annotations; | 3585 List<UnlinkedConstBuilder> _annotations; |
| 3586 UnlinkedConstBuilder _defaultValue; | 3586 UnlinkedConstBuilder _defaultValue; |
| 3587 int _inferredTypeSlot; | 3587 int _inferredTypeSlot; |
| 3588 UnlinkedExecutableBuilder _initializer; |
| 3588 bool _isFunctionTyped; | 3589 bool _isFunctionTyped; |
| 3589 bool _isInitializingFormal; | 3590 bool _isInitializingFormal; |
| 3590 idl.UnlinkedParamKind _kind; | 3591 idl.UnlinkedParamKind _kind; |
| 3591 String _name; | 3592 String _name; |
| 3592 int _nameOffset; | 3593 int _nameOffset; |
| 3593 List<UnlinkedParamBuilder> _parameters; | 3594 List<UnlinkedParamBuilder> _parameters; |
| 3594 EntityRefBuilder _type; | 3595 EntityRefBuilder _type; |
| 3595 int _visibleLength; | 3596 int _visibleLength; |
| 3596 int _visibleOffset; | 3597 int _visibleOffset; |
| 3597 | 3598 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3633 * not specified, they always inherit the static type of the corresponding | 3634 * not specified, they always inherit the static type of the corresponding |
| 3634 * field. | 3635 * field. |
| 3635 */ | 3636 */ |
| 3636 void set inferredTypeSlot(int _value) { | 3637 void set inferredTypeSlot(int _value) { |
| 3637 assert(!_finished); | 3638 assert(!_finished); |
| 3638 assert(_value == null || _value >= 0); | 3639 assert(_value == null || _value >= 0); |
| 3639 _inferredTypeSlot = _value; | 3640 _inferredTypeSlot = _value; |
| 3640 } | 3641 } |
| 3641 | 3642 |
| 3642 @override | 3643 @override |
| 3644 UnlinkedExecutableBuilder get initializer => _initializer; |
| 3645 |
| 3646 /** |
| 3647 * The synthetic initializer function of the parameter. Absent if the variabl
e |
| 3648 * does not have an initializer. |
| 3649 */ |
| 3650 void set initializer(UnlinkedExecutableBuilder _value) { |
| 3651 assert(!_finished); |
| 3652 _initializer = _value; |
| 3653 } |
| 3654 |
| 3655 @override |
| 3643 bool get isFunctionTyped => _isFunctionTyped ??= false; | 3656 bool get isFunctionTyped => _isFunctionTyped ??= false; |
| 3644 | 3657 |
| 3645 /** | 3658 /** |
| 3646 * Indicates whether this is a function-typed parameter. | 3659 * Indicates whether this is a function-typed parameter. |
| 3647 */ | 3660 */ |
| 3648 void set isFunctionTyped(bool _value) { | 3661 void set isFunctionTyped(bool _value) { |
| 3649 assert(!_finished); | 3662 assert(!_finished); |
| 3650 _isFunctionTyped = _value; | 3663 _isFunctionTyped = _value; |
| 3651 } | 3664 } |
| 3652 | 3665 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3737 | 3750 |
| 3738 /** | 3751 /** |
| 3739 * The beginning of the visible range. | 3752 * The beginning of the visible range. |
| 3740 */ | 3753 */ |
| 3741 void set visibleOffset(int _value) { | 3754 void set visibleOffset(int _value) { |
| 3742 assert(!_finished); | 3755 assert(!_finished); |
| 3743 assert(_value == null || _value >= 0); | 3756 assert(_value == null || _value >= 0); |
| 3744 _visibleOffset = _value; | 3757 _visibleOffset = _value; |
| 3745 } | 3758 } |
| 3746 | 3759 |
| 3747 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConstBui
lder defaultValue, int inferredTypeSlot, bool isFunctionTyped, bool isInitializi
ngFormal, idl.UnlinkedParamKind kind, String name, int nameOffset, List<Unlinked
ParamBuilder> parameters, EntityRefBuilder type, int visibleLength, int visibleO
ffset}) | 3760 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConstBui
lder defaultValue, int inferredTypeSlot, UnlinkedExecutableBuilder initializer,
bool isFunctionTyped, bool isInitializingFormal, idl.UnlinkedParamKind kind, Str
ing name, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilde
r type, int visibleLength, int visibleOffset}) |
| 3748 : _annotations = annotations, | 3761 : _annotations = annotations, |
| 3749 _defaultValue = defaultValue, | 3762 _defaultValue = defaultValue, |
| 3750 _inferredTypeSlot = inferredTypeSlot, | 3763 _inferredTypeSlot = inferredTypeSlot, |
| 3764 _initializer = initializer, |
| 3751 _isFunctionTyped = isFunctionTyped, | 3765 _isFunctionTyped = isFunctionTyped, |
| 3752 _isInitializingFormal = isInitializingFormal, | 3766 _isInitializingFormal = isInitializingFormal, |
| 3753 _kind = kind, | 3767 _kind = kind, |
| 3754 _name = name, | 3768 _name = name, |
| 3755 _nameOffset = nameOffset, | 3769 _nameOffset = nameOffset, |
| 3756 _parameters = parameters, | 3770 _parameters = parameters, |
| 3757 _type = type, | 3771 _type = type, |
| 3758 _visibleLength = visibleLength, | 3772 _visibleLength = visibleLength, |
| 3759 _visibleOffset = visibleOffset; | 3773 _visibleOffset = visibleOffset; |
| 3760 | 3774 |
| 3761 fb.Offset finish(fb.Builder fbBuilder) { | 3775 fb.Offset finish(fb.Builder fbBuilder) { |
| 3762 assert(!_finished); | 3776 assert(!_finished); |
| 3763 _finished = true; | 3777 _finished = true; |
| 3764 fb.Offset offset_annotations; | 3778 fb.Offset offset_annotations; |
| 3765 fb.Offset offset_defaultValue; | 3779 fb.Offset offset_defaultValue; |
| 3780 fb.Offset offset_initializer; |
| 3766 fb.Offset offset_name; | 3781 fb.Offset offset_name; |
| 3767 fb.Offset offset_parameters; | 3782 fb.Offset offset_parameters; |
| 3768 fb.Offset offset_type; | 3783 fb.Offset offset_type; |
| 3769 if (!(_annotations == null || _annotations.isEmpty)) { | 3784 if (!(_annotations == null || _annotations.isEmpty)) { |
| 3770 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 3785 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 3771 } | 3786 } |
| 3772 if (_defaultValue != null) { | 3787 if (_defaultValue != null) { |
| 3773 offset_defaultValue = _defaultValue.finish(fbBuilder); | 3788 offset_defaultValue = _defaultValue.finish(fbBuilder); |
| 3774 } | 3789 } |
| 3790 if (_initializer != null) { |
| 3791 offset_initializer = _initializer.finish(fbBuilder); |
| 3792 } |
| 3775 if (_name != null) { | 3793 if (_name != null) { |
| 3776 offset_name = fbBuilder.writeString(_name); | 3794 offset_name = fbBuilder.writeString(_name); |
| 3777 } | 3795 } |
| 3778 if (!(_parameters == null || _parameters.isEmpty)) { | 3796 if (!(_parameters == null || _parameters.isEmpty)) { |
| 3779 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 3797 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 3780 } | 3798 } |
| 3781 if (_type != null) { | 3799 if (_type != null) { |
| 3782 offset_type = _type.finish(fbBuilder); | 3800 offset_type = _type.finish(fbBuilder); |
| 3783 } | 3801 } |
| 3784 fbBuilder.startTable(); | 3802 fbBuilder.startTable(); |
| 3785 if (offset_annotations != null) { | 3803 if (offset_annotations != null) { |
| 3786 fbBuilder.addOffset(9, offset_annotations); | 3804 fbBuilder.addOffset(9, offset_annotations); |
| 3787 } | 3805 } |
| 3788 if (offset_defaultValue != null) { | 3806 if (offset_defaultValue != null) { |
| 3789 fbBuilder.addOffset(7, offset_defaultValue); | 3807 fbBuilder.addOffset(7, offset_defaultValue); |
| 3790 } | 3808 } |
| 3791 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 3809 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 3792 fbBuilder.addUint32(2, _inferredTypeSlot); | 3810 fbBuilder.addUint32(2, _inferredTypeSlot); |
| 3793 } | 3811 } |
| 3812 if (offset_initializer != null) { |
| 3813 fbBuilder.addOffset(12, offset_initializer); |
| 3814 } |
| 3794 if (_isFunctionTyped == true) { | 3815 if (_isFunctionTyped == true) { |
| 3795 fbBuilder.addBool(5, true); | 3816 fbBuilder.addBool(5, true); |
| 3796 } | 3817 } |
| 3797 if (_isInitializingFormal == true) { | 3818 if (_isInitializingFormal == true) { |
| 3798 fbBuilder.addBool(6, true); | 3819 fbBuilder.addBool(6, true); |
| 3799 } | 3820 } |
| 3800 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { | 3821 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { |
| 3801 fbBuilder.addUint8(4, _kind.index); | 3822 fbBuilder.addUint8(4, _kind.index); |
| 3802 } | 3823 } |
| 3803 if (offset_name != null) { | 3824 if (offset_name != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3830 } | 3851 } |
| 3831 | 3852 |
| 3832 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { | 3853 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { |
| 3833 final fb.BufferPointer _bp; | 3854 final fb.BufferPointer _bp; |
| 3834 | 3855 |
| 3835 _UnlinkedParamImpl(this._bp); | 3856 _UnlinkedParamImpl(this._bp); |
| 3836 | 3857 |
| 3837 List<idl.UnlinkedConst> _annotations; | 3858 List<idl.UnlinkedConst> _annotations; |
| 3838 idl.UnlinkedConst _defaultValue; | 3859 idl.UnlinkedConst _defaultValue; |
| 3839 int _inferredTypeSlot; | 3860 int _inferredTypeSlot; |
| 3861 idl.UnlinkedExecutable _initializer; |
| 3840 bool _isFunctionTyped; | 3862 bool _isFunctionTyped; |
| 3841 bool _isInitializingFormal; | 3863 bool _isInitializingFormal; |
| 3842 idl.UnlinkedParamKind _kind; | 3864 idl.UnlinkedParamKind _kind; |
| 3843 String _name; | 3865 String _name; |
| 3844 int _nameOffset; | 3866 int _nameOffset; |
| 3845 List<idl.UnlinkedParam> _parameters; | 3867 List<idl.UnlinkedParam> _parameters; |
| 3846 idl.EntityRef _type; | 3868 idl.EntityRef _type; |
| 3847 int _visibleLength; | 3869 int _visibleLength; |
| 3848 int _visibleOffset; | 3870 int _visibleOffset; |
| 3849 | 3871 |
| 3850 @override | 3872 @override |
| 3851 List<idl.UnlinkedConst> get annotations { | 3873 List<idl.UnlinkedConst> get annotations { |
| 3852 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 9, const <idl.UnlinkedConst>[]); | 3874 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 9, const <idl.UnlinkedConst>[]); |
| 3853 return _annotations; | 3875 return _annotations; |
| 3854 } | 3876 } |
| 3855 | 3877 |
| 3856 @override | 3878 @override |
| 3857 idl.UnlinkedConst get defaultValue { | 3879 idl.UnlinkedConst get defaultValue { |
| 3858 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 7, null); | 3880 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 7, null); |
| 3859 return _defaultValue; | 3881 return _defaultValue; |
| 3860 } | 3882 } |
| 3861 | 3883 |
| 3862 @override | 3884 @override |
| 3863 int get inferredTypeSlot { | 3885 int get inferredTypeSlot { |
| 3864 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 3886 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 3865 return _inferredTypeSlot; | 3887 return _inferredTypeSlot; |
| 3866 } | 3888 } |
| 3867 | 3889 |
| 3868 @override | 3890 @override |
| 3891 idl.UnlinkedExecutable get initializer { |
| 3892 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bp, 12, null); |
| 3893 return _initializer; |
| 3894 } |
| 3895 |
| 3896 @override |
| 3869 bool get isFunctionTyped { | 3897 bool get isFunctionTyped { |
| 3870 _isFunctionTyped ??= const fb.BoolReader().vTableGet(_bp, 5, false); | 3898 _isFunctionTyped ??= const fb.BoolReader().vTableGet(_bp, 5, false); |
| 3871 return _isFunctionTyped; | 3899 return _isFunctionTyped; |
| 3872 } | 3900 } |
| 3873 | 3901 |
| 3874 @override | 3902 @override |
| 3875 bool get isInitializingFormal { | 3903 bool get isInitializingFormal { |
| 3876 _isInitializingFormal ??= const fb.BoolReader().vTableGet(_bp, 6, false); | 3904 _isInitializingFormal ??= const fb.BoolReader().vTableGet(_bp, 6, false); |
| 3877 return _isInitializingFormal; | 3905 return _isInitializingFormal; |
| 3878 } | 3906 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3919 return _visibleOffset; | 3947 return _visibleOffset; |
| 3920 } | 3948 } |
| 3921 } | 3949 } |
| 3922 | 3950 |
| 3923 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { | 3951 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { |
| 3924 @override | 3952 @override |
| 3925 Map<String, Object> toMap() => { | 3953 Map<String, Object> toMap() => { |
| 3926 "annotations": annotations, | 3954 "annotations": annotations, |
| 3927 "defaultValue": defaultValue, | 3955 "defaultValue": defaultValue, |
| 3928 "inferredTypeSlot": inferredTypeSlot, | 3956 "inferredTypeSlot": inferredTypeSlot, |
| 3957 "initializer": initializer, |
| 3929 "isFunctionTyped": isFunctionTyped, | 3958 "isFunctionTyped": isFunctionTyped, |
| 3930 "isInitializingFormal": isInitializingFormal, | 3959 "isInitializingFormal": isInitializingFormal, |
| 3931 "kind": kind, | 3960 "kind": kind, |
| 3932 "name": name, | 3961 "name": name, |
| 3933 "nameOffset": nameOffset, | 3962 "nameOffset": nameOffset, |
| 3934 "parameters": parameters, | 3963 "parameters": parameters, |
| 3935 "type": type, | 3964 "type": type, |
| 3936 "visibleLength": visibleLength, | 3965 "visibleLength": visibleLength, |
| 3937 "visibleOffset": visibleOffset, | 3966 "visibleOffset": visibleOffset, |
| 3938 }; | 3967 }; |
| (...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5260 }; | 5289 }; |
| 5261 } | 5290 } |
| 5262 | 5291 |
| 5263 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { | 5292 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { |
| 5264 bool _finished = false; | 5293 bool _finished = false; |
| 5265 | 5294 |
| 5266 List<UnlinkedConstBuilder> _annotations; | 5295 List<UnlinkedConstBuilder> _annotations; |
| 5267 UnlinkedConstBuilder _constExpr; | 5296 UnlinkedConstBuilder _constExpr; |
| 5268 UnlinkedDocumentationCommentBuilder _documentationComment; | 5297 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 5269 int _inferredTypeSlot; | 5298 int _inferredTypeSlot; |
| 5299 UnlinkedExecutableBuilder _initializer; |
| 5270 bool _isConst; | 5300 bool _isConst; |
| 5271 bool _isFinal; | 5301 bool _isFinal; |
| 5272 bool _isStatic; | 5302 bool _isStatic; |
| 5273 String _name; | 5303 String _name; |
| 5274 int _nameOffset; | 5304 int _nameOffset; |
| 5275 int _propagatedTypeSlot; | 5305 int _propagatedTypeSlot; |
| 5276 EntityRefBuilder _type; | 5306 EntityRefBuilder _type; |
| 5277 int _visibleLength; | 5307 int _visibleLength; |
| 5278 int _visibleOffset; | 5308 int _visibleOffset; |
| 5279 | 5309 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5322 * there is no matching entry in [LinkedLibrary.types], then no type was | 5352 * there is no matching entry in [LinkedLibrary.types], then no type was |
| 5323 * inferred for this variable, so its static type is `dynamic`. | 5353 * inferred for this variable, so its static type is `dynamic`. |
| 5324 */ | 5354 */ |
| 5325 void set inferredTypeSlot(int _value) { | 5355 void set inferredTypeSlot(int _value) { |
| 5326 assert(!_finished); | 5356 assert(!_finished); |
| 5327 assert(_value == null || _value >= 0); | 5357 assert(_value == null || _value >= 0); |
| 5328 _inferredTypeSlot = _value; | 5358 _inferredTypeSlot = _value; |
| 5329 } | 5359 } |
| 5330 | 5360 |
| 5331 @override | 5361 @override |
| 5362 UnlinkedExecutableBuilder get initializer => _initializer; |
| 5363 |
| 5364 /** |
| 5365 * The synthetic initializer function of the variable. Absent if the variable |
| 5366 * does not have an initializer. |
| 5367 */ |
| 5368 void set initializer(UnlinkedExecutableBuilder _value) { |
| 5369 assert(!_finished); |
| 5370 _initializer = _value; |
| 5371 } |
| 5372 |
| 5373 @override |
| 5332 bool get isConst => _isConst ??= false; | 5374 bool get isConst => _isConst ??= false; |
| 5333 | 5375 |
| 5334 /** | 5376 /** |
| 5335 * Indicates whether the variable is declared using the `const` keyword. | 5377 * Indicates whether the variable is declared using the `const` keyword. |
| 5336 */ | 5378 */ |
| 5337 void set isConst(bool _value) { | 5379 void set isConst(bool _value) { |
| 5338 assert(!_finished); | 5380 assert(!_finished); |
| 5339 _isConst = _value; | 5381 _isConst = _value; |
| 5340 } | 5382 } |
| 5341 | 5383 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5433 | 5475 |
| 5434 /** | 5476 /** |
| 5435 * If a local variable, the beginning of the visible range; zero otherwise. | 5477 * If a local variable, the beginning of the visible range; zero otherwise. |
| 5436 */ | 5478 */ |
| 5437 void set visibleOffset(int _value) { | 5479 void set visibleOffset(int _value) { |
| 5438 assert(!_finished); | 5480 assert(!_finished); |
| 5439 assert(_value == null || _value >= 0); | 5481 assert(_value == null || _value >= 0); |
| 5440 _visibleOffset = _value; | 5482 _visibleOffset = _value; |
| 5441 } | 5483 } |
| 5442 | 5484 |
| 5443 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConst
Builder constExpr, UnlinkedDocumentationCommentBuilder documentationComment, int
inferredTypeSlot, bool isConst, bool isFinal, bool isStatic, String name, int n
ameOffset, int propagatedTypeSlot, EntityRefBuilder type, int visibleLength, int
visibleOffset}) | 5485 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConst
Builder constExpr, UnlinkedDocumentationCommentBuilder documentationComment, int
inferredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isF
inal, bool isStatic, String name, int nameOffset, int propagatedTypeSlot, Entity
RefBuilder type, int visibleLength, int visibleOffset}) |
| 5444 : _annotations = annotations, | 5486 : _annotations = annotations, |
| 5445 _constExpr = constExpr, | 5487 _constExpr = constExpr, |
| 5446 _documentationComment = documentationComment, | 5488 _documentationComment = documentationComment, |
| 5447 _inferredTypeSlot = inferredTypeSlot, | 5489 _inferredTypeSlot = inferredTypeSlot, |
| 5490 _initializer = initializer, |
| 5448 _isConst = isConst, | 5491 _isConst = isConst, |
| 5449 _isFinal = isFinal, | 5492 _isFinal = isFinal, |
| 5450 _isStatic = isStatic, | 5493 _isStatic = isStatic, |
| 5451 _name = name, | 5494 _name = name, |
| 5452 _nameOffset = nameOffset, | 5495 _nameOffset = nameOffset, |
| 5453 _propagatedTypeSlot = propagatedTypeSlot, | 5496 _propagatedTypeSlot = propagatedTypeSlot, |
| 5454 _type = type, | 5497 _type = type, |
| 5455 _visibleLength = visibleLength, | 5498 _visibleLength = visibleLength, |
| 5456 _visibleOffset = visibleOffset; | 5499 _visibleOffset = visibleOffset; |
| 5457 | 5500 |
| 5458 fb.Offset finish(fb.Builder fbBuilder) { | 5501 fb.Offset finish(fb.Builder fbBuilder) { |
| 5459 assert(!_finished); | 5502 assert(!_finished); |
| 5460 _finished = true; | 5503 _finished = true; |
| 5461 fb.Offset offset_annotations; | 5504 fb.Offset offset_annotations; |
| 5462 fb.Offset offset_constExpr; | 5505 fb.Offset offset_constExpr; |
| 5463 fb.Offset offset_documentationComment; | 5506 fb.Offset offset_documentationComment; |
| 5507 fb.Offset offset_initializer; |
| 5464 fb.Offset offset_name; | 5508 fb.Offset offset_name; |
| 5465 fb.Offset offset_type; | 5509 fb.Offset offset_type; |
| 5466 if (!(_annotations == null || _annotations.isEmpty)) { | 5510 if (!(_annotations == null || _annotations.isEmpty)) { |
| 5467 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 5511 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 5468 } | 5512 } |
| 5469 if (_constExpr != null) { | 5513 if (_constExpr != null) { |
| 5470 offset_constExpr = _constExpr.finish(fbBuilder); | 5514 offset_constExpr = _constExpr.finish(fbBuilder); |
| 5471 } | 5515 } |
| 5472 if (_documentationComment != null) { | 5516 if (_documentationComment != null) { |
| 5473 offset_documentationComment = _documentationComment.finish(fbBuilder); | 5517 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 5474 } | 5518 } |
| 5519 if (_initializer != null) { |
| 5520 offset_initializer = _initializer.finish(fbBuilder); |
| 5521 } |
| 5475 if (_name != null) { | 5522 if (_name != null) { |
| 5476 offset_name = fbBuilder.writeString(_name); | 5523 offset_name = fbBuilder.writeString(_name); |
| 5477 } | 5524 } |
| 5478 if (_type != null) { | 5525 if (_type != null) { |
| 5479 offset_type = _type.finish(fbBuilder); | 5526 offset_type = _type.finish(fbBuilder); |
| 5480 } | 5527 } |
| 5481 fbBuilder.startTable(); | 5528 fbBuilder.startTable(); |
| 5482 if (offset_annotations != null) { | 5529 if (offset_annotations != null) { |
| 5483 fbBuilder.addOffset(8, offset_annotations); | 5530 fbBuilder.addOffset(8, offset_annotations); |
| 5484 } | 5531 } |
| 5485 if (offset_constExpr != null) { | 5532 if (offset_constExpr != null) { |
| 5486 fbBuilder.addOffset(5, offset_constExpr); | 5533 fbBuilder.addOffset(5, offset_constExpr); |
| 5487 } | 5534 } |
| 5488 if (offset_documentationComment != null) { | 5535 if (offset_documentationComment != null) { |
| 5489 fbBuilder.addOffset(10, offset_documentationComment); | 5536 fbBuilder.addOffset(10, offset_documentationComment); |
| 5490 } | 5537 } |
| 5491 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 5538 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 5492 fbBuilder.addUint32(9, _inferredTypeSlot); | 5539 fbBuilder.addUint32(9, _inferredTypeSlot); |
| 5493 } | 5540 } |
| 5541 if (offset_initializer != null) { |
| 5542 fbBuilder.addOffset(13, offset_initializer); |
| 5543 } |
| 5494 if (_isConst == true) { | 5544 if (_isConst == true) { |
| 5495 fbBuilder.addBool(6, true); | 5545 fbBuilder.addBool(6, true); |
| 5496 } | 5546 } |
| 5497 if (_isFinal == true) { | 5547 if (_isFinal == true) { |
| 5498 fbBuilder.addBool(7, true); | 5548 fbBuilder.addBool(7, true); |
| 5499 } | 5549 } |
| 5500 if (_isStatic == true) { | 5550 if (_isStatic == true) { |
| 5501 fbBuilder.addBool(4, true); | 5551 fbBuilder.addBool(4, true); |
| 5502 } | 5552 } |
| 5503 if (offset_name != null) { | 5553 if (offset_name != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5531 | 5581 |
| 5532 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { | 5582 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { |
| 5533 final fb.BufferPointer _bp; | 5583 final fb.BufferPointer _bp; |
| 5534 | 5584 |
| 5535 _UnlinkedVariableImpl(this._bp); | 5585 _UnlinkedVariableImpl(this._bp); |
| 5536 | 5586 |
| 5537 List<idl.UnlinkedConst> _annotations; | 5587 List<idl.UnlinkedConst> _annotations; |
| 5538 idl.UnlinkedConst _constExpr; | 5588 idl.UnlinkedConst _constExpr; |
| 5539 idl.UnlinkedDocumentationComment _documentationComment; | 5589 idl.UnlinkedDocumentationComment _documentationComment; |
| 5540 int _inferredTypeSlot; | 5590 int _inferredTypeSlot; |
| 5591 idl.UnlinkedExecutable _initializer; |
| 5541 bool _isConst; | 5592 bool _isConst; |
| 5542 bool _isFinal; | 5593 bool _isFinal; |
| 5543 bool _isStatic; | 5594 bool _isStatic; |
| 5544 String _name; | 5595 String _name; |
| 5545 int _nameOffset; | 5596 int _nameOffset; |
| 5546 int _propagatedTypeSlot; | 5597 int _propagatedTypeSlot; |
| 5547 idl.EntityRef _type; | 5598 idl.EntityRef _type; |
| 5548 int _visibleLength; | 5599 int _visibleLength; |
| 5549 int _visibleOffset; | 5600 int _visibleOffset; |
| 5550 | 5601 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 5566 return _documentationComment; | 5617 return _documentationComment; |
| 5567 } | 5618 } |
| 5568 | 5619 |
| 5569 @override | 5620 @override |
| 5570 int get inferredTypeSlot { | 5621 int get inferredTypeSlot { |
| 5571 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); | 5622 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); |
| 5572 return _inferredTypeSlot; | 5623 return _inferredTypeSlot; |
| 5573 } | 5624 } |
| 5574 | 5625 |
| 5575 @override | 5626 @override |
| 5627 idl.UnlinkedExecutable get initializer { |
| 5628 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bp, 13, null); |
| 5629 return _initializer; |
| 5630 } |
| 5631 |
| 5632 @override |
| 5576 bool get isConst { | 5633 bool get isConst { |
| 5577 _isConst ??= const fb.BoolReader().vTableGet(_bp, 6, false); | 5634 _isConst ??= const fb.BoolReader().vTableGet(_bp, 6, false); |
| 5578 return _isConst; | 5635 return _isConst; |
| 5579 } | 5636 } |
| 5580 | 5637 |
| 5581 @override | 5638 @override |
| 5582 bool get isFinal { | 5639 bool get isFinal { |
| 5583 _isFinal ??= const fb.BoolReader().vTableGet(_bp, 7, false); | 5640 _isFinal ??= const fb.BoolReader().vTableGet(_bp, 7, false); |
| 5584 return _isFinal; | 5641 return _isFinal; |
| 5585 } | 5642 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5627 } | 5684 } |
| 5628 } | 5685 } |
| 5629 | 5686 |
| 5630 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { | 5687 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { |
| 5631 @override | 5688 @override |
| 5632 Map<String, Object> toMap() => { | 5689 Map<String, Object> toMap() => { |
| 5633 "annotations": annotations, | 5690 "annotations": annotations, |
| 5634 "constExpr": constExpr, | 5691 "constExpr": constExpr, |
| 5635 "documentationComment": documentationComment, | 5692 "documentationComment": documentationComment, |
| 5636 "inferredTypeSlot": inferredTypeSlot, | 5693 "inferredTypeSlot": inferredTypeSlot, |
| 5694 "initializer": initializer, |
| 5637 "isConst": isConst, | 5695 "isConst": isConst, |
| 5638 "isFinal": isFinal, | 5696 "isFinal": isFinal, |
| 5639 "isStatic": isStatic, | 5697 "isStatic": isStatic, |
| 5640 "name": name, | 5698 "name": name, |
| 5641 "nameOffset": nameOffset, | 5699 "nameOffset": nameOffset, |
| 5642 "propagatedTypeSlot": propagatedTypeSlot, | 5700 "propagatedTypeSlot": propagatedTypeSlot, |
| 5643 "type": type, | 5701 "type": type, |
| 5644 "visibleLength": visibleLength, | 5702 "visibleLength": visibleLength, |
| 5645 "visibleOffset": visibleOffset, | 5703 "visibleOffset": visibleOffset, |
| 5646 }; | 5704 }; |
| 5647 } | 5705 } |
| 5648 | 5706 |
| OLD | NEW |