| 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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 "typeParameters": typeParameters, | 1712 "typeParameters": typeParameters, |
| 1713 }; | 1713 }; |
| 1714 | 1714 |
| 1715 @override | 1715 @override |
| 1716 String toString() => convert.JSON.encode(toJson()); | 1716 String toString() => convert.JSON.encode(toJson()); |
| 1717 } | 1717 } |
| 1718 | 1718 |
| 1719 class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
lements idl.UnlinkedCombinator { | 1719 class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
lements idl.UnlinkedCombinator { |
| 1720 bool _finished = false; | 1720 bool _finished = false; |
| 1721 | 1721 |
| 1722 int _end; |
| 1722 List<String> _hides; | 1723 List<String> _hides; |
| 1724 int _offset; |
| 1723 List<String> _shows; | 1725 List<String> _shows; |
| 1724 | 1726 |
| 1725 @override | 1727 @override |
| 1728 int get end => _end ??= 0; |
| 1729 |
| 1730 /** |
| 1731 * If this is a `show` combinator, offset of the end of the list of shown |
| 1732 * names. Otherwise zero. |
| 1733 */ |
| 1734 void set end(int _value) { |
| 1735 assert(!_finished); |
| 1736 assert(_value == null || _value >= 0); |
| 1737 _end = _value; |
| 1738 } |
| 1739 |
| 1740 @override |
| 1726 List<String> get hides => _hides ??= <String>[]; | 1741 List<String> get hides => _hides ??= <String>[]; |
| 1727 | 1742 |
| 1728 /** | 1743 /** |
| 1729 * List of names which are hidden. Empty if this is a `show` combinator. | 1744 * List of names which are hidden. Empty if this is a `show` combinator. |
| 1730 */ | 1745 */ |
| 1731 void set hides(List<String> _value) { | 1746 void set hides(List<String> _value) { |
| 1732 assert(!_finished); | 1747 assert(!_finished); |
| 1733 _hides = _value; | 1748 _hides = _value; |
| 1734 } | 1749 } |
| 1735 | 1750 |
| 1736 @override | 1751 @override |
| 1752 int get offset => _offset ??= 0; |
| 1753 |
| 1754 /** |
| 1755 * If this is a `show` combinator, offset of the `show` keyword. Otherwise |
| 1756 * zero. |
| 1757 */ |
| 1758 void set offset(int _value) { |
| 1759 assert(!_finished); |
| 1760 assert(_value == null || _value >= 0); |
| 1761 _offset = _value; |
| 1762 } |
| 1763 |
| 1764 @override |
| 1737 List<String> get shows => _shows ??= <String>[]; | 1765 List<String> get shows => _shows ??= <String>[]; |
| 1738 | 1766 |
| 1739 /** | 1767 /** |
| 1740 * List of names which are shown. Empty if this is a `hide` combinator. | 1768 * List of names which are shown. Empty if this is a `hide` combinator. |
| 1741 */ | 1769 */ |
| 1742 void set shows(List<String> _value) { | 1770 void set shows(List<String> _value) { |
| 1743 assert(!_finished); | 1771 assert(!_finished); |
| 1744 _shows = _value; | 1772 _shows = _value; |
| 1745 } | 1773 } |
| 1746 | 1774 |
| 1747 UnlinkedCombinatorBuilder({List<String> hides, List<String> shows}) | 1775 UnlinkedCombinatorBuilder({int end, List<String> hides, int offset, List<Strin
g> shows}) |
| 1748 : _hides = hides, | 1776 : _end = end, |
| 1777 _hides = hides, |
| 1778 _offset = offset, |
| 1749 _shows = shows; | 1779 _shows = shows; |
| 1750 | 1780 |
| 1751 fb.Offset finish(fb.Builder fbBuilder) { | 1781 fb.Offset finish(fb.Builder fbBuilder) { |
| 1752 assert(!_finished); | 1782 assert(!_finished); |
| 1753 _finished = true; | 1783 _finished = true; |
| 1754 fb.Offset offset_hides; | 1784 fb.Offset offset_hides; |
| 1755 fb.Offset offset_shows; | 1785 fb.Offset offset_shows; |
| 1756 if (!(_hides == null || _hides.isEmpty)) { | 1786 if (!(_hides == null || _hides.isEmpty)) { |
| 1757 offset_hides = fbBuilder.writeList(_hides.map((b) => fbBuilder.writeString
(b)).toList()); | 1787 offset_hides = fbBuilder.writeList(_hides.map((b) => fbBuilder.writeString
(b)).toList()); |
| 1758 } | 1788 } |
| 1759 if (!(_shows == null || _shows.isEmpty)) { | 1789 if (!(_shows == null || _shows.isEmpty)) { |
| 1760 offset_shows = fbBuilder.writeList(_shows.map((b) => fbBuilder.writeString
(b)).toList()); | 1790 offset_shows = fbBuilder.writeList(_shows.map((b) => fbBuilder.writeString
(b)).toList()); |
| 1761 } | 1791 } |
| 1762 fbBuilder.startTable(); | 1792 fbBuilder.startTable(); |
| 1793 if (_end != null && _end != 0) { |
| 1794 fbBuilder.addUint32(3, _end); |
| 1795 } |
| 1763 if (offset_hides != null) { | 1796 if (offset_hides != null) { |
| 1764 fbBuilder.addOffset(1, offset_hides); | 1797 fbBuilder.addOffset(1, offset_hides); |
| 1765 } | 1798 } |
| 1799 if (_offset != null && _offset != 0) { |
| 1800 fbBuilder.addUint32(2, _offset); |
| 1801 } |
| 1766 if (offset_shows != null) { | 1802 if (offset_shows != null) { |
| 1767 fbBuilder.addOffset(0, offset_shows); | 1803 fbBuilder.addOffset(0, offset_shows); |
| 1768 } | 1804 } |
| 1769 return fbBuilder.endTable(); | 1805 return fbBuilder.endTable(); |
| 1770 } | 1806 } |
| 1771 } | 1807 } |
| 1772 | 1808 |
| 1773 class _UnlinkedCombinatorReader extends fb.TableReader<_UnlinkedCombinatorImpl>
{ | 1809 class _UnlinkedCombinatorReader extends fb.TableReader<_UnlinkedCombinatorImpl>
{ |
| 1774 const _UnlinkedCombinatorReader(); | 1810 const _UnlinkedCombinatorReader(); |
| 1775 | 1811 |
| 1776 @override | 1812 @override |
| 1777 _UnlinkedCombinatorImpl createObject(fb.BufferPointer bp) => new _UnlinkedComb
inatorImpl(bp); | 1813 _UnlinkedCombinatorImpl createObject(fb.BufferPointer bp) => new _UnlinkedComb
inatorImpl(bp); |
| 1778 } | 1814 } |
| 1779 | 1815 |
| 1780 class _UnlinkedCombinatorImpl extends Object with _UnlinkedCombinatorMixin imple
ments idl.UnlinkedCombinator { | 1816 class _UnlinkedCombinatorImpl extends Object with _UnlinkedCombinatorMixin imple
ments idl.UnlinkedCombinator { |
| 1781 final fb.BufferPointer _bp; | 1817 final fb.BufferPointer _bp; |
| 1782 | 1818 |
| 1783 _UnlinkedCombinatorImpl(this._bp); | 1819 _UnlinkedCombinatorImpl(this._bp); |
| 1784 | 1820 |
| 1821 int _end; |
| 1785 List<String> _hides; | 1822 List<String> _hides; |
| 1823 int _offset; |
| 1786 List<String> _shows; | 1824 List<String> _shows; |
| 1787 | 1825 |
| 1788 @override | 1826 @override |
| 1827 int get end { |
| 1828 _end ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); |
| 1829 return _end; |
| 1830 } |
| 1831 |
| 1832 @override |
| 1789 List<String> get hides { | 1833 List<String> get hides { |
| 1790 _hides ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 1, const <String>[]); | 1834 _hides ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 1, const <String>[]); |
| 1791 return _hides; | 1835 return _hides; |
| 1792 } | 1836 } |
| 1793 | 1837 |
| 1794 @override | 1838 @override |
| 1839 int get offset { |
| 1840 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 1841 return _offset; |
| 1842 } |
| 1843 |
| 1844 @override |
| 1795 List<String> get shows { | 1845 List<String> get shows { |
| 1796 _shows ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 0, const <String>[]); | 1846 _shows ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 0, const <String>[]); |
| 1797 return _shows; | 1847 return _shows; |
| 1798 } | 1848 } |
| 1799 } | 1849 } |
| 1800 | 1850 |
| 1801 abstract class _UnlinkedCombinatorMixin implements idl.UnlinkedCombinator { | 1851 abstract class _UnlinkedCombinatorMixin implements idl.UnlinkedCombinator { |
| 1802 @override | 1852 @override |
| 1803 Map<String, Object> toJson() { | 1853 Map<String, Object> toJson() { |
| 1804 Map<String, Object> _result = <String, Object>{}; | 1854 Map<String, Object> _result = <String, Object>{}; |
| 1855 if (end != 0) _result["end"] = end; |
| 1805 if (hides.isNotEmpty) _result["hides"] = hides; | 1856 if (hides.isNotEmpty) _result["hides"] = hides; |
| 1857 if (offset != 0) _result["offset"] = offset; |
| 1806 if (shows.isNotEmpty) _result["shows"] = shows; | 1858 if (shows.isNotEmpty) _result["shows"] = shows; |
| 1807 return _result; | 1859 return _result; |
| 1808 } | 1860 } |
| 1809 | 1861 |
| 1810 @override | 1862 @override |
| 1811 Map<String, Object> toMap() => { | 1863 Map<String, Object> toMap() => { |
| 1864 "end": end, |
| 1812 "hides": hides, | 1865 "hides": hides, |
| 1866 "offset": offset, |
| 1813 "shows": shows, | 1867 "shows": shows, |
| 1814 }; | 1868 }; |
| 1815 | 1869 |
| 1816 @override | 1870 @override |
| 1817 String toString() => convert.JSON.encode(toJson()); | 1871 String toString() => convert.JSON.encode(toJson()); |
| 1818 } | 1872 } |
| 1819 | 1873 |
| 1820 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { | 1874 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { |
| 1821 bool _finished = false; | 1875 bool _finished = false; |
| 1822 | 1876 |
| (...skipping 4582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6405 "propagatedTypeSlot": propagatedTypeSlot, | 6459 "propagatedTypeSlot": propagatedTypeSlot, |
| 6406 "type": type, | 6460 "type": type, |
| 6407 "visibleLength": visibleLength, | 6461 "visibleLength": visibleLength, |
| 6408 "visibleOffset": visibleOffset, | 6462 "visibleOffset": visibleOffset, |
| 6409 }; | 6463 }; |
| 6410 | 6464 |
| 6411 @override | 6465 @override |
| 6412 String toString() => convert.JSON.encode(toJson()); | 6466 String toString() => convert.JSON.encode(toJson()); |
| 6413 } | 6467 } |
| 6414 | 6468 |
| OLD | NEW |