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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 void set strings(List<String> _value) { | 1502 void set strings(List<String> _value) { |
1503 assert(!_finished); | 1503 assert(!_finished); |
1504 _strings = _value; | 1504 _strings = _value; |
1505 } | 1505 } |
1506 | 1506 |
1507 @override | 1507 @override |
1508 List<int> get unitLibraryUris => _unitLibraryUris ??= <int>[]; | 1508 List<int> get unitLibraryUris => _unitLibraryUris ??= <int>[]; |
1509 | 1509 |
1510 /** | 1510 /** |
1511 * Each item of this list corresponds to the library URI of a unique library | 1511 * Each item of this list corresponds to the library URI of a unique library |
1512 * specific unit referenced in the [PackageIndex]. | 1512 * specific unit referenced in the [PackageIndex]. It is an index into |
| 1513 * [strings] list. |
1513 */ | 1514 */ |
1514 void set unitLibraryUris(List<int> _value) { | 1515 void set unitLibraryUris(List<int> _value) { |
1515 assert(!_finished); | 1516 assert(!_finished); |
1516 assert(_value == null || _value.every((e) => e >= 0)); | 1517 assert(_value == null || _value.every((e) => e >= 0)); |
1517 _unitLibraryUris = _value; | 1518 _unitLibraryUris = _value; |
1518 } | 1519 } |
1519 | 1520 |
1520 @override | 1521 @override |
1521 List<UnitIndexBuilder> get units => _units ??= <UnitIndexBuilder>[]; | 1522 List<UnitIndexBuilder> get units => _units ??= <UnitIndexBuilder>[]; |
1522 | 1523 |
1523 /** | 1524 /** |
1524 * List of indexes of each unit in this [PackageIndex]. | 1525 * List of indexes of each unit in this [PackageIndex]. |
1525 */ | 1526 */ |
1526 void set units(List<UnitIndexBuilder> _value) { | 1527 void set units(List<UnitIndexBuilder> _value) { |
1527 assert(!_finished); | 1528 assert(!_finished); |
1528 _units = _value; | 1529 _units = _value; |
1529 } | 1530 } |
1530 | 1531 |
1531 @override | 1532 @override |
1532 List<int> get unitUnitUris => _unitUnitUris ??= <int>[]; | 1533 List<int> get unitUnitUris => _unitUnitUris ??= <int>[]; |
1533 | 1534 |
1534 /** | 1535 /** |
1535 * Each item of this list corresponds to the unit URI of a unique library | 1536 * Each item of this list corresponds to the unit URI of a unique library |
1536 * specific unit referenced in the [PackageIndex]. | 1537 * specific unit referenced in the [PackageIndex]. It is an index into |
| 1538 * [strings] list. |
1537 */ | 1539 */ |
1538 void set unitUnitUris(List<int> _value) { | 1540 void set unitUnitUris(List<int> _value) { |
1539 assert(!_finished); | 1541 assert(!_finished); |
1540 assert(_value == null || _value.every((e) => e >= 0)); | 1542 assert(_value == null || _value.every((e) => e >= 0)); |
1541 _unitUnitUris = _value; | 1543 _unitUnitUris = _value; |
1542 } | 1544 } |
1543 | 1545 |
1544 PackageIndexBuilder({List<idl.IndexSyntheticElementKind> elementKinds, List<in
t> elementOffsets, List<int> elementUnits, List<String> strings, List<int> unitL
ibraryUris, List<UnitIndexBuilder> units, List<int> unitUnitUris}) | 1546 PackageIndexBuilder({List<idl.IndexSyntheticElementKind> elementKinds, List<in
t> elementOffsets, List<int> elementUnits, List<String> strings, List<int> unitL
ibraryUris, List<UnitIndexBuilder> units, List<int> unitUnitUris}) |
1545 : _elementKinds = elementKinds, | 1547 : _elementKinds = elementKinds, |
1546 _elementOffsets = elementOffsets, | 1548 _elementOffsets = elementOffsets, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 bool _finished = false; | 1715 bool _finished = false; |
1714 | 1716 |
1715 List<idl.IndexNameKind> _definedNameKinds; | 1717 List<idl.IndexNameKind> _definedNameKinds; |
1716 List<int> _definedNameOffsets; | 1718 List<int> _definedNameOffsets; |
1717 List<int> _definedNames; | 1719 List<int> _definedNames; |
1718 int _unit; | 1720 int _unit; |
1719 List<idl.IndexRelationKind> _usedElementKinds; | 1721 List<idl.IndexRelationKind> _usedElementKinds; |
1720 List<int> _usedElementLengths; | 1722 List<int> _usedElementLengths; |
1721 List<int> _usedElementOffsets; | 1723 List<int> _usedElementOffsets; |
1722 List<int> _usedElements; | 1724 List<int> _usedElements; |
| 1725 List<idl.IndexRelationKind> _usedNameKinds; |
| 1726 List<int> _usedNameOffsets; |
| 1727 List<int> _usedNames; |
1723 | 1728 |
1724 @override | 1729 @override |
1725 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; | 1730 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; |
1726 | 1731 |
1727 /** | 1732 /** |
1728 * Each item of this list is the kind of an element defined in this unit. | 1733 * Each item of this list is the kind of an element defined in this unit. |
1729 */ | 1734 */ |
1730 void set definedNameKinds(List<idl.IndexNameKind> _value) { | 1735 void set definedNameKinds(List<idl.IndexNameKind> _value) { |
1731 assert(!_finished); | 1736 assert(!_finished); |
1732 _definedNameKinds = _value; | 1737 _definedNameKinds = _value; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 * Each item of this list is the index into [PackageIndex.elementUnits] and | 1821 * Each item of this list is the index into [PackageIndex.elementUnits] and |
1817 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so | 1822 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so |
1818 * that the client can quickly find element references in this [UnitIndex]. | 1823 * that the client can quickly find element references in this [UnitIndex]. |
1819 */ | 1824 */ |
1820 void set usedElements(List<int> _value) { | 1825 void set usedElements(List<int> _value) { |
1821 assert(!_finished); | 1826 assert(!_finished); |
1822 assert(_value == null || _value.every((e) => e >= 0)); | 1827 assert(_value == null || _value.every((e) => e >= 0)); |
1823 _usedElements = _value; | 1828 _usedElements = _value; |
1824 } | 1829 } |
1825 | 1830 |
1826 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}) | 1831 @override |
| 1832 List<idl.IndexRelationKind> get usedNameKinds => _usedNameKinds ??= <idl.Index
RelationKind>[]; |
| 1833 |
| 1834 /** |
| 1835 * Each item of this list is the kind of the name usage. |
| 1836 */ |
| 1837 void set usedNameKinds(List<idl.IndexRelationKind> _value) { |
| 1838 assert(!_finished); |
| 1839 _usedNameKinds = _value; |
| 1840 } |
| 1841 |
| 1842 @override |
| 1843 List<int> get usedNameOffsets => _usedNameOffsets ??= <int>[]; |
| 1844 |
| 1845 /** |
| 1846 * Each item of this list is the offset of the name usage relative to the |
| 1847 * beginning of the file. |
| 1848 */ |
| 1849 void set usedNameOffsets(List<int> _value) { |
| 1850 assert(!_finished); |
| 1851 assert(_value == null || _value.every((e) => e >= 0)); |
| 1852 _usedNameOffsets = _value; |
| 1853 } |
| 1854 |
| 1855 @override |
| 1856 List<int> get usedNames => _usedNames ??= <int>[]; |
| 1857 |
| 1858 /** |
| 1859 * 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 |
| 1861 * quickly find name uses in this [UnitIndex]. |
| 1862 */ |
| 1863 void set usedNames(List<int> _value) { |
| 1864 assert(!_finished); |
| 1865 assert(_value == null || _value.every((e) => e >= 0)); |
| 1866 _usedNames = _value; |
| 1867 } |
| 1868 |
| 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}) |
1827 : _definedNameKinds = definedNameKinds, | 1870 : _definedNameKinds = definedNameKinds, |
1828 _definedNameOffsets = definedNameOffsets, | 1871 _definedNameOffsets = definedNameOffsets, |
1829 _definedNames = definedNames, | 1872 _definedNames = definedNames, |
1830 _unit = unit, | 1873 _unit = unit, |
1831 _usedElementKinds = usedElementKinds, | 1874 _usedElementKinds = usedElementKinds, |
1832 _usedElementLengths = usedElementLengths, | 1875 _usedElementLengths = usedElementLengths, |
1833 _usedElementOffsets = usedElementOffsets, | 1876 _usedElementOffsets = usedElementOffsets, |
1834 _usedElements = usedElements; | 1877 _usedElements = usedElements, |
| 1878 _usedNameKinds = usedNameKinds, |
| 1879 _usedNameOffsets = usedNameOffsets, |
| 1880 _usedNames = usedNames; |
1835 | 1881 |
1836 fb.Offset finish(fb.Builder fbBuilder) { | 1882 fb.Offset finish(fb.Builder fbBuilder) { |
1837 assert(!_finished); | 1883 assert(!_finished); |
1838 _finished = true; | 1884 _finished = true; |
1839 fb.Offset offset_definedNameKinds; | 1885 fb.Offset offset_definedNameKinds; |
1840 fb.Offset offset_definedNameOffsets; | 1886 fb.Offset offset_definedNameOffsets; |
1841 fb.Offset offset_definedNames; | 1887 fb.Offset offset_definedNames; |
1842 fb.Offset offset_usedElementKinds; | 1888 fb.Offset offset_usedElementKinds; |
1843 fb.Offset offset_usedElementLengths; | 1889 fb.Offset offset_usedElementLengths; |
1844 fb.Offset offset_usedElementOffsets; | 1890 fb.Offset offset_usedElementOffsets; |
1845 fb.Offset offset_usedElements; | 1891 fb.Offset offset_usedElements; |
| 1892 fb.Offset offset_usedNameKinds; |
| 1893 fb.Offset offset_usedNameOffsets; |
| 1894 fb.Offset offset_usedNames; |
1846 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { | 1895 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { |
1847 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); | 1896 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); |
1848 } | 1897 } |
1849 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { | 1898 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { |
1850 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; | 1899 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; |
1851 } | 1900 } |
1852 if (!(_definedNames == null || _definedNames.isEmpty)) { | 1901 if (!(_definedNames == null || _definedNames.isEmpty)) { |
1853 offset_definedNames = fbBuilder.writeListUint32(_definedNames); | 1902 offset_definedNames = fbBuilder.writeListUint32(_definedNames); |
1854 } | 1903 } |
1855 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { | 1904 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { |
1856 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); | 1905 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); |
1857 } | 1906 } |
1858 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { | 1907 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { |
1859 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; | 1908 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; |
1860 } | 1909 } |
1861 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { | 1910 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { |
1862 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; | 1911 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; |
1863 } | 1912 } |
1864 if (!(_usedElements == null || _usedElements.isEmpty)) { | 1913 if (!(_usedElements == null || _usedElements.isEmpty)) { |
1865 offset_usedElements = fbBuilder.writeListUint32(_usedElements); | 1914 offset_usedElements = fbBuilder.writeListUint32(_usedElements); |
1866 } | 1915 } |
| 1916 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { |
| 1917 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); |
| 1918 } |
| 1919 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { |
| 1920 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); |
| 1921 } |
| 1922 if (!(_usedNames == null || _usedNames.isEmpty)) { |
| 1923 offset_usedNames = fbBuilder.writeListUint32(_usedNames); |
| 1924 } |
1867 fbBuilder.startTable(); | 1925 fbBuilder.startTable(); |
1868 if (offset_definedNameKinds != null) { | 1926 if (offset_definedNameKinds != null) { |
1869 fbBuilder.addOffset(6, offset_definedNameKinds); | 1927 fbBuilder.addOffset(6, offset_definedNameKinds); |
1870 } | 1928 } |
1871 if (offset_definedNameOffsets != null) { | 1929 if (offset_definedNameOffsets != null) { |
1872 fbBuilder.addOffset(7, offset_definedNameOffsets); | 1930 fbBuilder.addOffset(7, offset_definedNameOffsets); |
1873 } | 1931 } |
1874 if (offset_definedNames != null) { | 1932 if (offset_definedNames != null) { |
1875 fbBuilder.addOffset(5, offset_definedNames); | 1933 fbBuilder.addOffset(5, offset_definedNames); |
1876 } | 1934 } |
1877 if (_unit != null && _unit != 0) { | 1935 if (_unit != null && _unit != 0) { |
1878 fbBuilder.addUint32(0, _unit); | 1936 fbBuilder.addUint32(0, _unit); |
1879 } | 1937 } |
1880 if (offset_usedElementKinds != null) { | 1938 if (offset_usedElementKinds != null) { |
1881 fbBuilder.addOffset(4, offset_usedElementKinds); | 1939 fbBuilder.addOffset(4, offset_usedElementKinds); |
1882 } | 1940 } |
1883 if (offset_usedElementLengths != null) { | 1941 if (offset_usedElementLengths != null) { |
1884 fbBuilder.addOffset(1, offset_usedElementLengths); | 1942 fbBuilder.addOffset(1, offset_usedElementLengths); |
1885 } | 1943 } |
1886 if (offset_usedElementOffsets != null) { | 1944 if (offset_usedElementOffsets != null) { |
1887 fbBuilder.addOffset(2, offset_usedElementOffsets); | 1945 fbBuilder.addOffset(2, offset_usedElementOffsets); |
1888 } | 1946 } |
1889 if (offset_usedElements != null) { | 1947 if (offset_usedElements != null) { |
1890 fbBuilder.addOffset(3, offset_usedElements); | 1948 fbBuilder.addOffset(3, offset_usedElements); |
1891 } | 1949 } |
| 1950 if (offset_usedNameKinds != null) { |
| 1951 fbBuilder.addOffset(10, offset_usedNameKinds); |
| 1952 } |
| 1953 if (offset_usedNameOffsets != null) { |
| 1954 fbBuilder.addOffset(9, offset_usedNameOffsets); |
| 1955 } |
| 1956 if (offset_usedNames != null) { |
| 1957 fbBuilder.addOffset(8, offset_usedNames); |
| 1958 } |
1892 return fbBuilder.endTable(); | 1959 return fbBuilder.endTable(); |
1893 } | 1960 } |
1894 } | 1961 } |
1895 | 1962 |
1896 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { | 1963 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { |
1897 const _UnitIndexReader(); | 1964 const _UnitIndexReader(); |
1898 | 1965 |
1899 @override | 1966 @override |
1900 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); | 1967 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); |
1901 } | 1968 } |
1902 | 1969 |
1903 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { | 1970 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { |
1904 final fb.BufferPointer _bp; | 1971 final fb.BufferPointer _bp; |
1905 | 1972 |
1906 _UnitIndexImpl(this._bp); | 1973 _UnitIndexImpl(this._bp); |
1907 | 1974 |
1908 List<idl.IndexNameKind> _definedNameKinds; | 1975 List<idl.IndexNameKind> _definedNameKinds; |
1909 List<int> _definedNameOffsets; | 1976 List<int> _definedNameOffsets; |
1910 List<int> _definedNames; | 1977 List<int> _definedNames; |
1911 int _unit; | 1978 int _unit; |
1912 List<idl.IndexRelationKind> _usedElementKinds; | 1979 List<idl.IndexRelationKind> _usedElementKinds; |
1913 List<int> _usedElementLengths; | 1980 List<int> _usedElementLengths; |
1914 List<int> _usedElementOffsets; | 1981 List<int> _usedElementOffsets; |
1915 List<int> _usedElements; | 1982 List<int> _usedElements; |
| 1983 List<idl.IndexRelationKind> _usedNameKinds; |
| 1984 List<int> _usedNameOffsets; |
| 1985 List<int> _usedNames; |
1916 | 1986 |
1917 @override | 1987 @override |
1918 List<idl.IndexNameKind> get definedNameKinds { | 1988 List<idl.IndexNameKind> get definedNameKinds { |
1919 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); | 1989 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); |
1920 return _definedNameKinds; | 1990 return _definedNameKinds; |
1921 } | 1991 } |
1922 | 1992 |
1923 @override | 1993 @override |
1924 List<int> get definedNameOffsets { | 1994 List<int> get definedNameOffsets { |
1925 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); | 1995 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); |
(...skipping 28 matching lines...) Expand all Loading... |
1954 List<int> get usedElementOffsets { | 2024 List<int> get usedElementOffsets { |
1955 _usedElementOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 2, const
<int>[]); | 2025 _usedElementOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 2, const
<int>[]); |
1956 return _usedElementOffsets; | 2026 return _usedElementOffsets; |
1957 } | 2027 } |
1958 | 2028 |
1959 @override | 2029 @override |
1960 List<int> get usedElements { | 2030 List<int> get usedElements { |
1961 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const <int>[
]); | 2031 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const <int>[
]); |
1962 return _usedElements; | 2032 return _usedElements; |
1963 } | 2033 } |
| 2034 |
| 2035 @override |
| 2036 List<idl.IndexRelationKind> get usedNameKinds { |
| 2037 _usedNameKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _IndexRe
lationKindReader()).vTableGet(_bp, 10, const <idl.IndexRelationKind>[]); |
| 2038 return _usedNameKinds; |
| 2039 } |
| 2040 |
| 2041 @override |
| 2042 List<int> get usedNameOffsets { |
| 2043 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); |
| 2044 return _usedNameOffsets; |
| 2045 } |
| 2046 |
| 2047 @override |
| 2048 List<int> get usedNames { |
| 2049 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); |
| 2050 return _usedNames; |
| 2051 } |
1964 } | 2052 } |
1965 | 2053 |
1966 abstract class _UnitIndexMixin implements idl.UnitIndex { | 2054 abstract class _UnitIndexMixin implements idl.UnitIndex { |
1967 @override | 2055 @override |
1968 Map<String, Object> toJson() { | 2056 Map<String, Object> toJson() { |
1969 Map<String, Object> _result = <String, Object>{}; | 2057 Map<String, Object> _result = <String, Object>{}; |
1970 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2058 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
1971 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; | 2059 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; |
1972 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; | 2060 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; |
1973 if (unit != 0) _result["unit"] = unit; | 2061 if (unit != 0) _result["unit"] = unit; |
1974 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2062 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
1975 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; | 2063 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; |
1976 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; | 2064 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; |
1977 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; | 2065 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; |
| 2066 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); |
| 2067 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; |
| 2068 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; |
1978 return _result; | 2069 return _result; |
1979 } | 2070 } |
1980 | 2071 |
1981 @override | 2072 @override |
1982 Map<String, Object> toMap() => { | 2073 Map<String, Object> toMap() => { |
1983 "definedNameKinds": definedNameKinds, | 2074 "definedNameKinds": definedNameKinds, |
1984 "definedNameOffsets": definedNameOffsets, | 2075 "definedNameOffsets": definedNameOffsets, |
1985 "definedNames": definedNames, | 2076 "definedNames": definedNames, |
1986 "unit": unit, | 2077 "unit": unit, |
1987 "usedElementKinds": usedElementKinds, | 2078 "usedElementKinds": usedElementKinds, |
1988 "usedElementLengths": usedElementLengths, | 2079 "usedElementLengths": usedElementLengths, |
1989 "usedElementOffsets": usedElementOffsets, | 2080 "usedElementOffsets": usedElementOffsets, |
1990 "usedElements": usedElements, | 2081 "usedElements": usedElements, |
| 2082 "usedNameKinds": usedNameKinds, |
| 2083 "usedNameOffsets": usedNameOffsets, |
| 2084 "usedNames": usedNames, |
1991 }; | 2085 }; |
1992 | 2086 |
1993 @override | 2087 @override |
1994 String toString() => convert.JSON.encode(toJson()); | 2088 String toString() => convert.JSON.encode(toJson()); |
1995 } | 2089 } |
1996 | 2090 |
1997 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 2091 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
1998 bool _finished = false; | 2092 bool _finished = false; |
1999 | 2093 |
2000 List<UnlinkedConstBuilder> _annotations; | 2094 List<UnlinkedConstBuilder> _annotations; |
(...skipping 5145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7146 "propagatedTypeSlot": propagatedTypeSlot, | 7240 "propagatedTypeSlot": propagatedTypeSlot, |
7147 "type": type, | 7241 "type": type, |
7148 "visibleLength": visibleLength, | 7242 "visibleLength": visibleLength, |
7149 "visibleOffset": visibleOffset, | 7243 "visibleOffset": visibleOffset, |
7150 }; | 7244 }; |
7151 | 7245 |
7152 @override | 7246 @override |
7153 String toString() => convert.JSON.encode(toJson()); | 7247 String toString() => convert.JSON.encode(toJson()); |
7154 } | 7248 } |
7155 | 7249 |
OLD | NEW |