| 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 18 matching lines...) Expand all Loading... |
| 29 @override | 29 @override |
| 30 int get size => 4; | 30 int get size => 4; |
| 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.Uint32Reader().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> { |
| 40 const _UnlinkedConstructorInitializerKindReader() : super(); |
| 41 |
| 42 @override |
| 43 int get size => 4; |
| 44 |
| 45 @override |
| 46 idl.UnlinkedConstructorInitializerKind read(fb.BufferPointer bp) { |
| 47 int index = const fb.Uint32Reader().read(bp); |
| 48 return idl.UnlinkedConstructorInitializerKind.values[index]; |
| 49 } |
| 50 } |
| 51 |
| 39 class _UnlinkedExecutableKindReader extends fb.Reader<idl.UnlinkedExecutableKind
> { | 52 class _UnlinkedExecutableKindReader extends fb.Reader<idl.UnlinkedExecutableKind
> { |
| 40 const _UnlinkedExecutableKindReader() : super(); | 53 const _UnlinkedExecutableKindReader() : super(); |
| 41 | 54 |
| 42 @override | 55 @override |
| 43 int get size => 4; | 56 int get size => 4; |
| 44 | 57 |
| 45 @override | 58 @override |
| 46 idl.UnlinkedExecutableKind read(fb.BufferPointer bp) { | 59 idl.UnlinkedExecutableKind read(fb.BufferPointer bp) { |
| 47 int index = const fb.Uint32Reader().read(bp); | 60 int index = const fb.Uint32Reader().read(bp); |
| 48 return idl.UnlinkedExecutableKind.values[index]; | 61 return idl.UnlinkedExecutableKind.values[index]; |
| (...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1795 @override | 1808 @override |
| 1796 Map<String, Object> toMap() => { | 1809 Map<String, Object> toMap() => { |
| 1797 "operations": operations, | 1810 "operations": operations, |
| 1798 "ints": ints, | 1811 "ints": ints, |
| 1799 "doubles": doubles, | 1812 "doubles": doubles, |
| 1800 "strings": strings, | 1813 "strings": strings, |
| 1801 "references": references, | 1814 "references": references, |
| 1802 }; | 1815 }; |
| 1803 } | 1816 } |
| 1804 | 1817 |
| 1818 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { |
| 1819 bool _finished = false; |
| 1820 |
| 1821 idl.UnlinkedConstructorInitializerKind _kind; |
| 1822 String _name; |
| 1823 UnlinkedConstBuilder _expression; |
| 1824 List<UnlinkedConstBuilder> _arguments; |
| 1825 |
| 1826 @override |
| 1827 idl.UnlinkedConstructorInitializerKind get kind => _kind ??= idl.UnlinkedConst
ructorInitializerKind.field; |
| 1828 |
| 1829 /** |
| 1830 * The kind of the constructor initializer (field, redirect, super). |
| 1831 */ |
| 1832 void set kind(idl.UnlinkedConstructorInitializerKind _value) { |
| 1833 assert(!_finished); |
| 1834 _kind = _value; |
| 1835 } |
| 1836 |
| 1837 @override |
| 1838 String get name => _name ??= ''; |
| 1839 |
| 1840 /** |
| 1841 * Depending on the [kind] is the name of the field declared in the class, |
| 1842 * or the name of the constructor to redirect to (may be `null`), or the name |
| 1843 * of the invoked super constructor (may be `null`). |
| 1844 */ |
| 1845 void set name(String _value) { |
| 1846 assert(!_finished); |
| 1847 _name = _value; |
| 1848 } |
| 1849 |
| 1850 @override |
| 1851 UnlinkedConstBuilder get expression => _expression; |
| 1852 |
| 1853 /** |
| 1854 * If [UnlinkedConstructorInitializerKind.field], the expression of the |
| 1855 * field initializer. Otherwise `null`. |
| 1856 */ |
| 1857 void set expression(UnlinkedConstBuilder _value) { |
| 1858 assert(!_finished); |
| 1859 _expression = _value; |
| 1860 } |
| 1861 |
| 1862 @override |
| 1863 List<UnlinkedConstBuilder> get arguments => _arguments ??= <UnlinkedConstBuild
er>[]; |
| 1864 |
| 1865 /** |
| 1866 * If [UnlinkedConstructorInitializerKind.thisInvocation] or |
| 1867 * [UnlinkedConstructorInitializerKind.superInvocation], the arguments of |
| 1868 * the invocation. Otherwise empty. |
| 1869 */ |
| 1870 void set arguments(List<UnlinkedConstBuilder> _value) { |
| 1871 assert(!_finished); |
| 1872 _arguments = _value; |
| 1873 } |
| 1874 |
| 1875 UnlinkedConstructorInitializerBuilder({idl.UnlinkedConstructorInitializerKind
kind, String name, UnlinkedConstBuilder expression, List<UnlinkedConstBuilder> a
rguments}) |
| 1876 : _kind = kind, |
| 1877 _name = name, |
| 1878 _expression = expression, |
| 1879 _arguments = arguments; |
| 1880 |
| 1881 fb.Offset finish(fb.Builder fbBuilder) { |
| 1882 assert(!_finished); |
| 1883 _finished = true; |
| 1884 fb.Offset offset_name; |
| 1885 fb.Offset offset_expression; |
| 1886 fb.Offset offset_arguments; |
| 1887 if (_name != null) { |
| 1888 offset_name = fbBuilder.writeString(_name); |
| 1889 } |
| 1890 if (_expression != null) { |
| 1891 offset_expression = _expression.finish(fbBuilder); |
| 1892 } |
| 1893 if (!(_arguments == null || _arguments.isEmpty)) { |
| 1894 offset_arguments = fbBuilder.writeList(_arguments.map((b) => b.finish(fbBu
ilder)).toList()); |
| 1895 } |
| 1896 fbBuilder.startTable(); |
| 1897 if (_kind != null && _kind != idl.UnlinkedConstructorInitializerKind.field)
{ |
| 1898 fbBuilder.addUint32(0, _kind.index); |
| 1899 } |
| 1900 if (offset_name != null) { |
| 1901 fbBuilder.addOffset(1, offset_name); |
| 1902 } |
| 1903 if (offset_expression != null) { |
| 1904 fbBuilder.addOffset(2, offset_expression); |
| 1905 } |
| 1906 if (offset_arguments != null) { |
| 1907 fbBuilder.addOffset(3, offset_arguments); |
| 1908 } |
| 1909 return fbBuilder.endTable(); |
| 1910 } |
| 1911 } |
| 1912 |
| 1913 class _UnlinkedConstructorInitializerReader extends fb.TableReader<_UnlinkedCons
tructorInitializerImpl> { |
| 1914 const _UnlinkedConstructorInitializerReader(); |
| 1915 |
| 1916 @override |
| 1917 _UnlinkedConstructorInitializerImpl createObject(fb.BufferPointer bp) => new _
UnlinkedConstructorInitializerImpl(bp); |
| 1918 } |
| 1919 |
| 1920 class _UnlinkedConstructorInitializerImpl extends Object with _UnlinkedConstruct
orInitializerMixin implements idl.UnlinkedConstructorInitializer { |
| 1921 final fb.BufferPointer _bp; |
| 1922 |
| 1923 _UnlinkedConstructorInitializerImpl(this._bp); |
| 1924 |
| 1925 idl.UnlinkedConstructorInitializerKind _kind; |
| 1926 String _name; |
| 1927 idl.UnlinkedConst _expression; |
| 1928 List<idl.UnlinkedConst> _arguments; |
| 1929 |
| 1930 @override |
| 1931 idl.UnlinkedConstructorInitializerKind get kind { |
| 1932 _kind ??= const _UnlinkedConstructorInitializerKindReader().vTableGet(_bp, 0
, idl.UnlinkedConstructorInitializerKind.field); |
| 1933 return _kind; |
| 1934 } |
| 1935 |
| 1936 @override |
| 1937 String get name { |
| 1938 _name ??= const fb.StringReader().vTableGet(_bp, 1, ''); |
| 1939 return _name; |
| 1940 } |
| 1941 |
| 1942 @override |
| 1943 idl.UnlinkedConst get expression { |
| 1944 _expression ??= const _UnlinkedConstReader().vTableGet(_bp, 2, null); |
| 1945 return _expression; |
| 1946 } |
| 1947 |
| 1948 @override |
| 1949 List<idl.UnlinkedConst> get arguments { |
| 1950 _arguments ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConstRe
ader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 1951 return _arguments; |
| 1952 } |
| 1953 } |
| 1954 |
| 1955 abstract class _UnlinkedConstructorInitializerMixin implements idl.UnlinkedConst
ructorInitializer { |
| 1956 @override |
| 1957 Map<String, Object> toMap() => { |
| 1958 "kind": kind, |
| 1959 "name": name, |
| 1960 "expression": expression, |
| 1961 "arguments": arguments, |
| 1962 }; |
| 1963 } |
| 1964 |
| 1805 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { | 1965 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { |
| 1806 bool _finished = false; | 1966 bool _finished = false; |
| 1807 | 1967 |
| 1808 String _text; | 1968 String _text; |
| 1809 int _offset; | 1969 int _offset; |
| 1810 int _length; | 1970 int _length; |
| 1811 | 1971 |
| 1812 @override | 1972 @override |
| 1813 String get text => _text ??= ''; | 1973 String get text => _text ??= ''; |
| 1814 | 1974 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 List<UnlinkedTypeParamBuilder> _typeParameters; | 2347 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 2188 EntityRefBuilder _returnType; | 2348 EntityRefBuilder _returnType; |
| 2189 List<UnlinkedParamBuilder> _parameters; | 2349 List<UnlinkedParamBuilder> _parameters; |
| 2190 idl.UnlinkedExecutableKind _kind; | 2350 idl.UnlinkedExecutableKind _kind; |
| 2191 bool _isAbstract; | 2351 bool _isAbstract; |
| 2192 bool _isStatic; | 2352 bool _isStatic; |
| 2193 bool _isConst; | 2353 bool _isConst; |
| 2194 bool _isFactory; | 2354 bool _isFactory; |
| 2195 bool _isExternal; | 2355 bool _isExternal; |
| 2196 int _inferredReturnTypeSlot; | 2356 int _inferredReturnTypeSlot; |
| 2357 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; |
| 2197 | 2358 |
| 2198 @override | 2359 @override |
| 2199 String get name => _name ??= ''; | 2360 String get name => _name ??= ''; |
| 2200 | 2361 |
| 2201 /** | 2362 /** |
| 2202 * Name of the executable. For setters, this includes the trailing "=". For | 2363 * Name of the executable. For setters, this includes the trailing "=". For |
| 2203 * named constructors, this excludes the class name and excludes the ".". | 2364 * named constructors, this excludes the class name and excludes the ".". |
| 2204 * For unnamed constructors, this is the empty string. | 2365 * For unnamed constructors, this is the empty string. |
| 2205 */ | 2366 */ |
| 2206 void set name(String _value) { | 2367 void set name(String _value) { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2341 void set isExternal(bool _value) { | 2502 void set isExternal(bool _value) { |
| 2342 assert(!_finished); | 2503 assert(!_finished); |
| 2343 _isExternal = _value; | 2504 _isExternal = _value; |
| 2344 } | 2505 } |
| 2345 | 2506 |
| 2346 @override | 2507 @override |
| 2347 int get inferredReturnTypeSlot => _inferredReturnTypeSlot ??= 0; | 2508 int get inferredReturnTypeSlot => _inferredReturnTypeSlot ??= 0; |
| 2348 | 2509 |
| 2349 /** | 2510 /** |
| 2350 * If this executable's return type is inferable, nonzero slot id | 2511 * If this executable's return type is inferable, nonzero slot id |
| 2351 * identifying which entry in [LinkedLibrary.types] contains the inferred | 2512 * identifying which entry in [LinkedUnit.types] contains the inferred |
| 2352 * return type. If there is no matching entry in [LinkedLibrary.types], then | 2513 * return type. If there is no matching entry in [LinkedUnit.types], then |
| 2353 * no return type was inferred for this variable, so its static type is | 2514 * no return type was inferred for this variable, so its static type is |
| 2354 * `dynamic`. | 2515 * `dynamic`. |
| 2355 */ | 2516 */ |
| 2356 void set inferredReturnTypeSlot(int _value) { | 2517 void set inferredReturnTypeSlot(int _value) { |
| 2357 assert(!_finished); | 2518 assert(!_finished); |
| 2358 assert(_value == null || _value >= 0); | 2519 assert(_value == null || _value >= 0); |
| 2359 _inferredReturnTypeSlot = _value; | 2520 _inferredReturnTypeSlot = _value; |
| 2360 } | 2521 } |
| 2361 | 2522 |
| 2362 UnlinkedExecutableBuilder({String name, int nameOffset, UnlinkedDocumentationC
ommentBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameter
s, EntityRefBuilder returnType, List<UnlinkedParamBuilder> parameters, idl.Unlin
kedExecutableKind kind, bool isAbstract, bool isStatic, bool isConst, bool isFac
tory, bool isExternal, int inferredReturnTypeSlot}) | 2523 @override |
| 2524 List<UnlinkedConstructorInitializerBuilder> get constantInitializers => _const
antInitializers ??= <UnlinkedConstructorInitializerBuilder>[]; |
| 2525 |
| 2526 /** |
| 2527 * If a constant [UnlinkedExecutableKind.constructor], the constructor |
| 2528 * initializers. Otherwise empty. |
| 2529 */ |
| 2530 void set constantInitializers(List<UnlinkedConstructorInitializerBuilder> _val
ue) { |
| 2531 assert(!_finished); |
| 2532 _constantInitializers = _value; |
| 2533 } |
| 2534 |
| 2535 UnlinkedExecutableBuilder({String name, int nameOffset, UnlinkedDocumentationC
ommentBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameter
s, EntityRefBuilder returnType, List<UnlinkedParamBuilder> parameters, idl.Unlin
kedExecutableKind kind, bool isAbstract, bool isStatic, bool isConst, bool isFac
tory, bool isExternal, int inferredReturnTypeSlot, List<UnlinkedConstructorIniti
alizerBuilder> constantInitializers}) |
| 2363 : _name = name, | 2536 : _name = name, |
| 2364 _nameOffset = nameOffset, | 2537 _nameOffset = nameOffset, |
| 2365 _documentationComment = documentationComment, | 2538 _documentationComment = documentationComment, |
| 2366 _typeParameters = typeParameters, | 2539 _typeParameters = typeParameters, |
| 2367 _returnType = returnType, | 2540 _returnType = returnType, |
| 2368 _parameters = parameters, | 2541 _parameters = parameters, |
| 2369 _kind = kind, | 2542 _kind = kind, |
| 2370 _isAbstract = isAbstract, | 2543 _isAbstract = isAbstract, |
| 2371 _isStatic = isStatic, | 2544 _isStatic = isStatic, |
| 2372 _isConst = isConst, | 2545 _isConst = isConst, |
| 2373 _isFactory = isFactory, | 2546 _isFactory = isFactory, |
| 2374 _isExternal = isExternal, | 2547 _isExternal = isExternal, |
| 2375 _inferredReturnTypeSlot = inferredReturnTypeSlot; | 2548 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
| 2549 _constantInitializers = constantInitializers; |
| 2376 | 2550 |
| 2377 fb.Offset finish(fb.Builder fbBuilder) { | 2551 fb.Offset finish(fb.Builder fbBuilder) { |
| 2378 assert(!_finished); | 2552 assert(!_finished); |
| 2379 _finished = true; | 2553 _finished = true; |
| 2380 fb.Offset offset_name; | 2554 fb.Offset offset_name; |
| 2381 fb.Offset offset_documentationComment; | 2555 fb.Offset offset_documentationComment; |
| 2382 fb.Offset offset_typeParameters; | 2556 fb.Offset offset_typeParameters; |
| 2383 fb.Offset offset_returnType; | 2557 fb.Offset offset_returnType; |
| 2384 fb.Offset offset_parameters; | 2558 fb.Offset offset_parameters; |
| 2559 fb.Offset offset_constantInitializers; |
| 2385 if (_name != null) { | 2560 if (_name != null) { |
| 2386 offset_name = fbBuilder.writeString(_name); | 2561 offset_name = fbBuilder.writeString(_name); |
| 2387 } | 2562 } |
| 2388 if (_documentationComment != null) { | 2563 if (_documentationComment != null) { |
| 2389 offset_documentationComment = _documentationComment.finish(fbBuilder); | 2564 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 2390 } | 2565 } |
| 2391 if (!(_typeParameters == null || _typeParameters.isEmpty)) { | 2566 if (!(_typeParameters == null || _typeParameters.isEmpty)) { |
| 2392 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); | 2567 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); |
| 2393 } | 2568 } |
| 2394 if (_returnType != null) { | 2569 if (_returnType != null) { |
| 2395 offset_returnType = _returnType.finish(fbBuilder); | 2570 offset_returnType = _returnType.finish(fbBuilder); |
| 2396 } | 2571 } |
| 2397 if (!(_parameters == null || _parameters.isEmpty)) { | 2572 if (!(_parameters == null || _parameters.isEmpty)) { |
| 2398 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 2573 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 2399 } | 2574 } |
| 2575 if (!(_constantInitializers == null || _constantInitializers.isEmpty)) { |
| 2576 offset_constantInitializers = fbBuilder.writeList(_constantInitializers.ma
p((b) => b.finish(fbBuilder)).toList()); |
| 2577 } |
| 2400 fbBuilder.startTable(); | 2578 fbBuilder.startTable(); |
| 2401 if (offset_name != null) { | 2579 if (offset_name != null) { |
| 2402 fbBuilder.addOffset(0, offset_name); | 2580 fbBuilder.addOffset(0, offset_name); |
| 2403 } | 2581 } |
| 2404 if (_nameOffset != null && _nameOffset != 0) { | 2582 if (_nameOffset != null && _nameOffset != 0) { |
| 2405 fbBuilder.addUint32(1, _nameOffset); | 2583 fbBuilder.addUint32(1, _nameOffset); |
| 2406 } | 2584 } |
| 2407 if (offset_documentationComment != null) { | 2585 if (offset_documentationComment != null) { |
| 2408 fbBuilder.addOffset(2, offset_documentationComment); | 2586 fbBuilder.addOffset(2, offset_documentationComment); |
| 2409 } | 2587 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2430 } | 2608 } |
| 2431 if (_isFactory == true) { | 2609 if (_isFactory == true) { |
| 2432 fbBuilder.addBool(10, true); | 2610 fbBuilder.addBool(10, true); |
| 2433 } | 2611 } |
| 2434 if (_isExternal == true) { | 2612 if (_isExternal == true) { |
| 2435 fbBuilder.addBool(11, true); | 2613 fbBuilder.addBool(11, true); |
| 2436 } | 2614 } |
| 2437 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { | 2615 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { |
| 2438 fbBuilder.addUint32(12, _inferredReturnTypeSlot); | 2616 fbBuilder.addUint32(12, _inferredReturnTypeSlot); |
| 2439 } | 2617 } |
| 2618 if (offset_constantInitializers != null) { |
| 2619 fbBuilder.addOffset(13, offset_constantInitializers); |
| 2620 } |
| 2440 return fbBuilder.endTable(); | 2621 return fbBuilder.endTable(); |
| 2441 } | 2622 } |
| 2442 } | 2623 } |
| 2443 | 2624 |
| 2444 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ | 2625 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ |
| 2445 const _UnlinkedExecutableReader(); | 2626 const _UnlinkedExecutableReader(); |
| 2446 | 2627 |
| 2447 @override | 2628 @override |
| 2448 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); | 2629 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); |
| 2449 } | 2630 } |
| 2450 | 2631 |
| 2451 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { | 2632 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { |
| 2452 final fb.BufferPointer _bp; | 2633 final fb.BufferPointer _bp; |
| 2453 | 2634 |
| 2454 _UnlinkedExecutableImpl(this._bp); | 2635 _UnlinkedExecutableImpl(this._bp); |
| 2455 | 2636 |
| 2456 String _name; | 2637 String _name; |
| 2457 int _nameOffset; | 2638 int _nameOffset; |
| 2458 idl.UnlinkedDocumentationComment _documentationComment; | 2639 idl.UnlinkedDocumentationComment _documentationComment; |
| 2459 List<idl.UnlinkedTypeParam> _typeParameters; | 2640 List<idl.UnlinkedTypeParam> _typeParameters; |
| 2460 idl.EntityRef _returnType; | 2641 idl.EntityRef _returnType; |
| 2461 List<idl.UnlinkedParam> _parameters; | 2642 List<idl.UnlinkedParam> _parameters; |
| 2462 idl.UnlinkedExecutableKind _kind; | 2643 idl.UnlinkedExecutableKind _kind; |
| 2463 bool _isAbstract; | 2644 bool _isAbstract; |
| 2464 bool _isStatic; | 2645 bool _isStatic; |
| 2465 bool _isConst; | 2646 bool _isConst; |
| 2466 bool _isFactory; | 2647 bool _isFactory; |
| 2467 bool _isExternal; | 2648 bool _isExternal; |
| 2468 int _inferredReturnTypeSlot; | 2649 int _inferredReturnTypeSlot; |
| 2650 List<idl.UnlinkedConstructorInitializer> _constantInitializers; |
| 2469 | 2651 |
| 2470 @override | 2652 @override |
| 2471 String get name { | 2653 String get name { |
| 2472 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 2654 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 2473 return _name; | 2655 return _name; |
| 2474 } | 2656 } |
| 2475 | 2657 |
| 2476 @override | 2658 @override |
| 2477 int get nameOffset { | 2659 int get nameOffset { |
| 2478 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 2660 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 bool get isExternal { | 2719 bool get isExternal { |
| 2538 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 11, false); | 2720 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 11, false); |
| 2539 return _isExternal; | 2721 return _isExternal; |
| 2540 } | 2722 } |
| 2541 | 2723 |
| 2542 @override | 2724 @override |
| 2543 int get inferredReturnTypeSlot { | 2725 int get inferredReturnTypeSlot { |
| 2544 _inferredReturnTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); | 2726 _inferredReturnTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); |
| 2545 return _inferredReturnTypeSlot; | 2727 return _inferredReturnTypeSlot; |
| 2546 } | 2728 } |
| 2729 |
| 2730 @override |
| 2731 List<idl.UnlinkedConstructorInitializer> get constantInitializers { |
| 2732 _constantInitializers ??= const fb.ListReader<idl.UnlinkedConstructorInitial
izer>(const _UnlinkedConstructorInitializerReader()).vTableGet(_bp, 13, const <i
dl.UnlinkedConstructorInitializer>[]); |
| 2733 return _constantInitializers; |
| 2734 } |
| 2547 } | 2735 } |
| 2548 | 2736 |
| 2549 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { | 2737 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { |
| 2550 @override | 2738 @override |
| 2551 Map<String, Object> toMap() => { | 2739 Map<String, Object> toMap() => { |
| 2552 "name": name, | 2740 "name": name, |
| 2553 "nameOffset": nameOffset, | 2741 "nameOffset": nameOffset, |
| 2554 "documentationComment": documentationComment, | 2742 "documentationComment": documentationComment, |
| 2555 "typeParameters": typeParameters, | 2743 "typeParameters": typeParameters, |
| 2556 "returnType": returnType, | 2744 "returnType": returnType, |
| 2557 "parameters": parameters, | 2745 "parameters": parameters, |
| 2558 "kind": kind, | 2746 "kind": kind, |
| 2559 "isAbstract": isAbstract, | 2747 "isAbstract": isAbstract, |
| 2560 "isStatic": isStatic, | 2748 "isStatic": isStatic, |
| 2561 "isConst": isConst, | 2749 "isConst": isConst, |
| 2562 "isFactory": isFactory, | 2750 "isFactory": isFactory, |
| 2563 "isExternal": isExternal, | 2751 "isExternal": isExternal, |
| 2564 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 2752 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 2753 "constantInitializers": constantInitializers, |
| 2565 }; | 2754 }; |
| 2566 } | 2755 } |
| 2567 | 2756 |
| 2568 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 2757 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
| 2569 bool _finished = false; | 2758 bool _finished = false; |
| 2570 | 2759 |
| 2571 int _offset; | 2760 int _offset; |
| 2572 int _uriOffset; | 2761 int _uriOffset; |
| 2573 int _uriEnd; | 2762 int _uriEnd; |
| 2574 | 2763 |
| (...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4822 "type": type, | 5011 "type": type, |
| 4823 "constExpr": constExpr, | 5012 "constExpr": constExpr, |
| 4824 "isStatic": isStatic, | 5013 "isStatic": isStatic, |
| 4825 "isFinal": isFinal, | 5014 "isFinal": isFinal, |
| 4826 "isConst": isConst, | 5015 "isConst": isConst, |
| 4827 "propagatedTypeSlot": propagatedTypeSlot, | 5016 "propagatedTypeSlot": propagatedTypeSlot, |
| 4828 "inferredTypeSlot": inferredTypeSlot, | 5017 "inferredTypeSlot": inferredTypeSlot, |
| 4829 }; | 5018 }; |
| 4830 } | 5019 } |
| 4831 | 5020 |
| OLD | NEW |