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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 assert(!_finished); | 182 assert(!_finished); |
183 _partUris = _value; | 183 _partUris = _value; |
184 } | 184 } |
185 | 185 |
186 CacheSourceContentBuilder({List<String> exportedUris, List<String> importedUri
s, idl.CacheSourceKind kind, List<String> partUris}) | 186 CacheSourceContentBuilder({List<String> exportedUris, List<String> importedUri
s, idl.CacheSourceKind kind, List<String> partUris}) |
187 : _exportedUris = exportedUris, | 187 : _exportedUris = exportedUris, |
188 _importedUris = importedUris, | 188 _importedUris = importedUris, |
189 _kind = kind, | 189 _kind = kind, |
190 _partUris = partUris; | 190 _partUris = partUris; |
191 | 191 |
| 192 /** |
| 193 * Flush [informative] data recursively. |
| 194 */ |
| 195 void flushInformative() { |
| 196 } |
| 197 |
192 List<int> toBuffer() { | 198 List<int> toBuffer() { |
193 fb.Builder fbBuilder = new fb.Builder(); | 199 fb.Builder fbBuilder = new fb.Builder(); |
194 return fbBuilder.finish(finish(fbBuilder), "CaSS"); | 200 return fbBuilder.finish(finish(fbBuilder), "CaSS"); |
195 } | 201 } |
196 | 202 |
197 fb.Offset finish(fb.Builder fbBuilder) { | 203 fb.Offset finish(fb.Builder fbBuilder) { |
198 assert(!_finished); | 204 assert(!_finished); |
199 _finished = true; | 205 _finished = true; |
200 fb.Offset offset_exportedUris; | 206 fb.Offset offset_exportedUris; |
201 fb.Offset offset_importedUris; | 207 fb.Offset offset_importedUris; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 void set offset(int _value) { | 329 void set offset(int _value) { |
324 assert(!_finished); | 330 assert(!_finished); |
325 assert(_value == null || _value >= 0); | 331 assert(_value == null || _value >= 0); |
326 _offset = _value; | 332 _offset = _value; |
327 } | 333 } |
328 | 334 |
329 CodeRangeBuilder({int length, int offset}) | 335 CodeRangeBuilder({int length, int offset}) |
330 : _length = length, | 336 : _length = length, |
331 _offset = offset; | 337 _offset = offset; |
332 | 338 |
| 339 /** |
| 340 * Flush [informative] data recursively. |
| 341 */ |
| 342 void flushInformative() { |
| 343 } |
| 344 |
333 fb.Offset finish(fb.Builder fbBuilder) { | 345 fb.Offset finish(fb.Builder fbBuilder) { |
334 assert(!_finished); | 346 assert(!_finished); |
335 _finished = true; | 347 _finished = true; |
336 fbBuilder.startTable(); | 348 fbBuilder.startTable(); |
337 if (_length != null && _length != 0) { | 349 if (_length != null && _length != 0) { |
338 fbBuilder.addUint32(1, _length); | 350 fbBuilder.addUint32(1, _length); |
339 } | 351 } |
340 if (_offset != null && _offset != 0) { | 352 if (_offset != null && _offset != 0) { |
341 fbBuilder.addUint32(0, _offset); | 353 fbBuilder.addUint32(0, _offset); |
342 } | 354 } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 | 545 |
534 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<EntityRefBuilder> typeArguments}) | 546 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<EntityRefBuilder> typeArguments}) |
535 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, | 547 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, |
536 _paramReference = paramReference, | 548 _paramReference = paramReference, |
537 _reference = reference, | 549 _reference = reference, |
538 _slot = slot, | 550 _slot = slot, |
539 _syntheticParams = syntheticParams, | 551 _syntheticParams = syntheticParams, |
540 _syntheticReturnType = syntheticReturnType, | 552 _syntheticReturnType = syntheticReturnType, |
541 _typeArguments = typeArguments; | 553 _typeArguments = typeArguments; |
542 | 554 |
| 555 /** |
| 556 * Flush [informative] data recursively. |
| 557 */ |
| 558 void flushInformative() { |
| 559 _syntheticParams?.forEach((b) => b.flushInformative()); |
| 560 _syntheticReturnType?.flushInformative(); |
| 561 _typeArguments?.forEach((b) => b.flushInformative()); |
| 562 } |
| 563 |
543 fb.Offset finish(fb.Builder fbBuilder) { | 564 fb.Offset finish(fb.Builder fbBuilder) { |
544 assert(!_finished); | 565 assert(!_finished); |
545 _finished = true; | 566 _finished = true; |
546 fb.Offset offset_implicitFunctionTypeIndices; | 567 fb.Offset offset_implicitFunctionTypeIndices; |
547 fb.Offset offset_syntheticParams; | 568 fb.Offset offset_syntheticParams; |
548 fb.Offset offset_syntheticReturnType; | 569 fb.Offset offset_syntheticReturnType; |
549 fb.Offset offset_typeArguments; | 570 fb.Offset offset_typeArguments; |
550 if (!(_implicitFunctionTypeIndices == null || _implicitFunctionTypeIndices.i
sEmpty)) { | 571 if (!(_implicitFunctionTypeIndices == null || _implicitFunctionTypeIndices.i
sEmpty)) { |
551 offset_implicitFunctionTypeIndices = fbBuilder.writeListUint32(_implicitFu
nctionTypeIndices); | 572 offset_implicitFunctionTypeIndices = fbBuilder.writeListUint32(_implicitFu
nctionTypeIndices); |
552 } | 573 } |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 */ | 728 */ |
708 void set uri(String _value) { | 729 void set uri(String _value) { |
709 assert(!_finished); | 730 assert(!_finished); |
710 _uri = _value; | 731 _uri = _value; |
711 } | 732 } |
712 | 733 |
713 LinkedDependencyBuilder({List<String> parts, String uri}) | 734 LinkedDependencyBuilder({List<String> parts, String uri}) |
714 : _parts = parts, | 735 : _parts = parts, |
715 _uri = uri; | 736 _uri = uri; |
716 | 737 |
| 738 /** |
| 739 * Flush [informative] data recursively. |
| 740 */ |
| 741 void flushInformative() { |
| 742 } |
| 743 |
717 fb.Offset finish(fb.Builder fbBuilder) { | 744 fb.Offset finish(fb.Builder fbBuilder) { |
718 assert(!_finished); | 745 assert(!_finished); |
719 _finished = true; | 746 _finished = true; |
720 fb.Offset offset_parts; | 747 fb.Offset offset_parts; |
721 fb.Offset offset_uri; | 748 fb.Offset offset_uri; |
722 if (!(_parts == null || _parts.isEmpty)) { | 749 if (!(_parts == null || _parts.isEmpty)) { |
723 offset_parts = fbBuilder.writeList(_parts.map((b) => fbBuilder.writeString
(b)).toList()); | 750 offset_parts = fbBuilder.writeList(_parts.map((b) => fbBuilder.writeString
(b)).toList()); |
724 } | 751 } |
725 if (_uri != null) { | 752 if (_uri != null) { |
726 offset_uri = fbBuilder.writeString(_uri); | 753 offset_uri = fbBuilder.writeString(_uri); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 assert(_value == null || _value >= 0); | 868 assert(_value == null || _value >= 0); |
842 _unit = _value; | 869 _unit = _value; |
843 } | 870 } |
844 | 871 |
845 LinkedExportNameBuilder({int dependency, idl.ReferenceKind kind, String name,
int unit}) | 872 LinkedExportNameBuilder({int dependency, idl.ReferenceKind kind, String name,
int unit}) |
846 : _dependency = dependency, | 873 : _dependency = dependency, |
847 _kind = kind, | 874 _kind = kind, |
848 _name = name, | 875 _name = name, |
849 _unit = unit; | 876 _unit = unit; |
850 | 877 |
| 878 /** |
| 879 * Flush [informative] data recursively. |
| 880 */ |
| 881 void flushInformative() { |
| 882 } |
| 883 |
851 fb.Offset finish(fb.Builder fbBuilder) { | 884 fb.Offset finish(fb.Builder fbBuilder) { |
852 assert(!_finished); | 885 assert(!_finished); |
853 _finished = true; | 886 _finished = true; |
854 fb.Offset offset_name; | 887 fb.Offset offset_name; |
855 if (_name != null) { | 888 if (_name != null) { |
856 offset_name = fbBuilder.writeString(_name); | 889 offset_name = fbBuilder.writeString(_name); |
857 } | 890 } |
858 fbBuilder.startTable(); | 891 fbBuilder.startTable(); |
859 if (_dependency != null && _dependency != 0) { | 892 if (_dependency != null && _dependency != 0) { |
860 fbBuilder.addUint32(0, _dependency); | 893 fbBuilder.addUint32(0, _dependency); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 _units = _value; | 1059 _units = _value; |
1027 } | 1060 } |
1028 | 1061 |
1029 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<LinkedE
xportNameBuilder> exportNames, List<int> importDependencies, int numPrelinkedDep
endencies, List<LinkedUnitBuilder> units}) | 1062 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<LinkedE
xportNameBuilder> exportNames, List<int> importDependencies, int numPrelinkedDep
endencies, List<LinkedUnitBuilder> units}) |
1030 : _dependencies = dependencies, | 1063 : _dependencies = dependencies, |
1031 _exportNames = exportNames, | 1064 _exportNames = exportNames, |
1032 _importDependencies = importDependencies, | 1065 _importDependencies = importDependencies, |
1033 _numPrelinkedDependencies = numPrelinkedDependencies, | 1066 _numPrelinkedDependencies = numPrelinkedDependencies, |
1034 _units = units; | 1067 _units = units; |
1035 | 1068 |
| 1069 /** |
| 1070 * Flush [informative] data recursively. |
| 1071 */ |
| 1072 void flushInformative() { |
| 1073 _dependencies?.forEach((b) => b.flushInformative()); |
| 1074 _exportNames?.forEach((b) => b.flushInformative()); |
| 1075 _units?.forEach((b) => b.flushInformative()); |
| 1076 } |
| 1077 |
1036 List<int> toBuffer() { | 1078 List<int> toBuffer() { |
1037 fb.Builder fbBuilder = new fb.Builder(); | 1079 fb.Builder fbBuilder = new fb.Builder(); |
1038 return fbBuilder.finish(finish(fbBuilder), "LLib"); | 1080 return fbBuilder.finish(finish(fbBuilder), "LLib"); |
1039 } | 1081 } |
1040 | 1082 |
1041 fb.Offset finish(fb.Builder fbBuilder) { | 1083 fb.Offset finish(fb.Builder fbBuilder) { |
1042 assert(!_finished); | 1084 assert(!_finished); |
1043 _finished = true; | 1085 _finished = true; |
1044 fb.Offset offset_dependencies; | 1086 fb.Offset offset_dependencies; |
1045 fb.Offset offset_exportNames; | 1087 fb.Offset offset_exportNames; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 | 1320 |
1279 LinkedReferenceBuilder({int containingReference, int dependency, idl.Reference
Kind kind, int localIndex, String name, int numTypeParameters, int unit}) | 1321 LinkedReferenceBuilder({int containingReference, int dependency, idl.Reference
Kind kind, int localIndex, String name, int numTypeParameters, int unit}) |
1280 : _containingReference = containingReference, | 1322 : _containingReference = containingReference, |
1281 _dependency = dependency, | 1323 _dependency = dependency, |
1282 _kind = kind, | 1324 _kind = kind, |
1283 _localIndex = localIndex, | 1325 _localIndex = localIndex, |
1284 _name = name, | 1326 _name = name, |
1285 _numTypeParameters = numTypeParameters, | 1327 _numTypeParameters = numTypeParameters, |
1286 _unit = unit; | 1328 _unit = unit; |
1287 | 1329 |
| 1330 /** |
| 1331 * Flush [informative] data recursively. |
| 1332 */ |
| 1333 void flushInformative() { |
| 1334 } |
| 1335 |
1288 fb.Offset finish(fb.Builder fbBuilder) { | 1336 fb.Offset finish(fb.Builder fbBuilder) { |
1289 assert(!_finished); | 1337 assert(!_finished); |
1290 _finished = true; | 1338 _finished = true; |
1291 fb.Offset offset_name; | 1339 fb.Offset offset_name; |
1292 if (_name != null) { | 1340 if (_name != null) { |
1293 offset_name = fbBuilder.writeString(_name); | 1341 offset_name = fbBuilder.writeString(_name); |
1294 } | 1342 } |
1295 fbBuilder.startTable(); | 1343 fbBuilder.startTable(); |
1296 if (_containingReference != null && _containingReference != 0) { | 1344 if (_containingReference != null && _containingReference != 0) { |
1297 fbBuilder.addUint32(5, _containingReference); | 1345 fbBuilder.addUint32(5, _containingReference); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 void set types(List<EntityRefBuilder> _value) { | 1504 void set types(List<EntityRefBuilder> _value) { |
1457 assert(!_finished); | 1505 assert(!_finished); |
1458 _types = _value; | 1506 _types = _value; |
1459 } | 1507 } |
1460 | 1508 |
1461 LinkedUnitBuilder({List<int> constCycles, List<LinkedReferenceBuilder> referen
ces, List<EntityRefBuilder> types}) | 1509 LinkedUnitBuilder({List<int> constCycles, List<LinkedReferenceBuilder> referen
ces, List<EntityRefBuilder> types}) |
1462 : _constCycles = constCycles, | 1510 : _constCycles = constCycles, |
1463 _references = references, | 1511 _references = references, |
1464 _types = types; | 1512 _types = types; |
1465 | 1513 |
| 1514 /** |
| 1515 * Flush [informative] data recursively. |
| 1516 */ |
| 1517 void flushInformative() { |
| 1518 _references?.forEach((b) => b.flushInformative()); |
| 1519 _types?.forEach((b) => b.flushInformative()); |
| 1520 } |
| 1521 |
1466 fb.Offset finish(fb.Builder fbBuilder) { | 1522 fb.Offset finish(fb.Builder fbBuilder) { |
1467 assert(!_finished); | 1523 assert(!_finished); |
1468 _finished = true; | 1524 _finished = true; |
1469 fb.Offset offset_constCycles; | 1525 fb.Offset offset_constCycles; |
1470 fb.Offset offset_references; | 1526 fb.Offset offset_references; |
1471 fb.Offset offset_types; | 1527 fb.Offset offset_types; |
1472 if (!(_constCycles == null || _constCycles.isEmpty)) { | 1528 if (!(_constCycles == null || _constCycles.isEmpty)) { |
1473 offset_constCycles = fbBuilder.writeListUint32(_constCycles); | 1529 offset_constCycles = fbBuilder.writeListUint32(_constCycles); |
1474 } | 1530 } |
1475 if (!(_references == null || _references.isEmpty)) { | 1531 if (!(_references == null || _references.isEmpty)) { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1644 | 1700 |
1645 PackageBundleBuilder({List<LinkedLibraryBuilder> linkedLibraries, List<String>
linkedLibraryUris, int majorVersion, int minorVersion, List<String> unlinkedUni
tHashes, List<UnlinkedUnitBuilder> unlinkedUnits, List<String> unlinkedUnitUris}
) | 1701 PackageBundleBuilder({List<LinkedLibraryBuilder> linkedLibraries, List<String>
linkedLibraryUris, int majorVersion, int minorVersion, List<String> unlinkedUni
tHashes, List<UnlinkedUnitBuilder> unlinkedUnits, List<String> unlinkedUnitUris}
) |
1646 : _linkedLibraries = linkedLibraries, | 1702 : _linkedLibraries = linkedLibraries, |
1647 _linkedLibraryUris = linkedLibraryUris, | 1703 _linkedLibraryUris = linkedLibraryUris, |
1648 _majorVersion = majorVersion, | 1704 _majorVersion = majorVersion, |
1649 _minorVersion = minorVersion, | 1705 _minorVersion = minorVersion, |
1650 _unlinkedUnitHashes = unlinkedUnitHashes, | 1706 _unlinkedUnitHashes = unlinkedUnitHashes, |
1651 _unlinkedUnits = unlinkedUnits, | 1707 _unlinkedUnits = unlinkedUnits, |
1652 _unlinkedUnitUris = unlinkedUnitUris; | 1708 _unlinkedUnitUris = unlinkedUnitUris; |
1653 | 1709 |
| 1710 /** |
| 1711 * Flush [informative] data recursively. |
| 1712 */ |
| 1713 void flushInformative() { |
| 1714 _linkedLibraries?.forEach((b) => b.flushInformative()); |
| 1715 _unlinkedUnits?.forEach((b) => b.flushInformative()); |
| 1716 } |
| 1717 |
1654 List<int> toBuffer() { | 1718 List<int> toBuffer() { |
1655 fb.Builder fbBuilder = new fb.Builder(); | 1719 fb.Builder fbBuilder = new fb.Builder(); |
1656 return fbBuilder.finish(finish(fbBuilder), "PBdl"); | 1720 return fbBuilder.finish(finish(fbBuilder), "PBdl"); |
1657 } | 1721 } |
1658 | 1722 |
1659 fb.Offset finish(fb.Builder fbBuilder) { | 1723 fb.Offset finish(fb.Builder fbBuilder) { |
1660 assert(!_finished); | 1724 assert(!_finished); |
1661 _finished = true; | 1725 _finished = true; |
1662 fb.Offset offset_linkedLibraries; | 1726 fb.Offset offset_linkedLibraries; |
1663 fb.Offset offset_linkedLibraryUris; | 1727 fb.Offset offset_linkedLibraryUris; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 | 1972 |
1909 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}) | 1973 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}) |
1910 : _elementKinds = elementKinds, | 1974 : _elementKinds = elementKinds, |
1911 _elementOffsets = elementOffsets, | 1975 _elementOffsets = elementOffsets, |
1912 _elementUnits = elementUnits, | 1976 _elementUnits = elementUnits, |
1913 _strings = strings, | 1977 _strings = strings, |
1914 _unitLibraryUris = unitLibraryUris, | 1978 _unitLibraryUris = unitLibraryUris, |
1915 _units = units, | 1979 _units = units, |
1916 _unitUnitUris = unitUnitUris; | 1980 _unitUnitUris = unitUnitUris; |
1917 | 1981 |
| 1982 /** |
| 1983 * Flush [informative] data recursively. |
| 1984 */ |
| 1985 void flushInformative() { |
| 1986 _units?.forEach((b) => b.flushInformative()); |
| 1987 } |
| 1988 |
1918 List<int> toBuffer() { | 1989 List<int> toBuffer() { |
1919 fb.Builder fbBuilder = new fb.Builder(); | 1990 fb.Builder fbBuilder = new fb.Builder(); |
1920 return fbBuilder.finish(finish(fbBuilder), "Indx"); | 1991 return fbBuilder.finish(finish(fbBuilder), "Indx"); |
1921 } | 1992 } |
1922 | 1993 |
1923 fb.Offset finish(fb.Builder fbBuilder) { | 1994 fb.Offset finish(fb.Builder fbBuilder) { |
1924 assert(!_finished); | 1995 assert(!_finished); |
1925 _finished = true; | 1996 _finished = true; |
1926 fb.Offset offset_elementKinds; | 1997 fb.Offset offset_elementKinds; |
1927 fb.Offset offset_elementOffsets; | 1998 fb.Offset offset_elementOffsets; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, | 2334 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, |
2264 _usedElementKinds = usedElementKinds, | 2335 _usedElementKinds = usedElementKinds, |
2265 _usedElementLengths = usedElementLengths, | 2336 _usedElementLengths = usedElementLengths, |
2266 _usedElementOffsets = usedElementOffsets, | 2337 _usedElementOffsets = usedElementOffsets, |
2267 _usedElements = usedElements, | 2338 _usedElements = usedElements, |
2268 _usedNameIsQualifiedFlags = usedNameIsQualifiedFlags, | 2339 _usedNameIsQualifiedFlags = usedNameIsQualifiedFlags, |
2269 _usedNameKinds = usedNameKinds, | 2340 _usedNameKinds = usedNameKinds, |
2270 _usedNameOffsets = usedNameOffsets, | 2341 _usedNameOffsets = usedNameOffsets, |
2271 _usedNames = usedNames; | 2342 _usedNames = usedNames; |
2272 | 2343 |
| 2344 /** |
| 2345 * Flush [informative] data recursively. |
| 2346 */ |
| 2347 void flushInformative() { |
| 2348 } |
| 2349 |
2273 fb.Offset finish(fb.Builder fbBuilder) { | 2350 fb.Offset finish(fb.Builder fbBuilder) { |
2274 assert(!_finished); | 2351 assert(!_finished); |
2275 _finished = true; | 2352 _finished = true; |
2276 fb.Offset offset_definedNameKinds; | 2353 fb.Offset offset_definedNameKinds; |
2277 fb.Offset offset_definedNameOffsets; | 2354 fb.Offset offset_definedNameOffsets; |
2278 fb.Offset offset_definedNames; | 2355 fb.Offset offset_definedNames; |
2279 fb.Offset offset_usedElementIsQualifiedFlags; | 2356 fb.Offset offset_usedElementIsQualifiedFlags; |
2280 fb.Offset offset_usedElementKinds; | 2357 fb.Offset offset_usedElementKinds; |
2281 fb.Offset offset_usedElementLengths; | 2358 fb.Offset offset_usedElementLengths; |
2282 fb.Offset offset_usedElementOffsets; | 2359 fb.Offset offset_usedElementOffsets; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 _hasNoSupertype = hasNoSupertype, | 2774 _hasNoSupertype = hasNoSupertype, |
2698 _interfaces = interfaces, | 2775 _interfaces = interfaces, |
2699 _isAbstract = isAbstract, | 2776 _isAbstract = isAbstract, |
2700 _isMixinApplication = isMixinApplication, | 2777 _isMixinApplication = isMixinApplication, |
2701 _mixins = mixins, | 2778 _mixins = mixins, |
2702 _name = name, | 2779 _name = name, |
2703 _nameOffset = nameOffset, | 2780 _nameOffset = nameOffset, |
2704 _supertype = supertype, | 2781 _supertype = supertype, |
2705 _typeParameters = typeParameters; | 2782 _typeParameters = typeParameters; |
2706 | 2783 |
| 2784 /** |
| 2785 * Flush [informative] data recursively. |
| 2786 */ |
| 2787 void flushInformative() { |
| 2788 _annotations?.forEach((b) => b.flushInformative()); |
| 2789 _codeRange = null; |
| 2790 _documentationComment = null; |
| 2791 _executables?.forEach((b) => b.flushInformative()); |
| 2792 _fields?.forEach((b) => b.flushInformative()); |
| 2793 _interfaces?.forEach((b) => b.flushInformative()); |
| 2794 _mixins?.forEach((b) => b.flushInformative()); |
| 2795 _nameOffset = null; |
| 2796 _supertype?.flushInformative(); |
| 2797 _typeParameters?.forEach((b) => b.flushInformative()); |
| 2798 } |
| 2799 |
2707 fb.Offset finish(fb.Builder fbBuilder) { | 2800 fb.Offset finish(fb.Builder fbBuilder) { |
2708 assert(!_finished); | 2801 assert(!_finished); |
2709 _finished = true; | 2802 _finished = true; |
2710 fb.Offset offset_annotations; | 2803 fb.Offset offset_annotations; |
2711 fb.Offset offset_codeRange; | 2804 fb.Offset offset_codeRange; |
2712 fb.Offset offset_documentationComment; | 2805 fb.Offset offset_documentationComment; |
2713 fb.Offset offset_executables; | 2806 fb.Offset offset_executables; |
2714 fb.Offset offset_fields; | 2807 fb.Offset offset_fields; |
2715 fb.Offset offset_interfaces; | 2808 fb.Offset offset_interfaces; |
2716 fb.Offset offset_mixins; | 2809 fb.Offset offset_mixins; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3004 assert(!_finished); | 3097 assert(!_finished); |
3005 _shows = _value; | 3098 _shows = _value; |
3006 } | 3099 } |
3007 | 3100 |
3008 UnlinkedCombinatorBuilder({int end, List<String> hides, int offset, List<Strin
g> shows}) | 3101 UnlinkedCombinatorBuilder({int end, List<String> hides, int offset, List<Strin
g> shows}) |
3009 : _end = end, | 3102 : _end = end, |
3010 _hides = hides, | 3103 _hides = hides, |
3011 _offset = offset, | 3104 _offset = offset, |
3012 _shows = shows; | 3105 _shows = shows; |
3013 | 3106 |
| 3107 /** |
| 3108 * Flush [informative] data recursively. |
| 3109 */ |
| 3110 void flushInformative() { |
| 3111 _end = null; |
| 3112 _offset = null; |
| 3113 } |
| 3114 |
3014 fb.Offset finish(fb.Builder fbBuilder) { | 3115 fb.Offset finish(fb.Builder fbBuilder) { |
3015 assert(!_finished); | 3116 assert(!_finished); |
3016 _finished = true; | 3117 _finished = true; |
3017 fb.Offset offset_hides; | 3118 fb.Offset offset_hides; |
3018 fb.Offset offset_shows; | 3119 fb.Offset offset_shows; |
3019 if (!(_hides == null || _hides.isEmpty)) { | 3120 if (!(_hides == null || _hides.isEmpty)) { |
3020 offset_hides = fbBuilder.writeList(_hides.map((b) => fbBuilder.writeString
(b)).toList()); | 3121 offset_hides = fbBuilder.writeList(_hides.map((b) => fbBuilder.writeString
(b)).toList()); |
3021 } | 3122 } |
3022 if (!(_shows == null || _shows.isEmpty)) { | 3123 if (!(_shows == null || _shows.isEmpty)) { |
3023 offset_shows = fbBuilder.writeList(_shows.map((b) => fbBuilder.writeString
(b)).toList()); | 3124 offset_shows = fbBuilder.writeList(_shows.map((b) => fbBuilder.writeString
(b)).toList()); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3190 } | 3291 } |
3191 | 3292 |
3192 UnlinkedConstBuilder({List<double> doubles, List<int> ints, bool isInvalid, Li
st<idl.UnlinkedConstOperation> operations, List<EntityRefBuilder> references, Li
st<String> strings}) | 3293 UnlinkedConstBuilder({List<double> doubles, List<int> ints, bool isInvalid, Li
st<idl.UnlinkedConstOperation> operations, List<EntityRefBuilder> references, Li
st<String> strings}) |
3193 : _doubles = doubles, | 3294 : _doubles = doubles, |
3194 _ints = ints, | 3295 _ints = ints, |
3195 _isInvalid = isInvalid, | 3296 _isInvalid = isInvalid, |
3196 _operations = operations, | 3297 _operations = operations, |
3197 _references = references, | 3298 _references = references, |
3198 _strings = strings; | 3299 _strings = strings; |
3199 | 3300 |
| 3301 /** |
| 3302 * Flush [informative] data recursively. |
| 3303 */ |
| 3304 void flushInformative() { |
| 3305 _references?.forEach((b) => b.flushInformative()); |
| 3306 } |
| 3307 |
3200 fb.Offset finish(fb.Builder fbBuilder) { | 3308 fb.Offset finish(fb.Builder fbBuilder) { |
3201 assert(!_finished); | 3309 assert(!_finished); |
3202 _finished = true; | 3310 _finished = true; |
3203 fb.Offset offset_doubles; | 3311 fb.Offset offset_doubles; |
3204 fb.Offset offset_ints; | 3312 fb.Offset offset_ints; |
3205 fb.Offset offset_operations; | 3313 fb.Offset offset_operations; |
3206 fb.Offset offset_references; | 3314 fb.Offset offset_references; |
3207 fb.Offset offset_strings; | 3315 fb.Offset offset_strings; |
3208 if (!(_doubles == null || _doubles.isEmpty)) { | 3316 if (!(_doubles == null || _doubles.isEmpty)) { |
3209 offset_doubles = fbBuilder.writeListFloat64(_doubles); | 3317 offset_doubles = fbBuilder.writeListFloat64(_doubles); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3382 assert(!_finished); | 3490 assert(!_finished); |
3383 _name = _value; | 3491 _name = _value; |
3384 } | 3492 } |
3385 | 3493 |
3386 UnlinkedConstructorInitializerBuilder({List<UnlinkedConstBuilder> arguments, U
nlinkedConstBuilder expression, idl.UnlinkedConstructorInitializerKind kind, Str
ing name}) | 3494 UnlinkedConstructorInitializerBuilder({List<UnlinkedConstBuilder> arguments, U
nlinkedConstBuilder expression, idl.UnlinkedConstructorInitializerKind kind, Str
ing name}) |
3387 : _arguments = arguments, | 3495 : _arguments = arguments, |
3388 _expression = expression, | 3496 _expression = expression, |
3389 _kind = kind, | 3497 _kind = kind, |
3390 _name = name; | 3498 _name = name; |
3391 | 3499 |
| 3500 /** |
| 3501 * Flush [informative] data recursively. |
| 3502 */ |
| 3503 void flushInformative() { |
| 3504 _arguments?.forEach((b) => b.flushInformative()); |
| 3505 _expression?.flushInformative(); |
| 3506 } |
| 3507 |
3392 fb.Offset finish(fb.Builder fbBuilder) { | 3508 fb.Offset finish(fb.Builder fbBuilder) { |
3393 assert(!_finished); | 3509 assert(!_finished); |
3394 _finished = true; | 3510 _finished = true; |
3395 fb.Offset offset_arguments; | 3511 fb.Offset offset_arguments; |
3396 fb.Offset offset_expression; | 3512 fb.Offset offset_expression; |
3397 fb.Offset offset_name; | 3513 fb.Offset offset_name; |
3398 if (!(_arguments == null || _arguments.isEmpty)) { | 3514 if (!(_arguments == null || _arguments.isEmpty)) { |
3399 offset_arguments = fbBuilder.writeList(_arguments.map((b) => b.finish(fbBu
ilder)).toList()); | 3515 offset_arguments = fbBuilder.writeList(_arguments.map((b) => b.finish(fbBu
ilder)).toList()); |
3400 } | 3516 } |
3401 if (_expression != null) { | 3517 if (_expression != null) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3530 void set text(String _value) { | 3646 void set text(String _value) { |
3531 assert(!_finished); | 3647 assert(!_finished); |
3532 _text = _value; | 3648 _text = _value; |
3533 } | 3649 } |
3534 | 3650 |
3535 UnlinkedDocumentationCommentBuilder({int length, int offset, String text}) | 3651 UnlinkedDocumentationCommentBuilder({int length, int offset, String text}) |
3536 : _length = length, | 3652 : _length = length, |
3537 _offset = offset, | 3653 _offset = offset, |
3538 _text = text; | 3654 _text = text; |
3539 | 3655 |
| 3656 /** |
| 3657 * Flush [informative] data recursively. |
| 3658 */ |
| 3659 void flushInformative() { |
| 3660 } |
| 3661 |
3540 fb.Offset finish(fb.Builder fbBuilder) { | 3662 fb.Offset finish(fb.Builder fbBuilder) { |
3541 assert(!_finished); | 3663 assert(!_finished); |
3542 _finished = true; | 3664 _finished = true; |
3543 fb.Offset offset_text; | 3665 fb.Offset offset_text; |
3544 if (_text != null) { | 3666 if (_text != null) { |
3545 offset_text = fbBuilder.writeString(_text); | 3667 offset_text = fbBuilder.writeString(_text); |
3546 } | 3668 } |
3547 fbBuilder.startTable(); | 3669 fbBuilder.startTable(); |
3548 if (_length != null && _length != 0) { | 3670 if (_length != null && _length != 0) { |
3549 fbBuilder.addUint32(0, _length); | 3671 fbBuilder.addUint32(0, _length); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3693 } | 3815 } |
3694 | 3816 |
3695 UnlinkedEnumBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name
, int nameOffset, List<UnlinkedEnumValueBuilder> values}) | 3817 UnlinkedEnumBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name
, int nameOffset, List<UnlinkedEnumValueBuilder> values}) |
3696 : _annotations = annotations, | 3818 : _annotations = annotations, |
3697 _codeRange = codeRange, | 3819 _codeRange = codeRange, |
3698 _documentationComment = documentationComment, | 3820 _documentationComment = documentationComment, |
3699 _name = name, | 3821 _name = name, |
3700 _nameOffset = nameOffset, | 3822 _nameOffset = nameOffset, |
3701 _values = values; | 3823 _values = values; |
3702 | 3824 |
| 3825 /** |
| 3826 * Flush [informative] data recursively. |
| 3827 */ |
| 3828 void flushInformative() { |
| 3829 _annotations?.forEach((b) => b.flushInformative()); |
| 3830 _codeRange = null; |
| 3831 _documentationComment = null; |
| 3832 _nameOffset = null; |
| 3833 _values?.forEach((b) => b.flushInformative()); |
| 3834 } |
| 3835 |
3703 fb.Offset finish(fb.Builder fbBuilder) { | 3836 fb.Offset finish(fb.Builder fbBuilder) { |
3704 assert(!_finished); | 3837 assert(!_finished); |
3705 _finished = true; | 3838 _finished = true; |
3706 fb.Offset offset_annotations; | 3839 fb.Offset offset_annotations; |
3707 fb.Offset offset_codeRange; | 3840 fb.Offset offset_codeRange; |
3708 fb.Offset offset_documentationComment; | 3841 fb.Offset offset_documentationComment; |
3709 fb.Offset offset_name; | 3842 fb.Offset offset_name; |
3710 fb.Offset offset_values; | 3843 fb.Offset offset_values; |
3711 if (!(_annotations == null || _annotations.isEmpty)) { | 3844 if (!(_annotations == null || _annotations.isEmpty)) { |
3712 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 3845 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3869 assert(!_finished); | 4002 assert(!_finished); |
3870 assert(_value == null || _value >= 0); | 4003 assert(_value == null || _value >= 0); |
3871 _nameOffset = _value; | 4004 _nameOffset = _value; |
3872 } | 4005 } |
3873 | 4006 |
3874 UnlinkedEnumValueBuilder({UnlinkedDocumentationCommentBuilder documentationCom
ment, String name, int nameOffset}) | 4007 UnlinkedEnumValueBuilder({UnlinkedDocumentationCommentBuilder documentationCom
ment, String name, int nameOffset}) |
3875 : _documentationComment = documentationComment, | 4008 : _documentationComment = documentationComment, |
3876 _name = name, | 4009 _name = name, |
3877 _nameOffset = nameOffset; | 4010 _nameOffset = nameOffset; |
3878 | 4011 |
| 4012 /** |
| 4013 * Flush [informative] data recursively. |
| 4014 */ |
| 4015 void flushInformative() { |
| 4016 _documentationComment = null; |
| 4017 _nameOffset = null; |
| 4018 } |
| 4019 |
3879 fb.Offset finish(fb.Builder fbBuilder) { | 4020 fb.Offset finish(fb.Builder fbBuilder) { |
3880 assert(!_finished); | 4021 assert(!_finished); |
3881 _finished = true; | 4022 _finished = true; |
3882 fb.Offset offset_documentationComment; | 4023 fb.Offset offset_documentationComment; |
3883 fb.Offset offset_name; | 4024 fb.Offset offset_name; |
3884 if (_documentationComment != null) { | 4025 if (_documentationComment != null) { |
3885 offset_documentationComment = _documentationComment.finish(fbBuilder); | 4026 offset_documentationComment = _documentationComment.finish(fbBuilder); |
3886 } | 4027 } |
3887 if (_name != null) { | 4028 if (_name != null) { |
3888 offset_name = fbBuilder.writeString(_name); | 4029 offset_name = fbBuilder.writeString(_name); |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4347 _nameOffset = nameOffset, | 4488 _nameOffset = nameOffset, |
4348 _parameters = parameters, | 4489 _parameters = parameters, |
4349 _periodOffset = periodOffset, | 4490 _periodOffset = periodOffset, |
4350 _redirectedConstructor = redirectedConstructor, | 4491 _redirectedConstructor = redirectedConstructor, |
4351 _redirectedConstructorName = redirectedConstructorName, | 4492 _redirectedConstructorName = redirectedConstructorName, |
4352 _returnType = returnType, | 4493 _returnType = returnType, |
4353 _typeParameters = typeParameters, | 4494 _typeParameters = typeParameters, |
4354 _visibleLength = visibleLength, | 4495 _visibleLength = visibleLength, |
4355 _visibleOffset = visibleOffset; | 4496 _visibleOffset = visibleOffset; |
4356 | 4497 |
| 4498 /** |
| 4499 * Flush [informative] data recursively. |
| 4500 */ |
| 4501 void flushInformative() { |
| 4502 _annotations?.forEach((b) => b.flushInformative()); |
| 4503 _codeRange = null; |
| 4504 _constantInitializers?.forEach((b) => b.flushInformative()); |
| 4505 _documentationComment = null; |
| 4506 _localFunctions?.forEach((b) => b.flushInformative()); |
| 4507 _localLabels?.forEach((b) => b.flushInformative()); |
| 4508 _localVariables?.forEach((b) => b.flushInformative()); |
| 4509 _nameEnd = null; |
| 4510 _nameOffset = null; |
| 4511 _parameters?.forEach((b) => b.flushInformative()); |
| 4512 _periodOffset = null; |
| 4513 _redirectedConstructor?.flushInformative(); |
| 4514 _returnType?.flushInformative(); |
| 4515 _typeParameters?.forEach((b) => b.flushInformative()); |
| 4516 } |
| 4517 |
4357 fb.Offset finish(fb.Builder fbBuilder) { | 4518 fb.Offset finish(fb.Builder fbBuilder) { |
4358 assert(!_finished); | 4519 assert(!_finished); |
4359 _finished = true; | 4520 _finished = true; |
4360 fb.Offset offset_annotations; | 4521 fb.Offset offset_annotations; |
4361 fb.Offset offset_codeRange; | 4522 fb.Offset offset_codeRange; |
4362 fb.Offset offset_constantInitializers; | 4523 fb.Offset offset_constantInitializers; |
4363 fb.Offset offset_documentationComment; | 4524 fb.Offset offset_documentationComment; |
4364 fb.Offset offset_localFunctions; | 4525 fb.Offset offset_localFunctions; |
4365 fb.Offset offset_localLabels; | 4526 fb.Offset offset_localLabels; |
4366 fb.Offset offset_localVariables; | 4527 fb.Offset offset_localVariables; |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4823 assert(_value == null || _value >= 0); | 4984 assert(_value == null || _value >= 0); |
4824 _uriOffset = _value; | 4985 _uriOffset = _value; |
4825 } | 4986 } |
4826 | 4987 |
4827 UnlinkedExportNonPublicBuilder({List<UnlinkedConstBuilder> annotations, int of
fset, int uriEnd, int uriOffset}) | 4988 UnlinkedExportNonPublicBuilder({List<UnlinkedConstBuilder> annotations, int of
fset, int uriEnd, int uriOffset}) |
4828 : _annotations = annotations, | 4989 : _annotations = annotations, |
4829 _offset = offset, | 4990 _offset = offset, |
4830 _uriEnd = uriEnd, | 4991 _uriEnd = uriEnd, |
4831 _uriOffset = uriOffset; | 4992 _uriOffset = uriOffset; |
4832 | 4993 |
| 4994 /** |
| 4995 * Flush [informative] data recursively. |
| 4996 */ |
| 4997 void flushInformative() { |
| 4998 _annotations?.forEach((b) => b.flushInformative()); |
| 4999 _offset = null; |
| 5000 _uriEnd = null; |
| 5001 _uriOffset = null; |
| 5002 } |
| 5003 |
4833 fb.Offset finish(fb.Builder fbBuilder) { | 5004 fb.Offset finish(fb.Builder fbBuilder) { |
4834 assert(!_finished); | 5005 assert(!_finished); |
4835 _finished = true; | 5006 _finished = true; |
4836 fb.Offset offset_annotations; | 5007 fb.Offset offset_annotations; |
4837 if (!(_annotations == null || _annotations.isEmpty)) { | 5008 if (!(_annotations == null || _annotations.isEmpty)) { |
4838 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 5009 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
4839 } | 5010 } |
4840 fbBuilder.startTable(); | 5011 fbBuilder.startTable(); |
4841 if (offset_annotations != null) { | 5012 if (offset_annotations != null) { |
4842 fbBuilder.addOffset(3, offset_annotations); | 5013 fbBuilder.addOffset(3, offset_annotations); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4944 */ | 5115 */ |
4945 void set uri(String _value) { | 5116 void set uri(String _value) { |
4946 assert(!_finished); | 5117 assert(!_finished); |
4947 _uri = _value; | 5118 _uri = _value; |
4948 } | 5119 } |
4949 | 5120 |
4950 UnlinkedExportPublicBuilder({List<UnlinkedCombinatorBuilder> combinators, Stri
ng uri}) | 5121 UnlinkedExportPublicBuilder({List<UnlinkedCombinatorBuilder> combinators, Stri
ng uri}) |
4951 : _combinators = combinators, | 5122 : _combinators = combinators, |
4952 _uri = uri; | 5123 _uri = uri; |
4953 | 5124 |
| 5125 /** |
| 5126 * Flush [informative] data recursively. |
| 5127 */ |
| 5128 void flushInformative() { |
| 5129 _combinators?.forEach((b) => b.flushInformative()); |
| 5130 } |
| 5131 |
4954 fb.Offset finish(fb.Builder fbBuilder) { | 5132 fb.Offset finish(fb.Builder fbBuilder) { |
4955 assert(!_finished); | 5133 assert(!_finished); |
4956 _finished = true; | 5134 _finished = true; |
4957 fb.Offset offset_combinators; | 5135 fb.Offset offset_combinators; |
4958 fb.Offset offset_uri; | 5136 fb.Offset offset_uri; |
4959 if (!(_combinators == null || _combinators.isEmpty)) { | 5137 if (!(_combinators == null || _combinators.isEmpty)) { |
4960 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish(
fbBuilder)).toList()); | 5138 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish(
fbBuilder)).toList()); |
4961 } | 5139 } |
4962 if (_uri != null) { | 5140 if (_uri != null) { |
4963 offset_uri = fbBuilder.writeString(_uri); | 5141 offset_uri = fbBuilder.writeString(_uri); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5161 _combinators = combinators, | 5339 _combinators = combinators, |
5162 _isDeferred = isDeferred, | 5340 _isDeferred = isDeferred, |
5163 _isImplicit = isImplicit, | 5341 _isImplicit = isImplicit, |
5164 _offset = offset, | 5342 _offset = offset, |
5165 _prefixOffset = prefixOffset, | 5343 _prefixOffset = prefixOffset, |
5166 _prefixReference = prefixReference, | 5344 _prefixReference = prefixReference, |
5167 _uri = uri, | 5345 _uri = uri, |
5168 _uriEnd = uriEnd, | 5346 _uriEnd = uriEnd, |
5169 _uriOffset = uriOffset; | 5347 _uriOffset = uriOffset; |
5170 | 5348 |
| 5349 /** |
| 5350 * Flush [informative] data recursively. |
| 5351 */ |
| 5352 void flushInformative() { |
| 5353 _annotations?.forEach((b) => b.flushInformative()); |
| 5354 _combinators?.forEach((b) => b.flushInformative()); |
| 5355 _offset = null; |
| 5356 _prefixOffset = null; |
| 5357 _uriEnd = null; |
| 5358 _uriOffset = null; |
| 5359 } |
| 5360 |
5171 fb.Offset finish(fb.Builder fbBuilder) { | 5361 fb.Offset finish(fb.Builder fbBuilder) { |
5172 assert(!_finished); | 5362 assert(!_finished); |
5173 _finished = true; | 5363 _finished = true; |
5174 fb.Offset offset_annotations; | 5364 fb.Offset offset_annotations; |
5175 fb.Offset offset_combinators; | 5365 fb.Offset offset_combinators; |
5176 fb.Offset offset_uri; | 5366 fb.Offset offset_uri; |
5177 if (!(_annotations == null || _annotations.isEmpty)) { | 5367 if (!(_annotations == null || _annotations.isEmpty)) { |
5178 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 5368 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
5179 } | 5369 } |
5180 if (!(_combinators == null || _combinators.isEmpty)) { | 5370 if (!(_combinators == null || _combinators.isEmpty)) { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 assert(_value == null || _value >= 0); | 5580 assert(_value == null || _value >= 0); |
5391 _nameOffset = _value; | 5581 _nameOffset = _value; |
5392 } | 5582 } |
5393 | 5583 |
5394 UnlinkedLabelBuilder({bool isOnSwitchMember, bool isOnSwitchStatement, String
name, int nameOffset}) | 5584 UnlinkedLabelBuilder({bool isOnSwitchMember, bool isOnSwitchStatement, String
name, int nameOffset}) |
5395 : _isOnSwitchMember = isOnSwitchMember, | 5585 : _isOnSwitchMember = isOnSwitchMember, |
5396 _isOnSwitchStatement = isOnSwitchStatement, | 5586 _isOnSwitchStatement = isOnSwitchStatement, |
5397 _name = name, | 5587 _name = name, |
5398 _nameOffset = nameOffset; | 5588 _nameOffset = nameOffset; |
5399 | 5589 |
| 5590 /** |
| 5591 * Flush [informative] data recursively. |
| 5592 */ |
| 5593 void flushInformative() { |
| 5594 _nameOffset = null; |
| 5595 } |
| 5596 |
5400 fb.Offset finish(fb.Builder fbBuilder) { | 5597 fb.Offset finish(fb.Builder fbBuilder) { |
5401 assert(!_finished); | 5598 assert(!_finished); |
5402 _finished = true; | 5599 _finished = true; |
5403 fb.Offset offset_name; | 5600 fb.Offset offset_name; |
5404 if (_name != null) { | 5601 if (_name != null) { |
5405 offset_name = fbBuilder.writeString(_name); | 5602 offset_name = fbBuilder.writeString(_name); |
5406 } | 5603 } |
5407 fbBuilder.startTable(); | 5604 fbBuilder.startTable(); |
5408 if (_isOnSwitchMember == true) { | 5605 if (_isOnSwitchMember == true) { |
5409 fbBuilder.addBool(2, true); | 5606 fbBuilder.addBool(2, true); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5699 _isFunctionTyped = isFunctionTyped, | 5896 _isFunctionTyped = isFunctionTyped, |
5700 _isInitializingFormal = isInitializingFormal, | 5897 _isInitializingFormal = isInitializingFormal, |
5701 _kind = kind, | 5898 _kind = kind, |
5702 _name = name, | 5899 _name = name, |
5703 _nameOffset = nameOffset, | 5900 _nameOffset = nameOffset, |
5704 _parameters = parameters, | 5901 _parameters = parameters, |
5705 _type = type, | 5902 _type = type, |
5706 _visibleLength = visibleLength, | 5903 _visibleLength = visibleLength, |
5707 _visibleOffset = visibleOffset; | 5904 _visibleOffset = visibleOffset; |
5708 | 5905 |
| 5906 /** |
| 5907 * Flush [informative] data recursively. |
| 5908 */ |
| 5909 void flushInformative() { |
| 5910 _annotations?.forEach((b) => b.flushInformative()); |
| 5911 _codeRange = null; |
| 5912 _defaultValue?.flushInformative(); |
| 5913 _defaultValueCode = null; |
| 5914 _initializer?.flushInformative(); |
| 5915 _nameOffset = null; |
| 5916 _parameters?.forEach((b) => b.flushInformative()); |
| 5917 _type?.flushInformative(); |
| 5918 } |
| 5919 |
5709 fb.Offset finish(fb.Builder fbBuilder) { | 5920 fb.Offset finish(fb.Builder fbBuilder) { |
5710 assert(!_finished); | 5921 assert(!_finished); |
5711 _finished = true; | 5922 _finished = true; |
5712 fb.Offset offset_annotations; | 5923 fb.Offset offset_annotations; |
5713 fb.Offset offset_codeRange; | 5924 fb.Offset offset_codeRange; |
5714 fb.Offset offset_defaultValue; | 5925 fb.Offset offset_defaultValue; |
5715 fb.Offset offset_defaultValueCode; | 5926 fb.Offset offset_defaultValueCode; |
5716 fb.Offset offset_initializer; | 5927 fb.Offset offset_initializer; |
5717 fb.Offset offset_name; | 5928 fb.Offset offset_name; |
5718 fb.Offset offset_parameters; | 5929 fb.Offset offset_parameters; |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5997 assert(!_finished); | 6208 assert(!_finished); |
5998 assert(_value == null || _value >= 0); | 6209 assert(_value == null || _value >= 0); |
5999 _uriOffset = _value; | 6210 _uriOffset = _value; |
6000 } | 6211 } |
6001 | 6212 |
6002 UnlinkedPartBuilder({List<UnlinkedConstBuilder> annotations, int uriEnd, int u
riOffset}) | 6213 UnlinkedPartBuilder({List<UnlinkedConstBuilder> annotations, int uriEnd, int u
riOffset}) |
6003 : _annotations = annotations, | 6214 : _annotations = annotations, |
6004 _uriEnd = uriEnd, | 6215 _uriEnd = uriEnd, |
6005 _uriOffset = uriOffset; | 6216 _uriOffset = uriOffset; |
6006 | 6217 |
| 6218 /** |
| 6219 * Flush [informative] data recursively. |
| 6220 */ |
| 6221 void flushInformative() { |
| 6222 _annotations?.forEach((b) => b.flushInformative()); |
| 6223 _uriEnd = null; |
| 6224 _uriOffset = null; |
| 6225 } |
| 6226 |
6007 fb.Offset finish(fb.Builder fbBuilder) { | 6227 fb.Offset finish(fb.Builder fbBuilder) { |
6008 assert(!_finished); | 6228 assert(!_finished); |
6009 _finished = true; | 6229 _finished = true; |
6010 fb.Offset offset_annotations; | 6230 fb.Offset offset_annotations; |
6011 if (!(_annotations == null || _annotations.isEmpty)) { | 6231 if (!(_annotations == null || _annotations.isEmpty)) { |
6012 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 6232 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
6013 } | 6233 } |
6014 fbBuilder.startTable(); | 6234 fbBuilder.startTable(); |
6015 if (offset_annotations != null) { | 6235 if (offset_annotations != null) { |
6016 fbBuilder.addOffset(2, offset_annotations); | 6236 fbBuilder.addOffset(2, offset_annotations); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6139 assert(_value == null || _value >= 0); | 6359 assert(_value == null || _value >= 0); |
6140 _numTypeParameters = _value; | 6360 _numTypeParameters = _value; |
6141 } | 6361 } |
6142 | 6362 |
6143 UnlinkedPublicNameBuilder({idl.ReferenceKind kind, List<UnlinkedPublicNameBuil
der> members, String name, int numTypeParameters}) | 6363 UnlinkedPublicNameBuilder({idl.ReferenceKind kind, List<UnlinkedPublicNameBuil
der> members, String name, int numTypeParameters}) |
6144 : _kind = kind, | 6364 : _kind = kind, |
6145 _members = members, | 6365 _members = members, |
6146 _name = name, | 6366 _name = name, |
6147 _numTypeParameters = numTypeParameters; | 6367 _numTypeParameters = numTypeParameters; |
6148 | 6368 |
| 6369 /** |
| 6370 * Flush [informative] data recursively. |
| 6371 */ |
| 6372 void flushInformative() { |
| 6373 _members?.forEach((b) => b.flushInformative()); |
| 6374 } |
| 6375 |
6149 fb.Offset finish(fb.Builder fbBuilder) { | 6376 fb.Offset finish(fb.Builder fbBuilder) { |
6150 assert(!_finished); | 6377 assert(!_finished); |
6151 _finished = true; | 6378 _finished = true; |
6152 fb.Offset offset_members; | 6379 fb.Offset offset_members; |
6153 fb.Offset offset_name; | 6380 fb.Offset offset_name; |
6154 if (!(_members == null || _members.isEmpty)) { | 6381 if (!(_members == null || _members.isEmpty)) { |
6155 offset_members = fbBuilder.writeList(_members.map((b) => b.finish(fbBuilde
r)).toList()); | 6382 offset_members = fbBuilder.writeList(_members.map((b) => b.finish(fbBuilde
r)).toList()); |
6156 } | 6383 } |
6157 if (_name != null) { | 6384 if (_name != null) { |
6158 offset_name = fbBuilder.writeString(_name); | 6385 offset_name = fbBuilder.writeString(_name); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6280 void set parts(List<String> _value) { | 6507 void set parts(List<String> _value) { |
6281 assert(!_finished); | 6508 assert(!_finished); |
6282 _parts = _value; | 6509 _parts = _value; |
6283 } | 6510 } |
6284 | 6511 |
6285 UnlinkedPublicNamespaceBuilder({List<UnlinkedExportPublicBuilder> exports, Lis
t<UnlinkedPublicNameBuilder> names, List<String> parts}) | 6512 UnlinkedPublicNamespaceBuilder({List<UnlinkedExportPublicBuilder> exports, Lis
t<UnlinkedPublicNameBuilder> names, List<String> parts}) |
6286 : _exports = exports, | 6513 : _exports = exports, |
6287 _names = names, | 6514 _names = names, |
6288 _parts = parts; | 6515 _parts = parts; |
6289 | 6516 |
| 6517 /** |
| 6518 * Flush [informative] data recursively. |
| 6519 */ |
| 6520 void flushInformative() { |
| 6521 _exports?.forEach((b) => b.flushInformative()); |
| 6522 _names?.forEach((b) => b.flushInformative()); |
| 6523 } |
| 6524 |
6290 List<int> toBuffer() { | 6525 List<int> toBuffer() { |
6291 fb.Builder fbBuilder = new fb.Builder(); | 6526 fb.Builder fbBuilder = new fb.Builder(); |
6292 return fbBuilder.finish(finish(fbBuilder), "UPNS"); | 6527 return fbBuilder.finish(finish(fbBuilder), "UPNS"); |
6293 } | 6528 } |
6294 | 6529 |
6295 fb.Offset finish(fb.Builder fbBuilder) { | 6530 fb.Offset finish(fb.Builder fbBuilder) { |
6296 assert(!_finished); | 6531 assert(!_finished); |
6297 _finished = true; | 6532 _finished = true; |
6298 fb.Offset offset_exports; | 6533 fb.Offset offset_exports; |
6299 fb.Offset offset_names; | 6534 fb.Offset offset_names; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6415 void set prefixReference(int _value) { | 6650 void set prefixReference(int _value) { |
6416 assert(!_finished); | 6651 assert(!_finished); |
6417 assert(_value == null || _value >= 0); | 6652 assert(_value == null || _value >= 0); |
6418 _prefixReference = _value; | 6653 _prefixReference = _value; |
6419 } | 6654 } |
6420 | 6655 |
6421 UnlinkedReferenceBuilder({String name, int prefixReference}) | 6656 UnlinkedReferenceBuilder({String name, int prefixReference}) |
6422 : _name = name, | 6657 : _name = name, |
6423 _prefixReference = prefixReference; | 6658 _prefixReference = prefixReference; |
6424 | 6659 |
| 6660 /** |
| 6661 * Flush [informative] data recursively. |
| 6662 */ |
| 6663 void flushInformative() { |
| 6664 } |
| 6665 |
6425 fb.Offset finish(fb.Builder fbBuilder) { | 6666 fb.Offset finish(fb.Builder fbBuilder) { |
6426 assert(!_finished); | 6667 assert(!_finished); |
6427 _finished = true; | 6668 _finished = true; |
6428 fb.Offset offset_name; | 6669 fb.Offset offset_name; |
6429 if (_name != null) { | 6670 if (_name != null) { |
6430 offset_name = fbBuilder.writeString(_name); | 6671 offset_name = fbBuilder.writeString(_name); |
6431 } | 6672 } |
6432 fbBuilder.startTable(); | 6673 fbBuilder.startTable(); |
6433 if (offset_name != null) { | 6674 if (offset_name != null) { |
6434 fbBuilder.addOffset(0, offset_name); | 6675 fbBuilder.addOffset(0, offset_name); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6592 UnlinkedTypedefBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String n
ame, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder ret
urnType, List<UnlinkedTypeParamBuilder> typeParameters}) | 6833 UnlinkedTypedefBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String n
ame, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder ret
urnType, List<UnlinkedTypeParamBuilder> typeParameters}) |
6593 : _annotations = annotations, | 6834 : _annotations = annotations, |
6594 _codeRange = codeRange, | 6835 _codeRange = codeRange, |
6595 _documentationComment = documentationComment, | 6836 _documentationComment = documentationComment, |
6596 _name = name, | 6837 _name = name, |
6597 _nameOffset = nameOffset, | 6838 _nameOffset = nameOffset, |
6598 _parameters = parameters, | 6839 _parameters = parameters, |
6599 _returnType = returnType, | 6840 _returnType = returnType, |
6600 _typeParameters = typeParameters; | 6841 _typeParameters = typeParameters; |
6601 | 6842 |
| 6843 /** |
| 6844 * Flush [informative] data recursively. |
| 6845 */ |
| 6846 void flushInformative() { |
| 6847 _annotations?.forEach((b) => b.flushInformative()); |
| 6848 _codeRange = null; |
| 6849 _documentationComment = null; |
| 6850 _nameOffset = null; |
| 6851 _parameters?.forEach((b) => b.flushInformative()); |
| 6852 _returnType?.flushInformative(); |
| 6853 _typeParameters?.forEach((b) => b.flushInformative()); |
| 6854 } |
| 6855 |
6602 fb.Offset finish(fb.Builder fbBuilder) { | 6856 fb.Offset finish(fb.Builder fbBuilder) { |
6603 assert(!_finished); | 6857 assert(!_finished); |
6604 _finished = true; | 6858 _finished = true; |
6605 fb.Offset offset_annotations; | 6859 fb.Offset offset_annotations; |
6606 fb.Offset offset_codeRange; | 6860 fb.Offset offset_codeRange; |
6607 fb.Offset offset_documentationComment; | 6861 fb.Offset offset_documentationComment; |
6608 fb.Offset offset_name; | 6862 fb.Offset offset_name; |
6609 fb.Offset offset_parameters; | 6863 fb.Offset offset_parameters; |
6610 fb.Offset offset_returnType; | 6864 fb.Offset offset_returnType; |
6611 fb.Offset offset_typeParameters; | 6865 fb.Offset offset_typeParameters; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6826 _nameOffset = _value; | 7080 _nameOffset = _value; |
6827 } | 7081 } |
6828 | 7082 |
6829 UnlinkedTypeParamBuilder({List<UnlinkedConstBuilder> annotations, EntityRefBui
lder bound, CodeRangeBuilder codeRange, String name, int nameOffset}) | 7083 UnlinkedTypeParamBuilder({List<UnlinkedConstBuilder> annotations, EntityRefBui
lder bound, CodeRangeBuilder codeRange, String name, int nameOffset}) |
6830 : _annotations = annotations, | 7084 : _annotations = annotations, |
6831 _bound = bound, | 7085 _bound = bound, |
6832 _codeRange = codeRange, | 7086 _codeRange = codeRange, |
6833 _name = name, | 7087 _name = name, |
6834 _nameOffset = nameOffset; | 7088 _nameOffset = nameOffset; |
6835 | 7089 |
| 7090 /** |
| 7091 * Flush [informative] data recursively. |
| 7092 */ |
| 7093 void flushInformative() { |
| 7094 _annotations?.forEach((b) => b.flushInformative()); |
| 7095 _bound?.flushInformative(); |
| 7096 _codeRange = null; |
| 7097 _nameOffset = null; |
| 7098 } |
| 7099 |
6836 fb.Offset finish(fb.Builder fbBuilder) { | 7100 fb.Offset finish(fb.Builder fbBuilder) { |
6837 assert(!_finished); | 7101 assert(!_finished); |
6838 _finished = true; | 7102 _finished = true; |
6839 fb.Offset offset_annotations; | 7103 fb.Offset offset_annotations; |
6840 fb.Offset offset_bound; | 7104 fb.Offset offset_bound; |
6841 fb.Offset offset_codeRange; | 7105 fb.Offset offset_codeRange; |
6842 fb.Offset offset_name; | 7106 fb.Offset offset_name; |
6843 if (!(_annotations == null || _annotations.isEmpty)) { | 7107 if (!(_annotations == null || _annotations.isEmpty)) { |
6844 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 7108 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
6845 } | 7109 } |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7164 _libraryDocumentationComment = libraryDocumentationComment, | 7428 _libraryDocumentationComment = libraryDocumentationComment, |
7165 _libraryName = libraryName, | 7429 _libraryName = libraryName, |
7166 _libraryNameLength = libraryNameLength, | 7430 _libraryNameLength = libraryNameLength, |
7167 _libraryNameOffset = libraryNameOffset, | 7431 _libraryNameOffset = libraryNameOffset, |
7168 _parts = parts, | 7432 _parts = parts, |
7169 _publicNamespace = publicNamespace, | 7433 _publicNamespace = publicNamespace, |
7170 _references = references, | 7434 _references = references, |
7171 _typedefs = typedefs, | 7435 _typedefs = typedefs, |
7172 _variables = variables; | 7436 _variables = variables; |
7173 | 7437 |
| 7438 /** |
| 7439 * Flush [informative] data recursively. |
| 7440 */ |
| 7441 void flushInformative() { |
| 7442 _classes?.forEach((b) => b.flushInformative()); |
| 7443 _codeRange = null; |
| 7444 _enums?.forEach((b) => b.flushInformative()); |
| 7445 _executables?.forEach((b) => b.flushInformative()); |
| 7446 _exports?.forEach((b) => b.flushInformative()); |
| 7447 _imports?.forEach((b) => b.flushInformative()); |
| 7448 _libraryAnnotations?.forEach((b) => b.flushInformative()); |
| 7449 _libraryDocumentationComment = null; |
| 7450 _libraryNameLength = null; |
| 7451 _libraryNameOffset = null; |
| 7452 _parts?.forEach((b) => b.flushInformative()); |
| 7453 _publicNamespace?.flushInformative(); |
| 7454 _references?.forEach((b) => b.flushInformative()); |
| 7455 _typedefs?.forEach((b) => b.flushInformative()); |
| 7456 _variables?.forEach((b) => b.flushInformative()); |
| 7457 } |
| 7458 |
7174 List<int> toBuffer() { | 7459 List<int> toBuffer() { |
7175 fb.Builder fbBuilder = new fb.Builder(); | 7460 fb.Builder fbBuilder = new fb.Builder(); |
7176 return fbBuilder.finish(finish(fbBuilder), "UUnt"); | 7461 return fbBuilder.finish(finish(fbBuilder), "UUnt"); |
7177 } | 7462 } |
7178 | 7463 |
7179 fb.Offset finish(fb.Builder fbBuilder) { | 7464 fb.Offset finish(fb.Builder fbBuilder) { |
7180 assert(!_finished); | 7465 assert(!_finished); |
7181 _finished = true; | 7466 _finished = true; |
7182 fb.Offset offset_classes; | 7467 fb.Offset offset_classes; |
7183 fb.Offset offset_codeRange; | 7468 fb.Offset offset_codeRange; |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7681 _isConst = isConst, | 7966 _isConst = isConst, |
7682 _isFinal = isFinal, | 7967 _isFinal = isFinal, |
7683 _isStatic = isStatic, | 7968 _isStatic = isStatic, |
7684 _name = name, | 7969 _name = name, |
7685 _nameOffset = nameOffset, | 7970 _nameOffset = nameOffset, |
7686 _propagatedTypeSlot = propagatedTypeSlot, | 7971 _propagatedTypeSlot = propagatedTypeSlot, |
7687 _type = type, | 7972 _type = type, |
7688 _visibleLength = visibleLength, | 7973 _visibleLength = visibleLength, |
7689 _visibleOffset = visibleOffset; | 7974 _visibleOffset = visibleOffset; |
7690 | 7975 |
| 7976 /** |
| 7977 * Flush [informative] data recursively. |
| 7978 */ |
| 7979 void flushInformative() { |
| 7980 _annotations?.forEach((b) => b.flushInformative()); |
| 7981 _codeRange = null; |
| 7982 _constExpr?.flushInformative(); |
| 7983 _documentationComment = null; |
| 7984 _initializer?.flushInformative(); |
| 7985 _nameOffset = null; |
| 7986 _type?.flushInformative(); |
| 7987 } |
| 7988 |
7691 fb.Offset finish(fb.Builder fbBuilder) { | 7989 fb.Offset finish(fb.Builder fbBuilder) { |
7692 assert(!_finished); | 7990 assert(!_finished); |
7693 _finished = true; | 7991 _finished = true; |
7694 fb.Offset offset_annotations; | 7992 fb.Offset offset_annotations; |
7695 fb.Offset offset_codeRange; | 7993 fb.Offset offset_codeRange; |
7696 fb.Offset offset_constExpr; | 7994 fb.Offset offset_constExpr; |
7697 fb.Offset offset_documentationComment; | 7995 fb.Offset offset_documentationComment; |
7698 fb.Offset offset_initializer; | 7996 fb.Offset offset_initializer; |
7699 fb.Offset offset_name; | 7997 fb.Offset offset_name; |
7700 fb.Offset offset_type; | 7998 fb.Offset offset_type; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7926 "propagatedTypeSlot": propagatedTypeSlot, | 8224 "propagatedTypeSlot": propagatedTypeSlot, |
7927 "type": type, | 8225 "type": type, |
7928 "visibleLength": visibleLength, | 8226 "visibleLength": visibleLength, |
7929 "visibleOffset": visibleOffset, | 8227 "visibleOffset": visibleOffset, |
7930 }; | 8228 }; |
7931 | 8229 |
7932 @override | 8230 @override |
7933 String toString() => convert.JSON.encode(toJson()); | 8231 String toString() => convert.JSON.encode(toJson()); |
7934 } | 8232 } |
7935 | 8233 |
OLD | NEW |