| 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 3574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3585 List<UnlinkedConstBuilder> _annotations; | 3585 List<UnlinkedConstBuilder> _annotations; |
| 3586 UnlinkedConstBuilder _defaultValue; | 3586 UnlinkedConstBuilder _defaultValue; |
| 3587 int _inferredTypeSlot; | 3587 int _inferredTypeSlot; |
| 3588 bool _isFunctionTyped; | 3588 bool _isFunctionTyped; |
| 3589 bool _isInitializingFormal; | 3589 bool _isInitializingFormal; |
| 3590 idl.UnlinkedParamKind _kind; | 3590 idl.UnlinkedParamKind _kind; |
| 3591 String _name; | 3591 String _name; |
| 3592 int _nameOffset; | 3592 int _nameOffset; |
| 3593 List<UnlinkedParamBuilder> _parameters; | 3593 List<UnlinkedParamBuilder> _parameters; |
| 3594 EntityRefBuilder _type; | 3594 EntityRefBuilder _type; |
| 3595 int _visibleLength; |
| 3596 int _visibleOffset; |
| 3595 | 3597 |
| 3596 @override | 3598 @override |
| 3597 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 3599 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 3598 | 3600 |
| 3599 /** | 3601 /** |
| 3600 * Annotations for this parameter. | 3602 * Annotations for this parameter. |
| 3601 */ | 3603 */ |
| 3602 void set annotations(List<UnlinkedConstBuilder> _value) { | 3604 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 3603 assert(!_finished); | 3605 assert(!_finished); |
| 3604 _annotations = _value; | 3606 _annotations = _value; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3711 /** | 3713 /** |
| 3712 * If [isFunctionTyped] is `true`, the declared return type. If | 3714 * If [isFunctionTyped] is `true`, the declared return type. If |
| 3713 * [isFunctionTyped] is `false`, the declared type. Absent if the type is | 3715 * [isFunctionTyped] is `false`, the declared type. Absent if the type is |
| 3714 * implicit. | 3716 * implicit. |
| 3715 */ | 3717 */ |
| 3716 void set type(EntityRefBuilder _value) { | 3718 void set type(EntityRefBuilder _value) { |
| 3717 assert(!_finished); | 3719 assert(!_finished); |
| 3718 _type = _value; | 3720 _type = _value; |
| 3719 } | 3721 } |
| 3720 | 3722 |
| 3721 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}) | 3723 @override |
| 3724 int get visibleLength => _visibleLength ??= 0; |
| 3725 |
| 3726 /** |
| 3727 * The length of the visible range. |
| 3728 */ |
| 3729 void set visibleLength(int _value) { |
| 3730 assert(!_finished); |
| 3731 assert(_value == null || _value >= 0); |
| 3732 _visibleLength = _value; |
| 3733 } |
| 3734 |
| 3735 @override |
| 3736 int get visibleOffset => _visibleOffset ??= 0; |
| 3737 |
| 3738 /** |
| 3739 * The beginning of the visible range. |
| 3740 */ |
| 3741 void set visibleOffset(int _value) { |
| 3742 assert(!_finished); |
| 3743 assert(_value == null || _value >= 0); |
| 3744 _visibleOffset = _value; |
| 3745 } |
| 3746 |
| 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}) |
| 3722 : _annotations = annotations, | 3748 : _annotations = annotations, |
| 3723 _defaultValue = defaultValue, | 3749 _defaultValue = defaultValue, |
| 3724 _inferredTypeSlot = inferredTypeSlot, | 3750 _inferredTypeSlot = inferredTypeSlot, |
| 3725 _isFunctionTyped = isFunctionTyped, | 3751 _isFunctionTyped = isFunctionTyped, |
| 3726 _isInitializingFormal = isInitializingFormal, | 3752 _isInitializingFormal = isInitializingFormal, |
| 3727 _kind = kind, | 3753 _kind = kind, |
| 3728 _name = name, | 3754 _name = name, |
| 3729 _nameOffset = nameOffset, | 3755 _nameOffset = nameOffset, |
| 3730 _parameters = parameters, | 3756 _parameters = parameters, |
| 3731 _type = type; | 3757 _type = type, |
| 3758 _visibleLength = visibleLength, |
| 3759 _visibleOffset = visibleOffset; |
| 3732 | 3760 |
| 3733 fb.Offset finish(fb.Builder fbBuilder) { | 3761 fb.Offset finish(fb.Builder fbBuilder) { |
| 3734 assert(!_finished); | 3762 assert(!_finished); |
| 3735 _finished = true; | 3763 _finished = true; |
| 3736 fb.Offset offset_annotations; | 3764 fb.Offset offset_annotations; |
| 3737 fb.Offset offset_defaultValue; | 3765 fb.Offset offset_defaultValue; |
| 3738 fb.Offset offset_name; | 3766 fb.Offset offset_name; |
| 3739 fb.Offset offset_parameters; | 3767 fb.Offset offset_parameters; |
| 3740 fb.Offset offset_type; | 3768 fb.Offset offset_type; |
| 3741 if (!(_annotations == null || _annotations.isEmpty)) { | 3769 if (!(_annotations == null || _annotations.isEmpty)) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3777 } | 3805 } |
| 3778 if (_nameOffset != null && _nameOffset != 0) { | 3806 if (_nameOffset != null && _nameOffset != 0) { |
| 3779 fbBuilder.addUint32(7, _nameOffset); | 3807 fbBuilder.addUint32(7, _nameOffset); |
| 3780 } | 3808 } |
| 3781 if (offset_parameters != null) { | 3809 if (offset_parameters != null) { |
| 3782 fbBuilder.addOffset(8, offset_parameters); | 3810 fbBuilder.addOffset(8, offset_parameters); |
| 3783 } | 3811 } |
| 3784 if (offset_type != null) { | 3812 if (offset_type != null) { |
| 3785 fbBuilder.addOffset(9, offset_type); | 3813 fbBuilder.addOffset(9, offset_type); |
| 3786 } | 3814 } |
| 3815 if (_visibleLength != null && _visibleLength != 0) { |
| 3816 fbBuilder.addUint32(10, _visibleLength); |
| 3817 } |
| 3818 if (_visibleOffset != null && _visibleOffset != 0) { |
| 3819 fbBuilder.addUint32(11, _visibleOffset); |
| 3820 } |
| 3787 return fbBuilder.endTable(); | 3821 return fbBuilder.endTable(); |
| 3788 } | 3822 } |
| 3789 } | 3823 } |
| 3790 | 3824 |
| 3791 class _UnlinkedParamReader extends fb.TableReader<_UnlinkedParamImpl> { | 3825 class _UnlinkedParamReader extends fb.TableReader<_UnlinkedParamImpl> { |
| 3792 const _UnlinkedParamReader(); | 3826 const _UnlinkedParamReader(); |
| 3793 | 3827 |
| 3794 @override | 3828 @override |
| 3795 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); | 3829 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); |
| 3796 } | 3830 } |
| 3797 | 3831 |
| 3798 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { | 3832 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { |
| 3799 final fb.BufferPointer _bp; | 3833 final fb.BufferPointer _bp; |
| 3800 | 3834 |
| 3801 _UnlinkedParamImpl(this._bp); | 3835 _UnlinkedParamImpl(this._bp); |
| 3802 | 3836 |
| 3803 List<idl.UnlinkedConst> _annotations; | 3837 List<idl.UnlinkedConst> _annotations; |
| 3804 idl.UnlinkedConst _defaultValue; | 3838 idl.UnlinkedConst _defaultValue; |
| 3805 int _inferredTypeSlot; | 3839 int _inferredTypeSlot; |
| 3806 bool _isFunctionTyped; | 3840 bool _isFunctionTyped; |
| 3807 bool _isInitializingFormal; | 3841 bool _isInitializingFormal; |
| 3808 idl.UnlinkedParamKind _kind; | 3842 idl.UnlinkedParamKind _kind; |
| 3809 String _name; | 3843 String _name; |
| 3810 int _nameOffset; | 3844 int _nameOffset; |
| 3811 List<idl.UnlinkedParam> _parameters; | 3845 List<idl.UnlinkedParam> _parameters; |
| 3812 idl.EntityRef _type; | 3846 idl.EntityRef _type; |
| 3847 int _visibleLength; |
| 3848 int _visibleOffset; |
| 3813 | 3849 |
| 3814 @override | 3850 @override |
| 3815 List<idl.UnlinkedConst> get annotations { | 3851 List<idl.UnlinkedConst> get annotations { |
| 3816 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); | 3852 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); |
| 3817 return _annotations; | 3853 return _annotations; |
| 3818 } | 3854 } |
| 3819 | 3855 |
| 3820 @override | 3856 @override |
| 3821 idl.UnlinkedConst get defaultValue { | 3857 idl.UnlinkedConst get defaultValue { |
| 3822 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 1, null); | 3858 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 1, null); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3863 List<idl.UnlinkedParam> get parameters { | 3899 List<idl.UnlinkedParam> get parameters { |
| 3864 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 8, const <idl.UnlinkedParam>[]); | 3900 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 8, const <idl.UnlinkedParam>[]); |
| 3865 return _parameters; | 3901 return _parameters; |
| 3866 } | 3902 } |
| 3867 | 3903 |
| 3868 @override | 3904 @override |
| 3869 idl.EntityRef get type { | 3905 idl.EntityRef get type { |
| 3870 _type ??= const _EntityRefReader().vTableGet(_bp, 9, null); | 3906 _type ??= const _EntityRefReader().vTableGet(_bp, 9, null); |
| 3871 return _type; | 3907 return _type; |
| 3872 } | 3908 } |
| 3909 |
| 3910 @override |
| 3911 int get visibleLength { |
| 3912 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bp, 10, 0); |
| 3913 return _visibleLength; |
| 3914 } |
| 3915 |
| 3916 @override |
| 3917 int get visibleOffset { |
| 3918 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 11, 0); |
| 3919 return _visibleOffset; |
| 3920 } |
| 3873 } | 3921 } |
| 3874 | 3922 |
| 3875 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { | 3923 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { |
| 3876 @override | 3924 @override |
| 3877 Map<String, Object> toMap() => { | 3925 Map<String, Object> toMap() => { |
| 3878 "annotations": annotations, | 3926 "annotations": annotations, |
| 3879 "defaultValue": defaultValue, | 3927 "defaultValue": defaultValue, |
| 3880 "inferredTypeSlot": inferredTypeSlot, | 3928 "inferredTypeSlot": inferredTypeSlot, |
| 3881 "isFunctionTyped": isFunctionTyped, | 3929 "isFunctionTyped": isFunctionTyped, |
| 3882 "isInitializingFormal": isInitializingFormal, | 3930 "isInitializingFormal": isInitializingFormal, |
| 3883 "kind": kind, | 3931 "kind": kind, |
| 3884 "name": name, | 3932 "name": name, |
| 3885 "nameOffset": nameOffset, | 3933 "nameOffset": nameOffset, |
| 3886 "parameters": parameters, | 3934 "parameters": parameters, |
| 3887 "type": type, | 3935 "type": type, |
| 3936 "visibleLength": visibleLength, |
| 3937 "visibleOffset": visibleOffset, |
| 3888 }; | 3938 }; |
| 3889 } | 3939 } |
| 3890 | 3940 |
| 3891 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { | 3941 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { |
| 3892 bool _finished = false; | 3942 bool _finished = false; |
| 3893 | 3943 |
| 3894 List<UnlinkedConstBuilder> _annotations; | 3944 List<UnlinkedConstBuilder> _annotations; |
| 3895 int _uriEnd; | 3945 int _uriEnd; |
| 3896 int _uriOffset; | 3946 int _uriOffset; |
| 3897 | 3947 |
| (...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5589 "isStatic": isStatic, | 5639 "isStatic": isStatic, |
| 5590 "name": name, | 5640 "name": name, |
| 5591 "nameOffset": nameOffset, | 5641 "nameOffset": nameOffset, |
| 5592 "propagatedTypeSlot": propagatedTypeSlot, | 5642 "propagatedTypeSlot": propagatedTypeSlot, |
| 5593 "type": type, | 5643 "type": type, |
| 5594 "visibleLength": visibleLength, | 5644 "visibleLength": visibleLength, |
| 5595 "visibleOffset": visibleOffset, | 5645 "visibleOffset": visibleOffset, |
| 5596 }; | 5646 }; |
| 5597 } | 5647 } |
| 5598 | 5648 |
| OLD | NEW |