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 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4788 "expression": expression, | 4788 "expression": expression, |
4789 "kind": kind, | 4789 "kind": kind, |
4790 "name": name, | 4790 "name": name, |
4791 }; | 4791 }; |
4792 | 4792 |
4793 @override | 4793 @override |
4794 String toString() => convert.JSON.encode(toJson()); | 4794 String toString() => convert.JSON.encode(toJson()); |
4795 } | 4795 } |
4796 | 4796 |
4797 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { | 4797 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { |
| 4798 int _length; |
| 4799 int _offset; |
4798 String _text; | 4800 String _text; |
4799 | 4801 |
4800 @override | 4802 @override |
4801 int get length => throw new UnimplementedError('attempt to access deprecated f
ield'); | 4803 int get length => _length ??= 0; |
| 4804 |
| 4805 /** |
| 4806 * Length of the documentation comment (prior to replacing '\r\n' with '\n'). |
| 4807 */ |
| 4808 void set length(int _value) { |
| 4809 assert(_value == null || _value >= 0); |
| 4810 _length = _value; |
| 4811 } |
4802 | 4812 |
4803 @override | 4813 @override |
4804 int get offset => throw new UnimplementedError('attempt to access deprecated f
ield'); | 4814 int get offset => _offset ??= 0; |
| 4815 |
| 4816 /** |
| 4817 * Offset of the beginning of the documentation comment relative to the |
| 4818 * beginning of the file. |
| 4819 */ |
| 4820 void set offset(int _value) { |
| 4821 assert(_value == null || _value >= 0); |
| 4822 _offset = _value; |
| 4823 } |
4805 | 4824 |
4806 @override | 4825 @override |
4807 String get text => _text ??= ''; | 4826 String get text => _text ??= ''; |
4808 | 4827 |
4809 /** | 4828 /** |
4810 * Text of the documentation comment, with '\r\n' replaced by '\n'. | 4829 * Text of the documentation comment, with '\r\n' replaced by '\n'. |
4811 * | 4830 * |
4812 * References appearing within the doc comment in square brackets are not | 4831 * References appearing within the doc comment in square brackets are not |
4813 * specially encoded. | 4832 * specially encoded. |
4814 */ | 4833 */ |
4815 void set text(String _value) { | 4834 void set text(String _value) { |
4816 _text = _value; | 4835 _text = _value; |
4817 } | 4836 } |
4818 | 4837 |
4819 UnlinkedDocumentationCommentBuilder({String text}) | 4838 UnlinkedDocumentationCommentBuilder({int length, int offset, String text}) |
4820 : _text = text; | 4839 : _length = length, |
| 4840 _offset = offset, |
| 4841 _text = text; |
4821 | 4842 |
4822 /** | 4843 /** |
4823 * Flush [informative] data recursively. | 4844 * Flush [informative] data recursively. |
4824 */ | 4845 */ |
4825 void flushInformative() { | 4846 void flushInformative() { |
4826 } | 4847 } |
4827 | 4848 |
4828 /** | 4849 /** |
4829 * Accumulate non-[informative] data into [signature]. | 4850 * Accumulate non-[informative] data into [signature]. |
4830 */ | 4851 */ |
4831 void collectApiSignature(api_sig.ApiSignature signature) { | 4852 void collectApiSignature(api_sig.ApiSignature signature) { |
| 4853 signature.addInt(this._length ?? 0); |
4832 signature.addString(this._text ?? ''); | 4854 signature.addString(this._text ?? ''); |
| 4855 signature.addInt(this._offset ?? 0); |
4833 } | 4856 } |
4834 | 4857 |
4835 fb.Offset finish(fb.Builder fbBuilder) { | 4858 fb.Offset finish(fb.Builder fbBuilder) { |
4836 fb.Offset offset_text; | 4859 fb.Offset offset_text; |
4837 if (_text != null) { | 4860 if (_text != null) { |
4838 offset_text = fbBuilder.writeString(_text); | 4861 offset_text = fbBuilder.writeString(_text); |
4839 } | 4862 } |
4840 fbBuilder.startTable(); | 4863 fbBuilder.startTable(); |
| 4864 if (_length != null && _length != 0) { |
| 4865 fbBuilder.addUint32(0, _length); |
| 4866 } |
| 4867 if (_offset != null && _offset != 0) { |
| 4868 fbBuilder.addUint32(2, _offset); |
| 4869 } |
4841 if (offset_text != null) { | 4870 if (offset_text != null) { |
4842 fbBuilder.addOffset(1, offset_text); | 4871 fbBuilder.addOffset(1, offset_text); |
4843 } | 4872 } |
4844 return fbBuilder.endTable(); | 4873 return fbBuilder.endTable(); |
4845 } | 4874 } |
4846 } | 4875 } |
4847 | 4876 |
4848 class _UnlinkedDocumentationCommentReader extends fb.TableReader<_UnlinkedDocume
ntationCommentImpl> { | 4877 class _UnlinkedDocumentationCommentReader extends fb.TableReader<_UnlinkedDocume
ntationCommentImpl> { |
4849 const _UnlinkedDocumentationCommentReader(); | 4878 const _UnlinkedDocumentationCommentReader(); |
4850 | 4879 |
4851 @override | 4880 @override |
4852 _UnlinkedDocumentationCommentImpl createObject(fb.BufferContext bc, int offset
) => new _UnlinkedDocumentationCommentImpl(bc, offset); | 4881 _UnlinkedDocumentationCommentImpl createObject(fb.BufferContext bc, int offset
) => new _UnlinkedDocumentationCommentImpl(bc, offset); |
4853 } | 4882 } |
4854 | 4883 |
4855 class _UnlinkedDocumentationCommentImpl extends Object with _UnlinkedDocumentati
onCommentMixin implements idl.UnlinkedDocumentationComment { | 4884 class _UnlinkedDocumentationCommentImpl extends Object with _UnlinkedDocumentati
onCommentMixin implements idl.UnlinkedDocumentationComment { |
4856 final fb.BufferContext _bc; | 4885 final fb.BufferContext _bc; |
4857 final int _bcOffset; | 4886 final int _bcOffset; |
4858 | 4887 |
4859 _UnlinkedDocumentationCommentImpl(this._bc, this._bcOffset); | 4888 _UnlinkedDocumentationCommentImpl(this._bc, this._bcOffset); |
4860 | 4889 |
| 4890 int _length; |
| 4891 int _offset; |
4861 String _text; | 4892 String _text; |
4862 | 4893 |
4863 @override | 4894 @override |
4864 int get length => throw new UnimplementedError('attempt to access deprecated f
ield'); | 4895 int get length { |
| 4896 _length ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0); |
| 4897 return _length; |
| 4898 } |
4865 | 4899 |
4866 @override | 4900 @override |
4867 int get offset => throw new UnimplementedError('attempt to access deprecated f
ield'); | 4901 int get offset { |
| 4902 _offset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 2, 0); |
| 4903 return _offset; |
| 4904 } |
4868 | 4905 |
4869 @override | 4906 @override |
4870 String get text { | 4907 String get text { |
4871 _text ??= const fb.StringReader().vTableGet(_bc, _bcOffset, 1, ''); | 4908 _text ??= const fb.StringReader().vTableGet(_bc, _bcOffset, 1, ''); |
4872 return _text; | 4909 return _text; |
4873 } | 4910 } |
4874 } | 4911 } |
4875 | 4912 |
4876 abstract class _UnlinkedDocumentationCommentMixin implements idl.UnlinkedDocumen
tationComment { | 4913 abstract class _UnlinkedDocumentationCommentMixin implements idl.UnlinkedDocumen
tationComment { |
4877 @override | 4914 @override |
4878 Map<String, Object> toJson() { | 4915 Map<String, Object> toJson() { |
4879 Map<String, Object> _result = <String, Object>{}; | 4916 Map<String, Object> _result = <String, Object>{}; |
| 4917 if (length != 0) _result["length"] = length; |
| 4918 if (offset != 0) _result["offset"] = offset; |
4880 if (text != '') _result["text"] = text; | 4919 if (text != '') _result["text"] = text; |
4881 return _result; | 4920 return _result; |
4882 } | 4921 } |
4883 | 4922 |
4884 @override | 4923 @override |
4885 Map<String, Object> toMap() => { | 4924 Map<String, Object> toMap() => { |
| 4925 "length": length, |
| 4926 "offset": offset, |
4886 "text": text, | 4927 "text": text, |
4887 }; | 4928 }; |
4888 | 4929 |
4889 @override | 4930 @override |
4890 String toString() => convert.JSON.encode(toJson()); | 4931 String toString() => convert.JSON.encode(toJson()); |
4891 } | 4932 } |
4892 | 4933 |
4893 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { | 4934 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { |
4894 List<UnlinkedConstBuilder> _annotations; | 4935 List<UnlinkedConstBuilder> _annotations; |
4895 CodeRangeBuilder _codeRange; | 4936 CodeRangeBuilder _codeRange; |
(...skipping 4815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9711 "propagatedTypeSlot": propagatedTypeSlot, | 9752 "propagatedTypeSlot": propagatedTypeSlot, |
9712 "type": type, | 9753 "type": type, |
9713 "visibleLength": visibleLength, | 9754 "visibleLength": visibleLength, |
9714 "visibleOffset": visibleOffset, | 9755 "visibleOffset": visibleOffset, |
9715 }; | 9756 }; |
9716 | 9757 |
9717 @override | 9758 @override |
9718 String toString() => convert.JSON.encode(toJson()); | 9759 String toString() => convert.JSON.encode(toJson()); |
9719 } | 9760 } |
9720 | 9761 |
OLD | NEW |