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 'dart:convert' as convert; | 10 import 'dart:convert' as convert; |
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 @override | 1691 @override |
1692 String toString() => convert.JSON.encode(toJson()); | 1692 String toString() => convert.JSON.encode(toJson()); |
1693 } | 1693 } |
1694 | 1694 |
1695 class AnalysisDriverUnlinkedUnitBuilder extends Object | 1695 class AnalysisDriverUnlinkedUnitBuilder extends Object |
1696 with _AnalysisDriverUnlinkedUnitMixin | 1696 with _AnalysisDriverUnlinkedUnitMixin |
1697 implements idl.AnalysisDriverUnlinkedUnit { | 1697 implements idl.AnalysisDriverUnlinkedUnit { |
1698 List<String> _definedClassMemberNames; | 1698 List<String> _definedClassMemberNames; |
1699 List<String> _definedTopLevelNames; | 1699 List<String> _definedTopLevelNames; |
1700 List<String> _referencedNames; | 1700 List<String> _referencedNames; |
| 1701 List<String> _subtypedNames; |
1701 UnlinkedUnitBuilder _unit; | 1702 UnlinkedUnitBuilder _unit; |
1702 | 1703 |
1703 @override | 1704 @override |
1704 List<String> get definedClassMemberNames => | 1705 List<String> get definedClassMemberNames => |
1705 _definedClassMemberNames ??= <String>[]; | 1706 _definedClassMemberNames ??= <String>[]; |
1706 | 1707 |
1707 /** | 1708 /** |
1708 * List of class member names defined by the unit. | 1709 * List of class member names defined by the unit. |
1709 */ | 1710 */ |
1710 void set definedClassMemberNames(List<String> value) { | 1711 void set definedClassMemberNames(List<String> value) { |
(...skipping 14 matching lines...) Expand all Loading... |
1725 List<String> get referencedNames => _referencedNames ??= <String>[]; | 1726 List<String> get referencedNames => _referencedNames ??= <String>[]; |
1726 | 1727 |
1727 /** | 1728 /** |
1728 * List of external names referenced by the unit. | 1729 * List of external names referenced by the unit. |
1729 */ | 1730 */ |
1730 void set referencedNames(List<String> value) { | 1731 void set referencedNames(List<String> value) { |
1731 this._referencedNames = value; | 1732 this._referencedNames = value; |
1732 } | 1733 } |
1733 | 1734 |
1734 @override | 1735 @override |
| 1736 List<String> get subtypedNames => _subtypedNames ??= <String>[]; |
| 1737 |
| 1738 /** |
| 1739 * List of names which are used in `extends`, `with` or `implements` clauses |
| 1740 * in the file. Import prefixes and type arguments are not included. |
| 1741 */ |
| 1742 void set subtypedNames(List<String> value) { |
| 1743 this._subtypedNames = value; |
| 1744 } |
| 1745 |
| 1746 @override |
1735 UnlinkedUnitBuilder get unit => _unit; | 1747 UnlinkedUnitBuilder get unit => _unit; |
1736 | 1748 |
1737 /** | 1749 /** |
1738 * Unlinked information for the unit. | 1750 * Unlinked information for the unit. |
1739 */ | 1751 */ |
1740 void set unit(UnlinkedUnitBuilder value) { | 1752 void set unit(UnlinkedUnitBuilder value) { |
1741 this._unit = value; | 1753 this._unit = value; |
1742 } | 1754 } |
1743 | 1755 |
1744 AnalysisDriverUnlinkedUnitBuilder( | 1756 AnalysisDriverUnlinkedUnitBuilder( |
1745 {List<String> definedClassMemberNames, | 1757 {List<String> definedClassMemberNames, |
1746 List<String> definedTopLevelNames, | 1758 List<String> definedTopLevelNames, |
1747 List<String> referencedNames, | 1759 List<String> referencedNames, |
| 1760 List<String> subtypedNames, |
1748 UnlinkedUnitBuilder unit}) | 1761 UnlinkedUnitBuilder unit}) |
1749 : _definedClassMemberNames = definedClassMemberNames, | 1762 : _definedClassMemberNames = definedClassMemberNames, |
1750 _definedTopLevelNames = definedTopLevelNames, | 1763 _definedTopLevelNames = definedTopLevelNames, |
1751 _referencedNames = referencedNames, | 1764 _referencedNames = referencedNames, |
| 1765 _subtypedNames = subtypedNames, |
1752 _unit = unit; | 1766 _unit = unit; |
1753 | 1767 |
1754 /** | 1768 /** |
1755 * Flush [informative] data recursively. | 1769 * Flush [informative] data recursively. |
1756 */ | 1770 */ |
1757 void flushInformative() { | 1771 void flushInformative() { |
1758 _unit?.flushInformative(); | 1772 _unit?.flushInformative(); |
1759 } | 1773 } |
1760 | 1774 |
1761 /** | 1775 /** |
(...skipping 19 matching lines...) Expand all Loading... |
1781 } | 1795 } |
1782 } | 1796 } |
1783 if (this._definedClassMemberNames == null) { | 1797 if (this._definedClassMemberNames == null) { |
1784 signature.addInt(0); | 1798 signature.addInt(0); |
1785 } else { | 1799 } else { |
1786 signature.addInt(this._definedClassMemberNames.length); | 1800 signature.addInt(this._definedClassMemberNames.length); |
1787 for (var x in this._definedClassMemberNames) { | 1801 for (var x in this._definedClassMemberNames) { |
1788 signature.addString(x); | 1802 signature.addString(x); |
1789 } | 1803 } |
1790 } | 1804 } |
| 1805 if (this._subtypedNames == null) { |
| 1806 signature.addInt(0); |
| 1807 } else { |
| 1808 signature.addInt(this._subtypedNames.length); |
| 1809 for (var x in this._subtypedNames) { |
| 1810 signature.addString(x); |
| 1811 } |
| 1812 } |
1791 } | 1813 } |
1792 | 1814 |
1793 List<int> toBuffer() { | 1815 List<int> toBuffer() { |
1794 fb.Builder fbBuilder = new fb.Builder(); | 1816 fb.Builder fbBuilder = new fb.Builder(); |
1795 return fbBuilder.finish(finish(fbBuilder), "ADUU"); | 1817 return fbBuilder.finish(finish(fbBuilder), "ADUU"); |
1796 } | 1818 } |
1797 | 1819 |
1798 fb.Offset finish(fb.Builder fbBuilder) { | 1820 fb.Offset finish(fb.Builder fbBuilder) { |
1799 fb.Offset offset_definedClassMemberNames; | 1821 fb.Offset offset_definedClassMemberNames; |
1800 fb.Offset offset_definedTopLevelNames; | 1822 fb.Offset offset_definedTopLevelNames; |
1801 fb.Offset offset_referencedNames; | 1823 fb.Offset offset_referencedNames; |
| 1824 fb.Offset offset_subtypedNames; |
1802 fb.Offset offset_unit; | 1825 fb.Offset offset_unit; |
1803 if (!(_definedClassMemberNames == null || | 1826 if (!(_definedClassMemberNames == null || |
1804 _definedClassMemberNames.isEmpty)) { | 1827 _definedClassMemberNames.isEmpty)) { |
1805 offset_definedClassMemberNames = fbBuilder.writeList( | 1828 offset_definedClassMemberNames = fbBuilder.writeList( |
1806 _definedClassMemberNames | 1829 _definedClassMemberNames |
1807 .map((b) => fbBuilder.writeString(b)) | 1830 .map((b) => fbBuilder.writeString(b)) |
1808 .toList()); | 1831 .toList()); |
1809 } | 1832 } |
1810 if (!(_definedTopLevelNames == null || _definedTopLevelNames.isEmpty)) { | 1833 if (!(_definedTopLevelNames == null || _definedTopLevelNames.isEmpty)) { |
1811 offset_definedTopLevelNames = fbBuilder.writeList( | 1834 offset_definedTopLevelNames = fbBuilder.writeList( |
1812 _definedTopLevelNames.map((b) => fbBuilder.writeString(b)).toList()); | 1835 _definedTopLevelNames.map((b) => fbBuilder.writeString(b)).toList()); |
1813 } | 1836 } |
1814 if (!(_referencedNames == null || _referencedNames.isEmpty)) { | 1837 if (!(_referencedNames == null || _referencedNames.isEmpty)) { |
1815 offset_referencedNames = fbBuilder.writeList( | 1838 offset_referencedNames = fbBuilder.writeList( |
1816 _referencedNames.map((b) => fbBuilder.writeString(b)).toList()); | 1839 _referencedNames.map((b) => fbBuilder.writeString(b)).toList()); |
1817 } | 1840 } |
| 1841 if (!(_subtypedNames == null || _subtypedNames.isEmpty)) { |
| 1842 offset_subtypedNames = fbBuilder.writeList( |
| 1843 _subtypedNames.map((b) => fbBuilder.writeString(b)).toList()); |
| 1844 } |
1818 if (_unit != null) { | 1845 if (_unit != null) { |
1819 offset_unit = _unit.finish(fbBuilder); | 1846 offset_unit = _unit.finish(fbBuilder); |
1820 } | 1847 } |
1821 fbBuilder.startTable(); | 1848 fbBuilder.startTable(); |
1822 if (offset_definedClassMemberNames != null) { | 1849 if (offset_definedClassMemberNames != null) { |
1823 fbBuilder.addOffset(3, offset_definedClassMemberNames); | 1850 fbBuilder.addOffset(3, offset_definedClassMemberNames); |
1824 } | 1851 } |
1825 if (offset_definedTopLevelNames != null) { | 1852 if (offset_definedTopLevelNames != null) { |
1826 fbBuilder.addOffset(2, offset_definedTopLevelNames); | 1853 fbBuilder.addOffset(2, offset_definedTopLevelNames); |
1827 } | 1854 } |
1828 if (offset_referencedNames != null) { | 1855 if (offset_referencedNames != null) { |
1829 fbBuilder.addOffset(0, offset_referencedNames); | 1856 fbBuilder.addOffset(0, offset_referencedNames); |
1830 } | 1857 } |
| 1858 if (offset_subtypedNames != null) { |
| 1859 fbBuilder.addOffset(4, offset_subtypedNames); |
| 1860 } |
1831 if (offset_unit != null) { | 1861 if (offset_unit != null) { |
1832 fbBuilder.addOffset(1, offset_unit); | 1862 fbBuilder.addOffset(1, offset_unit); |
1833 } | 1863 } |
1834 return fbBuilder.endTable(); | 1864 return fbBuilder.endTable(); |
1835 } | 1865 } |
1836 } | 1866 } |
1837 | 1867 |
1838 idl.AnalysisDriverUnlinkedUnit readAnalysisDriverUnlinkedUnit( | 1868 idl.AnalysisDriverUnlinkedUnit readAnalysisDriverUnlinkedUnit( |
1839 List<int> buffer) { | 1869 List<int> buffer) { |
1840 fb.BufferContext rootRef = new fb.BufferContext.fromBytes(buffer); | 1870 fb.BufferContext rootRef = new fb.BufferContext.fromBytes(buffer); |
(...skipping 14 matching lines...) Expand all Loading... |
1855 with _AnalysisDriverUnlinkedUnitMixin | 1885 with _AnalysisDriverUnlinkedUnitMixin |
1856 implements idl.AnalysisDriverUnlinkedUnit { | 1886 implements idl.AnalysisDriverUnlinkedUnit { |
1857 final fb.BufferContext _bc; | 1887 final fb.BufferContext _bc; |
1858 final int _bcOffset; | 1888 final int _bcOffset; |
1859 | 1889 |
1860 _AnalysisDriverUnlinkedUnitImpl(this._bc, this._bcOffset); | 1890 _AnalysisDriverUnlinkedUnitImpl(this._bc, this._bcOffset); |
1861 | 1891 |
1862 List<String> _definedClassMemberNames; | 1892 List<String> _definedClassMemberNames; |
1863 List<String> _definedTopLevelNames; | 1893 List<String> _definedTopLevelNames; |
1864 List<String> _referencedNames; | 1894 List<String> _referencedNames; |
| 1895 List<String> _subtypedNames; |
1865 idl.UnlinkedUnit _unit; | 1896 idl.UnlinkedUnit _unit; |
1866 | 1897 |
1867 @override | 1898 @override |
1868 List<String> get definedClassMemberNames { | 1899 List<String> get definedClassMemberNames { |
1869 _definedClassMemberNames ??= | 1900 _definedClassMemberNames ??= |
1870 const fb.ListReader<String>(const fb.StringReader()) | 1901 const fb.ListReader<String>(const fb.StringReader()) |
1871 .vTableGet(_bc, _bcOffset, 3, const <String>[]); | 1902 .vTableGet(_bc, _bcOffset, 3, const <String>[]); |
1872 return _definedClassMemberNames; | 1903 return _definedClassMemberNames; |
1873 } | 1904 } |
1874 | 1905 |
1875 @override | 1906 @override |
1876 List<String> get definedTopLevelNames { | 1907 List<String> get definedTopLevelNames { |
1877 _definedTopLevelNames ??= | 1908 _definedTopLevelNames ??= |
1878 const fb.ListReader<String>(const fb.StringReader()) | 1909 const fb.ListReader<String>(const fb.StringReader()) |
1879 .vTableGet(_bc, _bcOffset, 2, const <String>[]); | 1910 .vTableGet(_bc, _bcOffset, 2, const <String>[]); |
1880 return _definedTopLevelNames; | 1911 return _definedTopLevelNames; |
1881 } | 1912 } |
1882 | 1913 |
1883 @override | 1914 @override |
1884 List<String> get referencedNames { | 1915 List<String> get referencedNames { |
1885 _referencedNames ??= const fb.ListReader<String>(const fb.StringReader()) | 1916 _referencedNames ??= const fb.ListReader<String>(const fb.StringReader()) |
1886 .vTableGet(_bc, _bcOffset, 0, const <String>[]); | 1917 .vTableGet(_bc, _bcOffset, 0, const <String>[]); |
1887 return _referencedNames; | 1918 return _referencedNames; |
1888 } | 1919 } |
1889 | 1920 |
1890 @override | 1921 @override |
| 1922 List<String> get subtypedNames { |
| 1923 _subtypedNames ??= const fb.ListReader<String>(const fb.StringReader()) |
| 1924 .vTableGet(_bc, _bcOffset, 4, const <String>[]); |
| 1925 return _subtypedNames; |
| 1926 } |
| 1927 |
| 1928 @override |
1891 idl.UnlinkedUnit get unit { | 1929 idl.UnlinkedUnit get unit { |
1892 _unit ??= const _UnlinkedUnitReader().vTableGet(_bc, _bcOffset, 1, null); | 1930 _unit ??= const _UnlinkedUnitReader().vTableGet(_bc, _bcOffset, 1, null); |
1893 return _unit; | 1931 return _unit; |
1894 } | 1932 } |
1895 } | 1933 } |
1896 | 1934 |
1897 abstract class _AnalysisDriverUnlinkedUnitMixin | 1935 abstract class _AnalysisDriverUnlinkedUnitMixin |
1898 implements idl.AnalysisDriverUnlinkedUnit { | 1936 implements idl.AnalysisDriverUnlinkedUnit { |
1899 @override | 1937 @override |
1900 Map<String, Object> toJson() { | 1938 Map<String, Object> toJson() { |
1901 Map<String, Object> _result = <String, Object>{}; | 1939 Map<String, Object> _result = <String, Object>{}; |
1902 if (definedClassMemberNames.isNotEmpty) | 1940 if (definedClassMemberNames.isNotEmpty) |
1903 _result["definedClassMemberNames"] = definedClassMemberNames; | 1941 _result["definedClassMemberNames"] = definedClassMemberNames; |
1904 if (definedTopLevelNames.isNotEmpty) | 1942 if (definedTopLevelNames.isNotEmpty) |
1905 _result["definedTopLevelNames"] = definedTopLevelNames; | 1943 _result["definedTopLevelNames"] = definedTopLevelNames; |
1906 if (referencedNames.isNotEmpty) | 1944 if (referencedNames.isNotEmpty) |
1907 _result["referencedNames"] = referencedNames; | 1945 _result["referencedNames"] = referencedNames; |
| 1946 if (subtypedNames.isNotEmpty) _result["subtypedNames"] = subtypedNames; |
1908 if (unit != null) _result["unit"] = unit.toJson(); | 1947 if (unit != null) _result["unit"] = unit.toJson(); |
1909 return _result; | 1948 return _result; |
1910 } | 1949 } |
1911 | 1950 |
1912 @override | 1951 @override |
1913 Map<String, Object> toMap() => { | 1952 Map<String, Object> toMap() => { |
1914 "definedClassMemberNames": definedClassMemberNames, | 1953 "definedClassMemberNames": definedClassMemberNames, |
1915 "definedTopLevelNames": definedTopLevelNames, | 1954 "definedTopLevelNames": definedTopLevelNames, |
1916 "referencedNames": referencedNames, | 1955 "referencedNames": referencedNames, |
| 1956 "subtypedNames": subtypedNames, |
1917 "unit": unit, | 1957 "unit": unit, |
1918 }; | 1958 }; |
1919 | 1959 |
1920 @override | 1960 @override |
1921 String toString() => convert.JSON.encode(toJson()); | 1961 String toString() => convert.JSON.encode(toJson()); |
1922 } | 1962 } |
1923 | 1963 |
1924 class CodeRangeBuilder extends Object | 1964 class CodeRangeBuilder extends Object |
1925 with _CodeRangeMixin | 1965 with _CodeRangeMixin |
1926 implements idl.CodeRange { | 1966 implements idl.CodeRange { |
(...skipping 10727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12654 "nameOffset": nameOffset, | 12694 "nameOffset": nameOffset, |
12655 "propagatedTypeSlot": propagatedTypeSlot, | 12695 "propagatedTypeSlot": propagatedTypeSlot, |
12656 "type": type, | 12696 "type": type, |
12657 "visibleLength": visibleLength, | 12697 "visibleLength": visibleLength, |
12658 "visibleOffset": visibleOffset, | 12698 "visibleOffset": visibleOffset, |
12659 }; | 12699 }; |
12660 | 12700 |
12661 @override | 12701 @override |
12662 String toString() => convert.JSON.encode(toJson()); | 12702 String toString() => convert.JSON.encode(toJson()); |
12663 } | 12703 } |
OLD | NEW |