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 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 String toString() => convert.JSON.encode(toJson()); | 1711 String toString() => convert.JSON.encode(toJson()); |
1712 } | 1712 } |
1713 | 1713 |
1714 class UnitIndexBuilder extends Object with _UnitIndexMixin implements idl.UnitIn
dex { | 1714 class UnitIndexBuilder extends Object with _UnitIndexMixin implements idl.UnitIn
dex { |
1715 bool _finished = false; | 1715 bool _finished = false; |
1716 | 1716 |
1717 List<idl.IndexNameKind> _definedNameKinds; | 1717 List<idl.IndexNameKind> _definedNameKinds; |
1718 List<int> _definedNameOffsets; | 1718 List<int> _definedNameOffsets; |
1719 List<int> _definedNames; | 1719 List<int> _definedNames; |
1720 int _unit; | 1720 int _unit; |
| 1721 List<bool> _usedElementIsQualifiedFlags; |
1721 List<idl.IndexRelationKind> _usedElementKinds; | 1722 List<idl.IndexRelationKind> _usedElementKinds; |
1722 List<int> _usedElementLengths; | 1723 List<int> _usedElementLengths; |
1723 List<int> _usedElementOffsets; | 1724 List<int> _usedElementOffsets; |
1724 List<int> _usedElements; | 1725 List<int> _usedElements; |
1725 List<idl.IndexRelationKind> _usedNameKinds; | 1726 List<idl.IndexRelationKind> _usedNameKinds; |
1726 List<int> _usedNameOffsets; | 1727 List<int> _usedNameOffsets; |
1727 List<int> _usedNames; | 1728 List<int> _usedNames; |
1728 | 1729 |
1729 @override | 1730 @override |
1730 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; | 1731 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 * Index into [PackageIndex.unitLibraryUris] and [PackageIndex.unitUnitUris] | 1773 * Index into [PackageIndex.unitLibraryUris] and [PackageIndex.unitUnitUris] |
1773 * for the library specific unit that corresponds to this [UnitIndex]. | 1774 * for the library specific unit that corresponds to this [UnitIndex]. |
1774 */ | 1775 */ |
1775 void set unit(int _value) { | 1776 void set unit(int _value) { |
1776 assert(!_finished); | 1777 assert(!_finished); |
1777 assert(_value == null || _value >= 0); | 1778 assert(_value == null || _value >= 0); |
1778 _unit = _value; | 1779 _unit = _value; |
1779 } | 1780 } |
1780 | 1781 |
1781 @override | 1782 @override |
| 1783 List<bool> get usedElementIsQualifiedFlags => _usedElementIsQualifiedFlags ??=
<bool>[]; |
| 1784 |
| 1785 /** |
| 1786 * Each item of this list is the `true` if the corresponding element usage |
| 1787 * is qualified with some prefix. |
| 1788 */ |
| 1789 void set usedElementIsQualifiedFlags(List<bool> _value) { |
| 1790 assert(!_finished); |
| 1791 _usedElementIsQualifiedFlags = _value; |
| 1792 } |
| 1793 |
| 1794 @override |
1782 List<idl.IndexRelationKind> get usedElementKinds => _usedElementKinds ??= <idl
.IndexRelationKind>[]; | 1795 List<idl.IndexRelationKind> get usedElementKinds => _usedElementKinds ??= <idl
.IndexRelationKind>[]; |
1783 | 1796 |
1784 /** | 1797 /** |
1785 * Each item of this list is the kind of the element usage. | 1798 * Each item of this list is the kind of the element usage. |
1786 */ | 1799 */ |
1787 void set usedElementKinds(List<idl.IndexRelationKind> _value) { | 1800 void set usedElementKinds(List<idl.IndexRelationKind> _value) { |
1788 assert(!_finished); | 1801 assert(!_finished); |
1789 _usedElementKinds = _value; | 1802 _usedElementKinds = _value; |
1790 } | 1803 } |
1791 | 1804 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1859 * Each item of this list is the index into [PackageIndex.strings] for a | 1872 * Each item of this list is the index into [PackageIndex.strings] for a |
1860 * used name. The list is sorted in ascending order, so that the client can | 1873 * used name. The list is sorted in ascending order, so that the client can |
1861 * quickly find name uses in this [UnitIndex]. | 1874 * quickly find name uses in this [UnitIndex]. |
1862 */ | 1875 */ |
1863 void set usedNames(List<int> _value) { | 1876 void set usedNames(List<int> _value) { |
1864 assert(!_finished); | 1877 assert(!_finished); |
1865 assert(_value == null || _value.every((e) => e >= 0)); | 1878 assert(_value == null || _value.every((e) => e >= 0)); |
1866 _usedNames = _value; | 1879 _usedNames = _value; |
1867 } | 1880 } |
1868 | 1881 |
1869 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<idl.IndexRelationKind> usedEl
ementKinds, List<int> usedElementLengths, List<int> usedElementOffsets, List<int
> usedElements, List<idl.IndexRelationKind> usedNameKinds, List<int> usedNameOff
sets, List<int> usedNames}) | 1882 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<bool> usedElementIsQualifiedF
lags, List<idl.IndexRelationKind> usedElementKinds, List<int> usedElementLengths
, List<int> usedElementOffsets, List<int> usedElements, List<idl.IndexRelationKi
nd> usedNameKinds, List<int> usedNameOffsets, List<int> usedNames}) |
1870 : _definedNameKinds = definedNameKinds, | 1883 : _definedNameKinds = definedNameKinds, |
1871 _definedNameOffsets = definedNameOffsets, | 1884 _definedNameOffsets = definedNameOffsets, |
1872 _definedNames = definedNames, | 1885 _definedNames = definedNames, |
1873 _unit = unit, | 1886 _unit = unit, |
| 1887 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, |
1874 _usedElementKinds = usedElementKinds, | 1888 _usedElementKinds = usedElementKinds, |
1875 _usedElementLengths = usedElementLengths, | 1889 _usedElementLengths = usedElementLengths, |
1876 _usedElementOffsets = usedElementOffsets, | 1890 _usedElementOffsets = usedElementOffsets, |
1877 _usedElements = usedElements, | 1891 _usedElements = usedElements, |
1878 _usedNameKinds = usedNameKinds, | 1892 _usedNameKinds = usedNameKinds, |
1879 _usedNameOffsets = usedNameOffsets, | 1893 _usedNameOffsets = usedNameOffsets, |
1880 _usedNames = usedNames; | 1894 _usedNames = usedNames; |
1881 | 1895 |
1882 fb.Offset finish(fb.Builder fbBuilder) { | 1896 fb.Offset finish(fb.Builder fbBuilder) { |
1883 assert(!_finished); | 1897 assert(!_finished); |
1884 _finished = true; | 1898 _finished = true; |
1885 fb.Offset offset_definedNameKinds; | 1899 fb.Offset offset_definedNameKinds; |
1886 fb.Offset offset_definedNameOffsets; | 1900 fb.Offset offset_definedNameOffsets; |
1887 fb.Offset offset_definedNames; | 1901 fb.Offset offset_definedNames; |
| 1902 fb.Offset offset_usedElementIsQualifiedFlags; |
1888 fb.Offset offset_usedElementKinds; | 1903 fb.Offset offset_usedElementKinds; |
1889 fb.Offset offset_usedElementLengths; | 1904 fb.Offset offset_usedElementLengths; |
1890 fb.Offset offset_usedElementOffsets; | 1905 fb.Offset offset_usedElementOffsets; |
1891 fb.Offset offset_usedElements; | 1906 fb.Offset offset_usedElements; |
1892 fb.Offset offset_usedNameKinds; | 1907 fb.Offset offset_usedNameKinds; |
1893 fb.Offset offset_usedNameOffsets; | 1908 fb.Offset offset_usedNameOffsets; |
1894 fb.Offset offset_usedNames; | 1909 fb.Offset offset_usedNames; |
1895 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { | 1910 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { |
1896 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); | 1911 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); |
1897 } | 1912 } |
1898 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { | 1913 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { |
1899 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; | 1914 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; |
1900 } | 1915 } |
1901 if (!(_definedNames == null || _definedNames.isEmpty)) { | 1916 if (!(_definedNames == null || _definedNames.isEmpty)) { |
1902 offset_definedNames = fbBuilder.writeListUint32(_definedNames); | 1917 offset_definedNames = fbBuilder.writeListUint32(_definedNames); |
1903 } | 1918 } |
| 1919 if (!(_usedElementIsQualifiedFlags == null || _usedElementIsQualifiedFlags.i
sEmpty)) { |
| 1920 offset_usedElementIsQualifiedFlags = fbBuilder.writeListBool(_usedElementI
sQualifiedFlags); |
| 1921 } |
1904 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { | 1922 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { |
1905 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); | 1923 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); |
1906 } | 1924 } |
1907 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { | 1925 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { |
1908 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; | 1926 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; |
1909 } | 1927 } |
1910 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { | 1928 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { |
1911 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; | 1929 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; |
1912 } | 1930 } |
1913 if (!(_usedElements == null || _usedElements.isEmpty)) { | 1931 if (!(_usedElements == null || _usedElements.isEmpty)) { |
1914 offset_usedElements = fbBuilder.writeListUint32(_usedElements); | 1932 offset_usedElements = fbBuilder.writeListUint32(_usedElements); |
1915 } | 1933 } |
1916 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { | 1934 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { |
1917 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); | 1935 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); |
1918 } | 1936 } |
1919 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { | 1937 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { |
1920 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); | 1938 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); |
1921 } | 1939 } |
1922 if (!(_usedNames == null || _usedNames.isEmpty)) { | 1940 if (!(_usedNames == null || _usedNames.isEmpty)) { |
1923 offset_usedNames = fbBuilder.writeListUint32(_usedNames); | 1941 offset_usedNames = fbBuilder.writeListUint32(_usedNames); |
1924 } | 1942 } |
1925 fbBuilder.startTable(); | 1943 fbBuilder.startTable(); |
1926 if (offset_definedNameKinds != null) { | 1944 if (offset_definedNameKinds != null) { |
1927 fbBuilder.addOffset(6, offset_definedNameKinds); | 1945 fbBuilder.addOffset(7, offset_definedNameKinds); |
1928 } | 1946 } |
1929 if (offset_definedNameOffsets != null) { | 1947 if (offset_definedNameOffsets != null) { |
1930 fbBuilder.addOffset(7, offset_definedNameOffsets); | 1948 fbBuilder.addOffset(8, offset_definedNameOffsets); |
1931 } | 1949 } |
1932 if (offset_definedNames != null) { | 1950 if (offset_definedNames != null) { |
1933 fbBuilder.addOffset(5, offset_definedNames); | 1951 fbBuilder.addOffset(6, offset_definedNames); |
1934 } | 1952 } |
1935 if (_unit != null && _unit != 0) { | 1953 if (_unit != null && _unit != 0) { |
1936 fbBuilder.addUint32(0, _unit); | 1954 fbBuilder.addUint32(0, _unit); |
1937 } | 1955 } |
| 1956 if (offset_usedElementIsQualifiedFlags != null) { |
| 1957 fbBuilder.addOffset(5, offset_usedElementIsQualifiedFlags); |
| 1958 } |
1938 if (offset_usedElementKinds != null) { | 1959 if (offset_usedElementKinds != null) { |
1939 fbBuilder.addOffset(4, offset_usedElementKinds); | 1960 fbBuilder.addOffset(2, offset_usedElementKinds); |
1940 } | 1961 } |
1941 if (offset_usedElementLengths != null) { | 1962 if (offset_usedElementLengths != null) { |
1942 fbBuilder.addOffset(1, offset_usedElementLengths); | 1963 fbBuilder.addOffset(4, offset_usedElementLengths); |
1943 } | 1964 } |
1944 if (offset_usedElementOffsets != null) { | 1965 if (offset_usedElementOffsets != null) { |
1945 fbBuilder.addOffset(2, offset_usedElementOffsets); | 1966 fbBuilder.addOffset(3, offset_usedElementOffsets); |
1946 } | 1967 } |
1947 if (offset_usedElements != null) { | 1968 if (offset_usedElements != null) { |
1948 fbBuilder.addOffset(3, offset_usedElements); | 1969 fbBuilder.addOffset(1, offset_usedElements); |
1949 } | 1970 } |
1950 if (offset_usedNameKinds != null) { | 1971 if (offset_usedNameKinds != null) { |
1951 fbBuilder.addOffset(10, offset_usedNameKinds); | 1972 fbBuilder.addOffset(11, offset_usedNameKinds); |
1952 } | 1973 } |
1953 if (offset_usedNameOffsets != null) { | 1974 if (offset_usedNameOffsets != null) { |
1954 fbBuilder.addOffset(9, offset_usedNameOffsets); | 1975 fbBuilder.addOffset(10, offset_usedNameOffsets); |
1955 } | 1976 } |
1956 if (offset_usedNames != null) { | 1977 if (offset_usedNames != null) { |
1957 fbBuilder.addOffset(8, offset_usedNames); | 1978 fbBuilder.addOffset(9, offset_usedNames); |
1958 } | 1979 } |
1959 return fbBuilder.endTable(); | 1980 return fbBuilder.endTable(); |
1960 } | 1981 } |
1961 } | 1982 } |
1962 | 1983 |
1963 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { | 1984 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { |
1964 const _UnitIndexReader(); | 1985 const _UnitIndexReader(); |
1965 | 1986 |
1966 @override | 1987 @override |
1967 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); | 1988 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); |
1968 } | 1989 } |
1969 | 1990 |
1970 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { | 1991 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { |
1971 final fb.BufferPointer _bp; | 1992 final fb.BufferPointer _bp; |
1972 | 1993 |
1973 _UnitIndexImpl(this._bp); | 1994 _UnitIndexImpl(this._bp); |
1974 | 1995 |
1975 List<idl.IndexNameKind> _definedNameKinds; | 1996 List<idl.IndexNameKind> _definedNameKinds; |
1976 List<int> _definedNameOffsets; | 1997 List<int> _definedNameOffsets; |
1977 List<int> _definedNames; | 1998 List<int> _definedNames; |
1978 int _unit; | 1999 int _unit; |
| 2000 List<bool> _usedElementIsQualifiedFlags; |
1979 List<idl.IndexRelationKind> _usedElementKinds; | 2001 List<idl.IndexRelationKind> _usedElementKinds; |
1980 List<int> _usedElementLengths; | 2002 List<int> _usedElementLengths; |
1981 List<int> _usedElementOffsets; | 2003 List<int> _usedElementOffsets; |
1982 List<int> _usedElements; | 2004 List<int> _usedElements; |
1983 List<idl.IndexRelationKind> _usedNameKinds; | 2005 List<idl.IndexRelationKind> _usedNameKinds; |
1984 List<int> _usedNameOffsets; | 2006 List<int> _usedNameOffsets; |
1985 List<int> _usedNames; | 2007 List<int> _usedNames; |
1986 | 2008 |
1987 @override | 2009 @override |
1988 List<idl.IndexNameKind> get definedNameKinds { | 2010 List<idl.IndexNameKind> get definedNameKinds { |
1989 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); | 2011 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 7, const <idl.IndexNameKind>[]); |
1990 return _definedNameKinds; | 2012 return _definedNameKinds; |
1991 } | 2013 } |
1992 | 2014 |
1993 @override | 2015 @override |
1994 List<int> get definedNameOffsets { | 2016 List<int> get definedNameOffsets { |
1995 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); | 2017 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const
<int>[]); |
1996 return _definedNameOffsets; | 2018 return _definedNameOffsets; |
1997 } | 2019 } |
1998 | 2020 |
1999 @override | 2021 @override |
2000 List<int> get definedNames { | 2022 List<int> get definedNames { |
2001 _definedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 5, const <int>[
]); | 2023 _definedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 6, const <int>[
]); |
2002 return _definedNames; | 2024 return _definedNames; |
2003 } | 2025 } |
2004 | 2026 |
2005 @override | 2027 @override |
2006 int get unit { | 2028 int get unit { |
2007 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); | 2029 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); |
2008 return _unit; | 2030 return _unit; |
2009 } | 2031 } |
2010 | 2032 |
2011 @override | 2033 @override |
| 2034 List<bool> get usedElementIsQualifiedFlags { |
| 2035 _usedElementIsQualifiedFlags ??= const fb.BoolListReader().vTableGet(_bp, 5,
const <bool>[]); |
| 2036 return _usedElementIsQualifiedFlags; |
| 2037 } |
| 2038 |
| 2039 @override |
2012 List<idl.IndexRelationKind> get usedElementKinds { | 2040 List<idl.IndexRelationKind> get usedElementKinds { |
2013 _usedElementKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _Inde
xRelationKindReader()).vTableGet(_bp, 4, const <idl.IndexRelationKind>[]); | 2041 _usedElementKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _Inde
xRelationKindReader()).vTableGet(_bp, 2, const <idl.IndexRelationKind>[]); |
2014 return _usedElementKinds; | 2042 return _usedElementKinds; |
2015 } | 2043 } |
2016 | 2044 |
2017 @override | 2045 @override |
2018 List<int> get usedElementLengths { | 2046 List<int> get usedElementLengths { |
2019 _usedElementLengths ??= const fb.Uint32ListReader().vTableGet(_bp, 1, const
<int>[]); | 2047 _usedElementLengths ??= const fb.Uint32ListReader().vTableGet(_bp, 4, const
<int>[]); |
2020 return _usedElementLengths; | 2048 return _usedElementLengths; |
2021 } | 2049 } |
2022 | 2050 |
2023 @override | 2051 @override |
2024 List<int> get usedElementOffsets { | 2052 List<int> get usedElementOffsets { |
2025 _usedElementOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 2, const
<int>[]); | 2053 _usedElementOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const
<int>[]); |
2026 return _usedElementOffsets; | 2054 return _usedElementOffsets; |
2027 } | 2055 } |
2028 | 2056 |
2029 @override | 2057 @override |
2030 List<int> get usedElements { | 2058 List<int> get usedElements { |
2031 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const <int>[
]); | 2059 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 1, const <int>[
]); |
2032 return _usedElements; | 2060 return _usedElements; |
2033 } | 2061 } |
2034 | 2062 |
2035 @override | 2063 @override |
2036 List<idl.IndexRelationKind> get usedNameKinds { | 2064 List<idl.IndexRelationKind> get usedNameKinds { |
2037 _usedNameKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _IndexRe
lationKindReader()).vTableGet(_bp, 10, const <idl.IndexRelationKind>[]); | 2065 _usedNameKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _IndexRe
lationKindReader()).vTableGet(_bp, 11, const <idl.IndexRelationKind>[]); |
2038 return _usedNameKinds; | 2066 return _usedNameKinds; |
2039 } | 2067 } |
2040 | 2068 |
2041 @override | 2069 @override |
2042 List<int> get usedNameOffsets { | 2070 List<int> get usedNameOffsets { |
2043 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); | 2071 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 10, const <i
nt>[]); |
2044 return _usedNameOffsets; | 2072 return _usedNameOffsets; |
2045 } | 2073 } |
2046 | 2074 |
2047 @override | 2075 @override |
2048 List<int> get usedNames { | 2076 List<int> get usedNames { |
2049 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); | 2077 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <int>[]); |
2050 return _usedNames; | 2078 return _usedNames; |
2051 } | 2079 } |
2052 } | 2080 } |
2053 | 2081 |
2054 abstract class _UnitIndexMixin implements idl.UnitIndex { | 2082 abstract class _UnitIndexMixin implements idl.UnitIndex { |
2055 @override | 2083 @override |
2056 Map<String, Object> toJson() { | 2084 Map<String, Object> toJson() { |
2057 Map<String, Object> _result = <String, Object>{}; | 2085 Map<String, Object> _result = <String, Object>{}; |
2058 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2086 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
2059 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; | 2087 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; |
2060 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; | 2088 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; |
2061 if (unit != 0) _result["unit"] = unit; | 2089 if (unit != 0) _result["unit"] = unit; |
| 2090 if (usedElementIsQualifiedFlags.isNotEmpty) _result["usedElementIsQualifiedF
lags"] = usedElementIsQualifiedFlags; |
2062 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2091 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
2063 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; | 2092 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; |
2064 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; | 2093 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; |
2065 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; | 2094 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; |
2066 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); | 2095 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); |
2067 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; | 2096 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; |
2068 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; | 2097 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; |
2069 return _result; | 2098 return _result; |
2070 } | 2099 } |
2071 | 2100 |
2072 @override | 2101 @override |
2073 Map<String, Object> toMap() => { | 2102 Map<String, Object> toMap() => { |
2074 "definedNameKinds": definedNameKinds, | 2103 "definedNameKinds": definedNameKinds, |
2075 "definedNameOffsets": definedNameOffsets, | 2104 "definedNameOffsets": definedNameOffsets, |
2076 "definedNames": definedNames, | 2105 "definedNames": definedNames, |
2077 "unit": unit, | 2106 "unit": unit, |
| 2107 "usedElementIsQualifiedFlags": usedElementIsQualifiedFlags, |
2078 "usedElementKinds": usedElementKinds, | 2108 "usedElementKinds": usedElementKinds, |
2079 "usedElementLengths": usedElementLengths, | 2109 "usedElementLengths": usedElementLengths, |
2080 "usedElementOffsets": usedElementOffsets, | 2110 "usedElementOffsets": usedElementOffsets, |
2081 "usedElements": usedElements, | 2111 "usedElements": usedElements, |
2082 "usedNameKinds": usedNameKinds, | 2112 "usedNameKinds": usedNameKinds, |
2083 "usedNameOffsets": usedNameOffsets, | 2113 "usedNameOffsets": usedNameOffsets, |
2084 "usedNames": usedNames, | 2114 "usedNames": usedNames, |
2085 }; | 2115 }; |
2086 | 2116 |
2087 @override | 2117 @override |
(...skipping 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7240 "propagatedTypeSlot": propagatedTypeSlot, | 7270 "propagatedTypeSlot": propagatedTypeSlot, |
7241 "type": type, | 7271 "type": type, |
7242 "visibleLength": visibleLength, | 7272 "visibleLength": visibleLength, |
7243 "visibleOffset": visibleOffset, | 7273 "visibleOffset": visibleOffset, |
7244 }; | 7274 }; |
7245 | 7275 |
7246 @override | 7276 @override |
7247 String toString() => convert.JSON.encode(toJson()); | 7277 String toString() => convert.JSON.encode(toJson()); |
7248 } | 7278 } |
7249 | 7279 |
OLD | NEW |