| 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 4190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4201 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { | 4201 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { |
| 4202 bool _finished = false; | 4202 bool _finished = false; |
| 4203 | 4203 |
| 4204 List<UnlinkedConstBuilder> _annotations; | 4204 List<UnlinkedConstBuilder> _annotations; |
| 4205 CodeRangeBuilder _codeRange; | 4205 CodeRangeBuilder _codeRange; |
| 4206 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; | 4206 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; |
| 4207 int _constCycleSlot; | 4207 int _constCycleSlot; |
| 4208 UnlinkedDocumentationCommentBuilder _documentationComment; | 4208 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 4209 int _inferredReturnTypeSlot; | 4209 int _inferredReturnTypeSlot; |
| 4210 bool _isAbstract; | 4210 bool _isAbstract; |
| 4211 bool _isAsynchronous; |
| 4211 bool _isConst; | 4212 bool _isConst; |
| 4212 bool _isExternal; | 4213 bool _isExternal; |
| 4213 bool _isFactory; | 4214 bool _isFactory; |
| 4215 bool _isGenerator; |
| 4214 bool _isRedirectedConstructor; | 4216 bool _isRedirectedConstructor; |
| 4215 bool _isStatic; | 4217 bool _isStatic; |
| 4216 idl.UnlinkedExecutableKind _kind; | 4218 idl.UnlinkedExecutableKind _kind; |
| 4217 List<UnlinkedExecutableBuilder> _localFunctions; | 4219 List<UnlinkedExecutableBuilder> _localFunctions; |
| 4218 List<UnlinkedLabelBuilder> _localLabels; | 4220 List<UnlinkedLabelBuilder> _localLabels; |
| 4219 List<UnlinkedVariableBuilder> _localVariables; | 4221 List<UnlinkedVariableBuilder> _localVariables; |
| 4220 String _name; | 4222 String _name; |
| 4221 int _nameEnd; | 4223 int _nameEnd; |
| 4222 int _nameOffset; | 4224 int _nameOffset; |
| 4223 List<UnlinkedParamBuilder> _parameters; | 4225 List<UnlinkedParamBuilder> _parameters; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4313 | 4315 |
| 4314 /** | 4316 /** |
| 4315 * Indicates whether the executable is declared using the `abstract` keyword. | 4317 * Indicates whether the executable is declared using the `abstract` keyword. |
| 4316 */ | 4318 */ |
| 4317 void set isAbstract(bool _value) { | 4319 void set isAbstract(bool _value) { |
| 4318 assert(!_finished); | 4320 assert(!_finished); |
| 4319 _isAbstract = _value; | 4321 _isAbstract = _value; |
| 4320 } | 4322 } |
| 4321 | 4323 |
| 4322 @override | 4324 @override |
| 4325 bool get isAsynchronous => _isAsynchronous ??= false; |
| 4326 |
| 4327 /** |
| 4328 * Indicates whether the executable has body marked as being asynchronous. |
| 4329 */ |
| 4330 void set isAsynchronous(bool _value) { |
| 4331 assert(!_finished); |
| 4332 _isAsynchronous = _value; |
| 4333 } |
| 4334 |
| 4335 @override |
| 4323 bool get isConst => _isConst ??= false; | 4336 bool get isConst => _isConst ??= false; |
| 4324 | 4337 |
| 4325 /** | 4338 /** |
| 4326 * Indicates whether the executable is declared using the `const` keyword. | 4339 * Indicates whether the executable is declared using the `const` keyword. |
| 4327 */ | 4340 */ |
| 4328 void set isConst(bool _value) { | 4341 void set isConst(bool _value) { |
| 4329 assert(!_finished); | 4342 assert(!_finished); |
| 4330 _isConst = _value; | 4343 _isConst = _value; |
| 4331 } | 4344 } |
| 4332 | 4345 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4346 | 4359 |
| 4347 /** | 4360 /** |
| 4348 * Indicates whether the executable is declared using the `factory` keyword. | 4361 * Indicates whether the executable is declared using the `factory` keyword. |
| 4349 */ | 4362 */ |
| 4350 void set isFactory(bool _value) { | 4363 void set isFactory(bool _value) { |
| 4351 assert(!_finished); | 4364 assert(!_finished); |
| 4352 _isFactory = _value; | 4365 _isFactory = _value; |
| 4353 } | 4366 } |
| 4354 | 4367 |
| 4355 @override | 4368 @override |
| 4369 bool get isGenerator => _isGenerator ??= false; |
| 4370 |
| 4371 /** |
| 4372 * Indicates whether the executable has body marked as being a generator. |
| 4373 */ |
| 4374 void set isGenerator(bool _value) { |
| 4375 assert(!_finished); |
| 4376 _isGenerator = _value; |
| 4377 } |
| 4378 |
| 4379 @override |
| 4356 bool get isRedirectedConstructor => _isRedirectedConstructor ??= false; | 4380 bool get isRedirectedConstructor => _isRedirectedConstructor ??= false; |
| 4357 | 4381 |
| 4358 /** | 4382 /** |
| 4359 * Indicates whether the executable is a redirected constructor. | 4383 * Indicates whether the executable is a redirected constructor. |
| 4360 */ | 4384 */ |
| 4361 void set isRedirectedConstructor(bool _value) { | 4385 void set isRedirectedConstructor(bool _value) { |
| 4362 assert(!_finished); | 4386 assert(!_finished); |
| 4363 _isRedirectedConstructor = _value; | 4387 _isRedirectedConstructor = _value; |
| 4364 } | 4388 } |
| 4365 | 4389 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4559 | 4583 |
| 4560 /** | 4584 /** |
| 4561 * If a local function, the beginning of the visible range; zero otherwise. | 4585 * If a local function, the beginning of the visible range; zero otherwise. |
| 4562 */ | 4586 */ |
| 4563 void set visibleOffset(int _value) { | 4587 void set visibleOffset(int _value) { |
| 4564 assert(!_finished); | 4588 assert(!_finished); |
| 4565 assert(_value == null || _value >= 0); | 4589 assert(_value == null || _value >= 0); |
| 4566 _visibleOffset = _value; | 4590 _visibleOffset = _value; |
| 4567 } | 4591 } |
| 4568 | 4592 |
| 4569 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBu
ilder codeRange, List<UnlinkedConstructorInitializerBuilder> constantInitializer
s, int constCycleSlot, UnlinkedDocumentationCommentBuilder documentationComment,
int inferredReturnTypeSlot, bool isAbstract, bool isConst, bool isExternal, boo
l isFactory, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutable
Kind kind, List<UnlinkedExecutableBuilder> localFunctions, List<UnlinkedLabelBui
lder> localLabels, List<UnlinkedVariableBuilder> localVariables, String name, in
t nameEnd, int nameOffset, List<UnlinkedParamBuilder> parameters, int periodOffs
et, EntityRefBuilder redirectedConstructor, String redirectedConstructorName, En
tityRefBuilder returnType, List<UnlinkedTypeParamBuilder> typeParameters, int vi
sibleLength, int visibleOffset}) | 4593 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBu
ilder codeRange, List<UnlinkedConstructorInitializerBuilder> constantInitializer
s, int constCycleSlot, UnlinkedDocumentationCommentBuilder documentationComment,
int inferredReturnTypeSlot, bool isAbstract, bool isAsynchronous, bool isConst,
bool isExternal, bool isFactory, bool isGenerator, bool isRedirectedConstructor
, bool isStatic, idl.UnlinkedExecutableKind kind, List<UnlinkedExecutableBuilder
> localFunctions, List<UnlinkedLabelBuilder> localLabels, List<UnlinkedVariableB
uilder> localVariables, String name, int nameEnd, int nameOffset, List<UnlinkedP
aramBuilder> parameters, int periodOffset, EntityRefBuilder redirectedConstructo
r, String redirectedConstructorName, EntityRefBuilder returnType, List<UnlinkedT
ypeParamBuilder> typeParameters, int visibleLength, int visibleOffset}) |
| 4570 : _annotations = annotations, | 4594 : _annotations = annotations, |
| 4571 _codeRange = codeRange, | 4595 _codeRange = codeRange, |
| 4572 _constantInitializers = constantInitializers, | 4596 _constantInitializers = constantInitializers, |
| 4573 _constCycleSlot = constCycleSlot, | 4597 _constCycleSlot = constCycleSlot, |
| 4574 _documentationComment = documentationComment, | 4598 _documentationComment = documentationComment, |
| 4575 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 4599 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
| 4576 _isAbstract = isAbstract, | 4600 _isAbstract = isAbstract, |
| 4601 _isAsynchronous = isAsynchronous, |
| 4577 _isConst = isConst, | 4602 _isConst = isConst, |
| 4578 _isExternal = isExternal, | 4603 _isExternal = isExternal, |
| 4579 _isFactory = isFactory, | 4604 _isFactory = isFactory, |
| 4605 _isGenerator = isGenerator, |
| 4580 _isRedirectedConstructor = isRedirectedConstructor, | 4606 _isRedirectedConstructor = isRedirectedConstructor, |
| 4581 _isStatic = isStatic, | 4607 _isStatic = isStatic, |
| 4582 _kind = kind, | 4608 _kind = kind, |
| 4583 _localFunctions = localFunctions, | 4609 _localFunctions = localFunctions, |
| 4584 _localLabels = localLabels, | 4610 _localLabels = localLabels, |
| 4585 _localVariables = localVariables, | 4611 _localVariables = localVariables, |
| 4586 _name = name, | 4612 _name = name, |
| 4587 _nameEnd = nameEnd, | 4613 _nameEnd = nameEnd, |
| 4588 _nameOffset = nameOffset, | 4614 _nameOffset = nameOffset, |
| 4589 _parameters = parameters, | 4615 _parameters = parameters, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4685 } | 4711 } |
| 4686 if (offset_documentationComment != null) { | 4712 if (offset_documentationComment != null) { |
| 4687 fbBuilder.addOffset(7, offset_documentationComment); | 4713 fbBuilder.addOffset(7, offset_documentationComment); |
| 4688 } | 4714 } |
| 4689 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { | 4715 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { |
| 4690 fbBuilder.addUint32(5, _inferredReturnTypeSlot); | 4716 fbBuilder.addUint32(5, _inferredReturnTypeSlot); |
| 4691 } | 4717 } |
| 4692 if (_isAbstract == true) { | 4718 if (_isAbstract == true) { |
| 4693 fbBuilder.addBool(10, true); | 4719 fbBuilder.addBool(10, true); |
| 4694 } | 4720 } |
| 4721 if (_isAsynchronous == true) { |
| 4722 fbBuilder.addBool(27, true); |
| 4723 } |
| 4695 if (_isConst == true) { | 4724 if (_isConst == true) { |
| 4696 fbBuilder.addBool(12, true); | 4725 fbBuilder.addBool(12, true); |
| 4697 } | 4726 } |
| 4698 if (_isExternal == true) { | 4727 if (_isExternal == true) { |
| 4699 fbBuilder.addBool(11, true); | 4728 fbBuilder.addBool(11, true); |
| 4700 } | 4729 } |
| 4701 if (_isFactory == true) { | 4730 if (_isFactory == true) { |
| 4702 fbBuilder.addBool(8, true); | 4731 fbBuilder.addBool(8, true); |
| 4703 } | 4732 } |
| 4733 if (_isGenerator == true) { |
| 4734 fbBuilder.addBool(28, true); |
| 4735 } |
| 4704 if (_isRedirectedConstructor == true) { | 4736 if (_isRedirectedConstructor == true) { |
| 4705 fbBuilder.addBool(13, true); | 4737 fbBuilder.addBool(13, true); |
| 4706 } | 4738 } |
| 4707 if (_isStatic == true) { | 4739 if (_isStatic == true) { |
| 4708 fbBuilder.addBool(9, true); | 4740 fbBuilder.addBool(9, true); |
| 4709 } | 4741 } |
| 4710 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { | 4742 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { |
| 4711 fbBuilder.addUint8(4, _kind.index); | 4743 fbBuilder.addUint8(4, _kind.index); |
| 4712 } | 4744 } |
| 4713 if (offset_localFunctions != null) { | 4745 if (offset_localFunctions != null) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4768 | 4800 |
| 4769 _UnlinkedExecutableImpl(this._bp); | 4801 _UnlinkedExecutableImpl(this._bp); |
| 4770 | 4802 |
| 4771 List<idl.UnlinkedConst> _annotations; | 4803 List<idl.UnlinkedConst> _annotations; |
| 4772 idl.CodeRange _codeRange; | 4804 idl.CodeRange _codeRange; |
| 4773 List<idl.UnlinkedConstructorInitializer> _constantInitializers; | 4805 List<idl.UnlinkedConstructorInitializer> _constantInitializers; |
| 4774 int _constCycleSlot; | 4806 int _constCycleSlot; |
| 4775 idl.UnlinkedDocumentationComment _documentationComment; | 4807 idl.UnlinkedDocumentationComment _documentationComment; |
| 4776 int _inferredReturnTypeSlot; | 4808 int _inferredReturnTypeSlot; |
| 4777 bool _isAbstract; | 4809 bool _isAbstract; |
| 4810 bool _isAsynchronous; |
| 4778 bool _isConst; | 4811 bool _isConst; |
| 4779 bool _isExternal; | 4812 bool _isExternal; |
| 4780 bool _isFactory; | 4813 bool _isFactory; |
| 4814 bool _isGenerator; |
| 4781 bool _isRedirectedConstructor; | 4815 bool _isRedirectedConstructor; |
| 4782 bool _isStatic; | 4816 bool _isStatic; |
| 4783 idl.UnlinkedExecutableKind _kind; | 4817 idl.UnlinkedExecutableKind _kind; |
| 4784 List<idl.UnlinkedExecutable> _localFunctions; | 4818 List<idl.UnlinkedExecutable> _localFunctions; |
| 4785 List<idl.UnlinkedLabel> _localLabels; | 4819 List<idl.UnlinkedLabel> _localLabels; |
| 4786 List<idl.UnlinkedVariable> _localVariables; | 4820 List<idl.UnlinkedVariable> _localVariables; |
| 4787 String _name; | 4821 String _name; |
| 4788 int _nameEnd; | 4822 int _nameEnd; |
| 4789 int _nameOffset; | 4823 int _nameOffset; |
| 4790 List<idl.UnlinkedParam> _parameters; | 4824 List<idl.UnlinkedParam> _parameters; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4832 return _inferredReturnTypeSlot; | 4866 return _inferredReturnTypeSlot; |
| 4833 } | 4867 } |
| 4834 | 4868 |
| 4835 @override | 4869 @override |
| 4836 bool get isAbstract { | 4870 bool get isAbstract { |
| 4837 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 10, false); | 4871 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 10, false); |
| 4838 return _isAbstract; | 4872 return _isAbstract; |
| 4839 } | 4873 } |
| 4840 | 4874 |
| 4841 @override | 4875 @override |
| 4876 bool get isAsynchronous { |
| 4877 _isAsynchronous ??= const fb.BoolReader().vTableGet(_bp, 27, false); |
| 4878 return _isAsynchronous; |
| 4879 } |
| 4880 |
| 4881 @override |
| 4842 bool get isConst { | 4882 bool get isConst { |
| 4843 _isConst ??= const fb.BoolReader().vTableGet(_bp, 12, false); | 4883 _isConst ??= const fb.BoolReader().vTableGet(_bp, 12, false); |
| 4844 return _isConst; | 4884 return _isConst; |
| 4845 } | 4885 } |
| 4846 | 4886 |
| 4847 @override | 4887 @override |
| 4848 bool get isExternal { | 4888 bool get isExternal { |
| 4849 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 11, false); | 4889 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 11, false); |
| 4850 return _isExternal; | 4890 return _isExternal; |
| 4851 } | 4891 } |
| 4852 | 4892 |
| 4853 @override | 4893 @override |
| 4854 bool get isFactory { | 4894 bool get isFactory { |
| 4855 _isFactory ??= const fb.BoolReader().vTableGet(_bp, 8, false); | 4895 _isFactory ??= const fb.BoolReader().vTableGet(_bp, 8, false); |
| 4856 return _isFactory; | 4896 return _isFactory; |
| 4857 } | 4897 } |
| 4858 | 4898 |
| 4859 @override | 4899 @override |
| 4900 bool get isGenerator { |
| 4901 _isGenerator ??= const fb.BoolReader().vTableGet(_bp, 28, false); |
| 4902 return _isGenerator; |
| 4903 } |
| 4904 |
| 4905 @override |
| 4860 bool get isRedirectedConstructor { | 4906 bool get isRedirectedConstructor { |
| 4861 _isRedirectedConstructor ??= const fb.BoolReader().vTableGet(_bp, 13, false)
; | 4907 _isRedirectedConstructor ??= const fb.BoolReader().vTableGet(_bp, 13, false)
; |
| 4862 return _isRedirectedConstructor; | 4908 return _isRedirectedConstructor; |
| 4863 } | 4909 } |
| 4864 | 4910 |
| 4865 @override | 4911 @override |
| 4866 bool get isStatic { | 4912 bool get isStatic { |
| 4867 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 9, false); | 4913 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 9, false); |
| 4868 return _isStatic; | 4914 return _isStatic; |
| 4869 } | 4915 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4963 @override | 5009 @override |
| 4964 Map<String, Object> toJson() { | 5010 Map<String, Object> toJson() { |
| 4965 Map<String, Object> _result = <String, Object>{}; | 5011 Map<String, Object> _result = <String, Object>{}; |
| 4966 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); | 5012 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 4967 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); | 5013 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); |
| 4968 if (constantInitializers.isNotEmpty) _result["constantInitializers"] = const
antInitializers.map((_value) => _value.toJson()).toList(); | 5014 if (constantInitializers.isNotEmpty) _result["constantInitializers"] = const
antInitializers.map((_value) => _value.toJson()).toList(); |
| 4969 if (constCycleSlot != 0) _result["constCycleSlot"] = constCycleSlot; | 5015 if (constCycleSlot != 0) _result["constCycleSlot"] = constCycleSlot; |
| 4970 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); | 5016 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 4971 if (inferredReturnTypeSlot != 0) _result["inferredReturnTypeSlot"] = inferre
dReturnTypeSlot; | 5017 if (inferredReturnTypeSlot != 0) _result["inferredReturnTypeSlot"] = inferre
dReturnTypeSlot; |
| 4972 if (isAbstract != false) _result["isAbstract"] = isAbstract; | 5018 if (isAbstract != false) _result["isAbstract"] = isAbstract; |
| 5019 if (isAsynchronous != false) _result["isAsynchronous"] = isAsynchronous; |
| 4973 if (isConst != false) _result["isConst"] = isConst; | 5020 if (isConst != false) _result["isConst"] = isConst; |
| 4974 if (isExternal != false) _result["isExternal"] = isExternal; | 5021 if (isExternal != false) _result["isExternal"] = isExternal; |
| 4975 if (isFactory != false) _result["isFactory"] = isFactory; | 5022 if (isFactory != false) _result["isFactory"] = isFactory; |
| 5023 if (isGenerator != false) _result["isGenerator"] = isGenerator; |
| 4976 if (isRedirectedConstructor != false) _result["isRedirectedConstructor"] = i
sRedirectedConstructor; | 5024 if (isRedirectedConstructor != false) _result["isRedirectedConstructor"] = i
sRedirectedConstructor; |
| 4977 if (isStatic != false) _result["isStatic"] = isStatic; | 5025 if (isStatic != false) _result["isStatic"] = isStatic; |
| 4978 if (kind != idl.UnlinkedExecutableKind.functionOrMethod) _result["kind"] = k
ind.toString().split('.')[1]; | 5026 if (kind != idl.UnlinkedExecutableKind.functionOrMethod) _result["kind"] = k
ind.toString().split('.')[1]; |
| 4979 if (localFunctions.isNotEmpty) _result["localFunctions"] = localFunctions.ma
p((_value) => _value.toJson()).toList(); | 5027 if (localFunctions.isNotEmpty) _result["localFunctions"] = localFunctions.ma
p((_value) => _value.toJson()).toList(); |
| 4980 if (localLabels.isNotEmpty) _result["localLabels"] = localLabels.map((_value
) => _value.toJson()).toList(); | 5028 if (localLabels.isNotEmpty) _result["localLabels"] = localLabels.map((_value
) => _value.toJson()).toList(); |
| 4981 if (localVariables.isNotEmpty) _result["localVariables"] = localVariables.ma
p((_value) => _value.toJson()).toList(); | 5029 if (localVariables.isNotEmpty) _result["localVariables"] = localVariables.ma
p((_value) => _value.toJson()).toList(); |
| 4982 if (name != '') _result["name"] = name; | 5030 if (name != '') _result["name"] = name; |
| 4983 if (nameEnd != 0) _result["nameEnd"] = nameEnd; | 5031 if (nameEnd != 0) _result["nameEnd"] = nameEnd; |
| 4984 if (nameOffset != 0) _result["nameOffset"] = nameOffset; | 5032 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 4985 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); | 5033 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 4986 if (periodOffset != 0) _result["periodOffset"] = periodOffset; | 5034 if (periodOffset != 0) _result["periodOffset"] = periodOffset; |
| 4987 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); | 5035 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); |
| 4988 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; | 5036 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; |
| 4989 if (returnType != null) _result["returnType"] = returnType.toJson(); | 5037 if (returnType != null) _result["returnType"] = returnType.toJson(); |
| 4990 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); | 5038 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 4991 if (visibleLength != 0) _result["visibleLength"] = visibleLength; | 5039 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 4992 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; | 5040 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 4993 return _result; | 5041 return _result; |
| 4994 } | 5042 } |
| 4995 | 5043 |
| 4996 @override | 5044 @override |
| 4997 Map<String, Object> toMap() => { | 5045 Map<String, Object> toMap() => { |
| 4998 "annotations": annotations, | 5046 "annotations": annotations, |
| 4999 "codeRange": codeRange, | 5047 "codeRange": codeRange, |
| 5000 "constantInitializers": constantInitializers, | 5048 "constantInitializers": constantInitializers, |
| 5001 "constCycleSlot": constCycleSlot, | 5049 "constCycleSlot": constCycleSlot, |
| 5002 "documentationComment": documentationComment, | 5050 "documentationComment": documentationComment, |
| 5003 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 5051 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 5004 "isAbstract": isAbstract, | 5052 "isAbstract": isAbstract, |
| 5053 "isAsynchronous": isAsynchronous, |
| 5005 "isConst": isConst, | 5054 "isConst": isConst, |
| 5006 "isExternal": isExternal, | 5055 "isExternal": isExternal, |
| 5007 "isFactory": isFactory, | 5056 "isFactory": isFactory, |
| 5057 "isGenerator": isGenerator, |
| 5008 "isRedirectedConstructor": isRedirectedConstructor, | 5058 "isRedirectedConstructor": isRedirectedConstructor, |
| 5009 "isStatic": isStatic, | 5059 "isStatic": isStatic, |
| 5010 "kind": kind, | 5060 "kind": kind, |
| 5011 "localFunctions": localFunctions, | 5061 "localFunctions": localFunctions, |
| 5012 "localLabels": localLabels, | 5062 "localLabels": localLabels, |
| 5013 "localVariables": localVariables, | 5063 "localVariables": localVariables, |
| 5014 "name": name, | 5064 "name": name, |
| 5015 "nameEnd": nameEnd, | 5065 "nameEnd": nameEnd, |
| 5016 "nameOffset": nameOffset, | 5066 "nameOffset": nameOffset, |
| 5017 "parameters": parameters, | 5067 "parameters": parameters, |
| (...skipping 3339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8357 "propagatedTypeSlot": propagatedTypeSlot, | 8407 "propagatedTypeSlot": propagatedTypeSlot, |
| 8358 "type": type, | 8408 "type": type, |
| 8359 "visibleLength": visibleLength, | 8409 "visibleLength": visibleLength, |
| 8360 "visibleOffset": visibleOffset, | 8410 "visibleOffset": visibleOffset, |
| 8361 }; | 8411 }; |
| 8362 | 8412 |
| 8363 @override | 8413 @override |
| 8364 String toString() => convert.JSON.encode(toJson()); | 8414 String toString() => convert.JSON.encode(toJson()); |
| 8365 } | 8415 } |
| 8366 | 8416 |
| OLD | NEW |