| 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; |
| 11 import 'idl.dart' as idl; | 11 import 'idl.dart' as idl; |
| 12 | 12 |
| 13 class _ReferenceKindReader extends fb.Reader<idl.ReferenceKind> { | 13 class _ReferenceKindReader extends fb.Reader<idl.ReferenceKind> { |
| 14 const _ReferenceKindReader() : super(); | 14 const _ReferenceKindReader() : super(); |
| 15 | 15 |
| 16 @override | 16 @override |
| 17 int get size => 4; | 17 int get size => 1; |
| 18 | 18 |
| 19 @override | 19 @override |
| 20 idl.ReferenceKind read(fb.BufferPointer bp) { | 20 idl.ReferenceKind read(fb.BufferPointer bp) { |
| 21 int index = const fb.Uint32Reader().read(bp); | 21 int index = const fb.Uint8Reader().read(bp); |
| 22 return idl.ReferenceKind.values[index]; | 22 return idl.ReferenceKind.values[index]; |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 | 25 |
| 26 class _UnlinkedConstOperationReader extends fb.Reader<idl.UnlinkedConstOperation
> { | 26 class _UnlinkedConstOperationReader extends fb.Reader<idl.UnlinkedConstOperation
> { |
| 27 const _UnlinkedConstOperationReader() : super(); | 27 const _UnlinkedConstOperationReader() : super(); |
| 28 | 28 |
| 29 @override | 29 @override |
| 30 int get size => 4; | 30 int get size => 1; |
| 31 | 31 |
| 32 @override | 32 @override |
| 33 idl.UnlinkedConstOperation read(fb.BufferPointer bp) { | 33 idl.UnlinkedConstOperation read(fb.BufferPointer bp) { |
| 34 int index = const fb.Uint32Reader().read(bp); | 34 int index = const fb.Uint8Reader().read(bp); |
| 35 return idl.UnlinkedConstOperation.values[index]; | 35 return idl.UnlinkedConstOperation.values[index]; |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 | 38 |
| 39 class _UnlinkedConstructorInitializerKindReader extends fb.Reader<idl.UnlinkedCo
nstructorInitializerKind> { | 39 class _UnlinkedConstructorInitializerKindReader extends fb.Reader<idl.UnlinkedCo
nstructorInitializerKind> { |
| 40 const _UnlinkedConstructorInitializerKindReader() : super(); | 40 const _UnlinkedConstructorInitializerKindReader() : super(); |
| 41 | 41 |
| 42 @override | 42 @override |
| 43 int get size => 4; | 43 int get size => 1; |
| 44 | 44 |
| 45 @override | 45 @override |
| 46 idl.UnlinkedConstructorInitializerKind read(fb.BufferPointer bp) { | 46 idl.UnlinkedConstructorInitializerKind read(fb.BufferPointer bp) { |
| 47 int index = const fb.Uint32Reader().read(bp); | 47 int index = const fb.Uint8Reader().read(bp); |
| 48 return idl.UnlinkedConstructorInitializerKind.values[index]; | 48 return idl.UnlinkedConstructorInitializerKind.values[index]; |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 class _UnlinkedExecutableKindReader extends fb.Reader<idl.UnlinkedExecutableKind
> { | 52 class _UnlinkedExecutableKindReader extends fb.Reader<idl.UnlinkedExecutableKind
> { |
| 53 const _UnlinkedExecutableKindReader() : super(); | 53 const _UnlinkedExecutableKindReader() : super(); |
| 54 | 54 |
| 55 @override | 55 @override |
| 56 int get size => 4; | 56 int get size => 1; |
| 57 | 57 |
| 58 @override | 58 @override |
| 59 idl.UnlinkedExecutableKind read(fb.BufferPointer bp) { | 59 idl.UnlinkedExecutableKind read(fb.BufferPointer bp) { |
| 60 int index = const fb.Uint32Reader().read(bp); | 60 int index = const fb.Uint8Reader().read(bp); |
| 61 return idl.UnlinkedExecutableKind.values[index]; | 61 return idl.UnlinkedExecutableKind.values[index]; |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 class _UnlinkedParamKindReader extends fb.Reader<idl.UnlinkedParamKind> { | 65 class _UnlinkedParamKindReader extends fb.Reader<idl.UnlinkedParamKind> { |
| 66 const _UnlinkedParamKindReader() : super(); | 66 const _UnlinkedParamKindReader() : super(); |
| 67 | 67 |
| 68 @override | 68 @override |
| 69 int get size => 4; | 69 int get size => 1; |
| 70 | 70 |
| 71 @override | 71 @override |
| 72 idl.UnlinkedParamKind read(fb.BufferPointer bp) { | 72 idl.UnlinkedParamKind read(fb.BufferPointer bp) { |
| 73 int index = const fb.Uint32Reader().read(bp); | 73 int index = const fb.Uint8Reader().read(bp); |
| 74 return idl.UnlinkedParamKind.values[index]; | 74 return idl.UnlinkedParamKind.values[index]; |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 class EntityRefBuilder extends Object with _EntityRefMixin implements idl.Entity
Ref { | 78 class EntityRefBuilder extends Object with _EntityRefMixin implements idl.Entity
Ref { |
| 79 bool _finished = false; | 79 bool _finished = false; |
| 80 | 80 |
| 81 List<int> _implicitFunctionTypeIndices; | 81 List<int> _implicitFunctionTypeIndices; |
| 82 int _paramReference; | 82 int _paramReference; |
| 83 int _reference; | 83 int _reference; |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 _finished = true; | 448 _finished = true; |
| 449 fb.Offset offset_name; | 449 fb.Offset offset_name; |
| 450 if (_name != null) { | 450 if (_name != null) { |
| 451 offset_name = fbBuilder.writeString(_name); | 451 offset_name = fbBuilder.writeString(_name); |
| 452 } | 452 } |
| 453 fbBuilder.startTable(); | 453 fbBuilder.startTable(); |
| 454 if (_dependency != null && _dependency != 0) { | 454 if (_dependency != null && _dependency != 0) { |
| 455 fbBuilder.addUint32(0, _dependency); | 455 fbBuilder.addUint32(0, _dependency); |
| 456 } | 456 } |
| 457 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { | 457 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { |
| 458 fbBuilder.addUint32(3, _kind.index); | 458 fbBuilder.addUint8(3, _kind.index); |
| 459 } | 459 } |
| 460 if (offset_name != null) { | 460 if (offset_name != null) { |
| 461 fbBuilder.addOffset(1, offset_name); | 461 fbBuilder.addOffset(1, offset_name); |
| 462 } | 462 } |
| 463 if (_unit != null && _unit != 0) { | 463 if (_unit != null && _unit != 0) { |
| 464 fbBuilder.addUint32(2, _unit); | 464 fbBuilder.addUint32(2, _unit); |
| 465 } | 465 } |
| 466 return fbBuilder.endTable(); | 466 return fbBuilder.endTable(); |
| 467 } | 467 } |
| 468 } | 468 } |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 offset_name = fbBuilder.writeString(_name); | 842 offset_name = fbBuilder.writeString(_name); |
| 843 } | 843 } |
| 844 fbBuilder.startTable(); | 844 fbBuilder.startTable(); |
| 845 if (_containingReference != null && _containingReference != 0) { | 845 if (_containingReference != null && _containingReference != 0) { |
| 846 fbBuilder.addUint32(5, _containingReference); | 846 fbBuilder.addUint32(5, _containingReference); |
| 847 } | 847 } |
| 848 if (_dependency != null && _dependency != 0) { | 848 if (_dependency != null && _dependency != 0) { |
| 849 fbBuilder.addUint32(1, _dependency); | 849 fbBuilder.addUint32(1, _dependency); |
| 850 } | 850 } |
| 851 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { | 851 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { |
| 852 fbBuilder.addUint32(2, _kind.index); | 852 fbBuilder.addUint8(2, _kind.index); |
| 853 } | 853 } |
| 854 if (offset_name != null) { | 854 if (offset_name != null) { |
| 855 fbBuilder.addOffset(3, offset_name); | 855 fbBuilder.addOffset(3, offset_name); |
| 856 } | 856 } |
| 857 if (_numTypeParameters != null && _numTypeParameters != 0) { | 857 if (_numTypeParameters != null && _numTypeParameters != 0) { |
| 858 fbBuilder.addUint32(4, _numTypeParameters); | 858 fbBuilder.addUint32(4, _numTypeParameters); |
| 859 } | 859 } |
| 860 if (_unit != null && _unit != 0) { | 860 if (_unit != null && _unit != 0) { |
| 861 fbBuilder.addUint32(0, _unit); | 861 fbBuilder.addUint32(0, _unit); |
| 862 } | 862 } |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1762 fb.Offset offset_operations; | 1762 fb.Offset offset_operations; |
| 1763 fb.Offset offset_references; | 1763 fb.Offset offset_references; |
| 1764 fb.Offset offset_strings; | 1764 fb.Offset offset_strings; |
| 1765 if (!(_doubles == null || _doubles.isEmpty)) { | 1765 if (!(_doubles == null || _doubles.isEmpty)) { |
| 1766 offset_doubles = fbBuilder.writeListFloat64(_doubles); | 1766 offset_doubles = fbBuilder.writeListFloat64(_doubles); |
| 1767 } | 1767 } |
| 1768 if (!(_ints == null || _ints.isEmpty)) { | 1768 if (!(_ints == null || _ints.isEmpty)) { |
| 1769 offset_ints = fbBuilder.writeListUint32(_ints); | 1769 offset_ints = fbBuilder.writeListUint32(_ints); |
| 1770 } | 1770 } |
| 1771 if (!(_operations == null || _operations.isEmpty)) { | 1771 if (!(_operations == null || _operations.isEmpty)) { |
| 1772 offset_operations = fbBuilder.writeListUint32(_operations.map((b) => b.ind
ex).toList()); | 1772 offset_operations = fbBuilder.writeListUint8(_operations.map((b) => b.inde
x).toList()); |
| 1773 } | 1773 } |
| 1774 if (!(_references == null || _references.isEmpty)) { | 1774 if (!(_references == null || _references.isEmpty)) { |
| 1775 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); | 1775 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); |
| 1776 } | 1776 } |
| 1777 if (!(_strings == null || _strings.isEmpty)) { | 1777 if (!(_strings == null || _strings.isEmpty)) { |
| 1778 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); | 1778 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); |
| 1779 } | 1779 } |
| 1780 fbBuilder.startTable(); | 1780 fbBuilder.startTable(); |
| 1781 if (offset_doubles != null) { | 1781 if (offset_doubles != null) { |
| 1782 fbBuilder.addOffset(4, offset_doubles); | 1782 fbBuilder.addOffset(4, offset_doubles); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 offset_name = fbBuilder.writeString(_name); | 1947 offset_name = fbBuilder.writeString(_name); |
| 1948 } | 1948 } |
| 1949 fbBuilder.startTable(); | 1949 fbBuilder.startTable(); |
| 1950 if (offset_arguments != null) { | 1950 if (offset_arguments != null) { |
| 1951 fbBuilder.addOffset(3, offset_arguments); | 1951 fbBuilder.addOffset(3, offset_arguments); |
| 1952 } | 1952 } |
| 1953 if (offset_expression != null) { | 1953 if (offset_expression != null) { |
| 1954 fbBuilder.addOffset(1, offset_expression); | 1954 fbBuilder.addOffset(1, offset_expression); |
| 1955 } | 1955 } |
| 1956 if (_kind != null && _kind != idl.UnlinkedConstructorInitializerKind.field)
{ | 1956 if (_kind != null && _kind != idl.UnlinkedConstructorInitializerKind.field)
{ |
| 1957 fbBuilder.addUint32(2, _kind.index); | 1957 fbBuilder.addUint8(2, _kind.index); |
| 1958 } | 1958 } |
| 1959 if (offset_name != null) { | 1959 if (offset_name != null) { |
| 1960 fbBuilder.addOffset(0, offset_name); | 1960 fbBuilder.addOffset(0, offset_name); |
| 1961 } | 1961 } |
| 1962 return fbBuilder.endTable(); | 1962 return fbBuilder.endTable(); |
| 1963 } | 1963 } |
| 1964 } | 1964 } |
| 1965 | 1965 |
| 1966 class _UnlinkedConstructorInitializerReader extends fb.TableReader<_UnlinkedCons
tructorInitializerImpl> { | 1966 class _UnlinkedConstructorInitializerReader extends fb.TableReader<_UnlinkedCons
tructorInitializerImpl> { |
| 1967 const _UnlinkedConstructorInitializerReader(); | 1967 const _UnlinkedConstructorInitializerReader(); |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2810 if (_isFactory == true) { | 2810 if (_isFactory == true) { |
| 2811 fbBuilder.addBool(8, true); | 2811 fbBuilder.addBool(8, true); |
| 2812 } | 2812 } |
| 2813 if (_isRedirectedConstructor == true) { | 2813 if (_isRedirectedConstructor == true) { |
| 2814 fbBuilder.addBool(13, true); | 2814 fbBuilder.addBool(13, true); |
| 2815 } | 2815 } |
| 2816 if (_isStatic == true) { | 2816 if (_isStatic == true) { |
| 2817 fbBuilder.addBool(9, true); | 2817 fbBuilder.addBool(9, true); |
| 2818 } | 2818 } |
| 2819 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { | 2819 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { |
| 2820 fbBuilder.addUint32(4, _kind.index); | 2820 fbBuilder.addUint8(4, _kind.index); |
| 2821 } | 2821 } |
| 2822 if (offset_localFunctions != null) { | 2822 if (offset_localFunctions != null) { |
| 2823 fbBuilder.addOffset(18, offset_localFunctions); | 2823 fbBuilder.addOffset(18, offset_localFunctions); |
| 2824 } | 2824 } |
| 2825 if (offset_localVariables != null) { | 2825 if (offset_localVariables != null) { |
| 2826 fbBuilder.addOffset(19, offset_localVariables); | 2826 fbBuilder.addOffset(19, offset_localVariables); |
| 2827 } | 2827 } |
| 2828 if (offset_name != null) { | 2828 if (offset_name != null) { |
| 2829 fbBuilder.addOffset(1, offset_name); | 2829 fbBuilder.addOffset(1, offset_name); |
| 2830 } | 2830 } |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3791 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 3791 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 3792 fbBuilder.addUint32(2, _inferredTypeSlot); | 3792 fbBuilder.addUint32(2, _inferredTypeSlot); |
| 3793 } | 3793 } |
| 3794 if (_isFunctionTyped == true) { | 3794 if (_isFunctionTyped == true) { |
| 3795 fbBuilder.addBool(5, true); | 3795 fbBuilder.addBool(5, true); |
| 3796 } | 3796 } |
| 3797 if (_isInitializingFormal == true) { | 3797 if (_isInitializingFormal == true) { |
| 3798 fbBuilder.addBool(6, true); | 3798 fbBuilder.addBool(6, true); |
| 3799 } | 3799 } |
| 3800 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { | 3800 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { |
| 3801 fbBuilder.addUint32(4, _kind.index); | 3801 fbBuilder.addUint8(4, _kind.index); |
| 3802 } | 3802 } |
| 3803 if (offset_name != null) { | 3803 if (offset_name != null) { |
| 3804 fbBuilder.addOffset(0, offset_name); | 3804 fbBuilder.addOffset(0, offset_name); |
| 3805 } | 3805 } |
| 3806 if (_nameOffset != null && _nameOffset != 0) { | 3806 if (_nameOffset != null && _nameOffset != 0) { |
| 3807 fbBuilder.addUint32(1, _nameOffset); | 3807 fbBuilder.addUint32(1, _nameOffset); |
| 3808 } | 3808 } |
| 3809 if (offset_parameters != null) { | 3809 if (offset_parameters != null) { |
| 3810 fbBuilder.addOffset(8, offset_parameters); | 3810 fbBuilder.addOffset(8, offset_parameters); |
| 3811 } | 3811 } |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4123 fb.Offset offset_members; | 4123 fb.Offset offset_members; |
| 4124 fb.Offset offset_name; | 4124 fb.Offset offset_name; |
| 4125 if (!(_members == null || _members.isEmpty)) { | 4125 if (!(_members == null || _members.isEmpty)) { |
| 4126 offset_members = fbBuilder.writeList(_members.map((b) => b.finish(fbBuilde
r)).toList()); | 4126 offset_members = fbBuilder.writeList(_members.map((b) => b.finish(fbBuilde
r)).toList()); |
| 4127 } | 4127 } |
| 4128 if (_name != null) { | 4128 if (_name != null) { |
| 4129 offset_name = fbBuilder.writeString(_name); | 4129 offset_name = fbBuilder.writeString(_name); |
| 4130 } | 4130 } |
| 4131 fbBuilder.startTable(); | 4131 fbBuilder.startTable(); |
| 4132 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { | 4132 if (_kind != null && _kind != idl.ReferenceKind.classOrEnum) { |
| 4133 fbBuilder.addUint32(1, _kind.index); | 4133 fbBuilder.addUint8(1, _kind.index); |
| 4134 } | 4134 } |
| 4135 if (offset_members != null) { | 4135 if (offset_members != null) { |
| 4136 fbBuilder.addOffset(2, offset_members); | 4136 fbBuilder.addOffset(2, offset_members); |
| 4137 } | 4137 } |
| 4138 if (offset_name != null) { | 4138 if (offset_name != null) { |
| 4139 fbBuilder.addOffset(0, offset_name); | 4139 fbBuilder.addOffset(0, offset_name); |
| 4140 } | 4140 } |
| 4141 if (_numTypeParameters != null && _numTypeParameters != 0) { | 4141 if (_numTypeParameters != null && _numTypeParameters != 0) { |
| 4142 fbBuilder.addUint32(3, _numTypeParameters); | 4142 fbBuilder.addUint32(3, _numTypeParameters); |
| 4143 } | 4143 } |
| (...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5639 "isStatic": isStatic, | 5639 "isStatic": isStatic, |
| 5640 "name": name, | 5640 "name": name, |
| 5641 "nameOffset": nameOffset, | 5641 "nameOffset": nameOffset, |
| 5642 "propagatedTypeSlot": propagatedTypeSlot, | 5642 "propagatedTypeSlot": propagatedTypeSlot, |
| 5643 "type": type, | 5643 "type": type, |
| 5644 "visibleLength": visibleLength, | 5644 "visibleLength": visibleLength, |
| 5645 "visibleOffset": visibleOffset, | 5645 "visibleOffset": visibleOffset, |
| 5646 }; | 5646 }; |
| 5647 } | 5647 } |
| 5648 | 5648 |
| OLD | NEW |