| 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; |
| 11 import 'idl.dart' as idl; | 11 import 'idl.dart' as idl; |
| 12 import 'dart:convert' as convert; |
| 12 | 13 |
| 13 class _ReferenceKindReader extends fb.Reader<idl.ReferenceKind> { | 14 class _ReferenceKindReader extends fb.Reader<idl.ReferenceKind> { |
| 14 const _ReferenceKindReader() : super(); | 15 const _ReferenceKindReader() : super(); |
| 15 | 16 |
| 16 @override | 17 @override |
| 17 int get size => 1; | 18 int get size => 1; |
| 18 | 19 |
| 19 @override | 20 @override |
| 20 idl.ReferenceKind read(fb.BufferPointer bp) { | 21 idl.ReferenceKind read(fb.BufferPointer bp) { |
| 21 int index = const fb.Uint8Reader().read(bp); | 22 int index = const fb.Uint8Reader().read(bp); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 268 |
| 268 @override | 269 @override |
| 269 List<idl.EntityRef> get typeArguments { | 270 List<idl.EntityRef> get typeArguments { |
| 270 _typeArguments ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader
()).vTableGet(_bp, 1, const <idl.EntityRef>[]); | 271 _typeArguments ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader
()).vTableGet(_bp, 1, const <idl.EntityRef>[]); |
| 271 return _typeArguments; | 272 return _typeArguments; |
| 272 } | 273 } |
| 273 } | 274 } |
| 274 | 275 |
| 275 abstract class _EntityRefMixin implements idl.EntityRef { | 276 abstract class _EntityRefMixin implements idl.EntityRef { |
| 276 @override | 277 @override |
| 278 Map<String, Object> toJson() { |
| 279 Map<String, Object> _result = <String, Object>{}; |
| 280 if (implicitFunctionTypeIndices.isNotEmpty) _result["implicitFunctionTypeInd
ices"] = implicitFunctionTypeIndices; |
| 281 if (paramReference != 0) _result["paramReference"] = paramReference; |
| 282 if (reference != 0) _result["reference"] = reference; |
| 283 if (slot != 0) _result["slot"] = slot; |
| 284 if (typeArguments.isNotEmpty) _result["typeArguments"] = typeArguments.map((
_value) => _value.toJson()).toList(); |
| 285 return _result; |
| 286 } |
| 287 |
| 288 @override |
| 277 Map<String, Object> toMap() => { | 289 Map<String, Object> toMap() => { |
| 278 "implicitFunctionTypeIndices": implicitFunctionTypeIndices, | 290 "implicitFunctionTypeIndices": implicitFunctionTypeIndices, |
| 279 "paramReference": paramReference, | 291 "paramReference": paramReference, |
| 280 "reference": reference, | 292 "reference": reference, |
| 281 "slot": slot, | 293 "slot": slot, |
| 282 "typeArguments": typeArguments, | 294 "typeArguments": typeArguments, |
| 283 }; | 295 }; |
| 296 |
| 297 @override |
| 298 String toString() => convert.JSON.encode(toJson()); |
| 284 } | 299 } |
| 285 | 300 |
| 286 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
nts idl.LinkedDependency { | 301 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
nts idl.LinkedDependency { |
| 287 bool _finished = false; | 302 bool _finished = false; |
| 288 | 303 |
| 289 List<String> _parts; | 304 List<String> _parts; |
| 290 String _uri; | 305 String _uri; |
| 291 | 306 |
| 292 @override | 307 @override |
| 293 List<String> get parts => _parts ??= <String>[]; | 308 List<String> get parts => _parts ??= <String>[]; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 380 |
| 366 @override | 381 @override |
| 367 String get uri { | 382 String get uri { |
| 368 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 383 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 369 return _uri; | 384 return _uri; |
| 370 } | 385 } |
| 371 } | 386 } |
| 372 | 387 |
| 373 abstract class _LinkedDependencyMixin implements idl.LinkedDependency { | 388 abstract class _LinkedDependencyMixin implements idl.LinkedDependency { |
| 374 @override | 389 @override |
| 390 Map<String, Object> toJson() { |
| 391 Map<String, Object> _result = <String, Object>{}; |
| 392 if (parts.isNotEmpty) _result["parts"] = parts; |
| 393 if (uri != '') _result["uri"] = uri; |
| 394 return _result; |
| 395 } |
| 396 |
| 397 @override |
| 375 Map<String, Object> toMap() => { | 398 Map<String, Object> toMap() => { |
| 376 "parts": parts, | 399 "parts": parts, |
| 377 "uri": uri, | 400 "uri": uri, |
| 378 }; | 401 }; |
| 402 |
| 403 @override |
| 404 String toString() => convert.JSON.encode(toJson()); |
| 379 } | 405 } |
| 380 | 406 |
| 381 class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
nts idl.LinkedExportName { | 407 class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
nts idl.LinkedExportName { |
| 382 bool _finished = false; | 408 bool _finished = false; |
| 383 | 409 |
| 384 int _dependency; | 410 int _dependency; |
| 385 idl.ReferenceKind _kind; | 411 idl.ReferenceKind _kind; |
| 386 String _name; | 412 String _name; |
| 387 int _unit; | 413 int _unit; |
| 388 | 414 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 530 |
| 505 @override | 531 @override |
| 506 int get unit { | 532 int get unit { |
| 507 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 533 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 508 return _unit; | 534 return _unit; |
| 509 } | 535 } |
| 510 } | 536 } |
| 511 | 537 |
| 512 abstract class _LinkedExportNameMixin implements idl.LinkedExportName { | 538 abstract class _LinkedExportNameMixin implements idl.LinkedExportName { |
| 513 @override | 539 @override |
| 540 Map<String, Object> toJson() { |
| 541 Map<String, Object> _result = <String, Object>{}; |
| 542 if (dependency != 0) _result["dependency"] = dependency; |
| 543 if (kind != idl.ReferenceKind.classOrEnum) _result["kind"] = kind.toString()
.split('.')[1]; |
| 544 if (name != '') _result["name"] = name; |
| 545 if (unit != 0) _result["unit"] = unit; |
| 546 return _result; |
| 547 } |
| 548 |
| 549 @override |
| 514 Map<String, Object> toMap() => { | 550 Map<String, Object> toMap() => { |
| 515 "dependency": dependency, | 551 "dependency": dependency, |
| 516 "kind": kind, | 552 "kind": kind, |
| 517 "name": name, | 553 "name": name, |
| 518 "unit": unit, | 554 "unit": unit, |
| 519 }; | 555 }; |
| 556 |
| 557 @override |
| 558 String toString() => convert.JSON.encode(toJson()); |
| 520 } | 559 } |
| 521 | 560 |
| 522 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements id
l.LinkedLibrary { | 561 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements id
l.LinkedLibrary { |
| 523 bool _finished = false; | 562 bool _finished = false; |
| 524 | 563 |
| 525 List<LinkedDependencyBuilder> _dependencies; | 564 List<LinkedDependencyBuilder> _dependencies; |
| 526 List<LinkedExportNameBuilder> _exportNames; | 565 List<LinkedExportNameBuilder> _exportNames; |
| 527 List<int> _importDependencies; | 566 List<int> _importDependencies; |
| 528 int _numPrelinkedDependencies; | 567 int _numPrelinkedDependencies; |
| 529 List<LinkedUnitBuilder> _units; | 568 List<LinkedUnitBuilder> _units; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 | 747 |
| 709 @override | 748 @override |
| 710 List<idl.LinkedUnit> get units { | 749 List<idl.LinkedUnit> get units { |
| 711 _units ??= const fb.ListReader<idl.LinkedUnit>(const _LinkedUnitReader()).vT
ableGet(_bp, 3, const <idl.LinkedUnit>[]); | 750 _units ??= const fb.ListReader<idl.LinkedUnit>(const _LinkedUnitReader()).vT
ableGet(_bp, 3, const <idl.LinkedUnit>[]); |
| 712 return _units; | 751 return _units; |
| 713 } | 752 } |
| 714 } | 753 } |
| 715 | 754 |
| 716 abstract class _LinkedLibraryMixin implements idl.LinkedLibrary { | 755 abstract class _LinkedLibraryMixin implements idl.LinkedLibrary { |
| 717 @override | 756 @override |
| 757 Map<String, Object> toJson() { |
| 758 Map<String, Object> _result = <String, Object>{}; |
| 759 if (dependencies.isNotEmpty) _result["dependencies"] = dependencies.map((_va
lue) => _value.toJson()).toList(); |
| 760 if (exportNames.isNotEmpty) _result["exportNames"] = exportNames.map((_value
) => _value.toJson()).toList(); |
| 761 if (importDependencies.isNotEmpty) _result["importDependencies"] = importDep
endencies; |
| 762 if (numPrelinkedDependencies != 0) _result["numPrelinkedDependencies"] = num
PrelinkedDependencies; |
| 763 if (units.isNotEmpty) _result["units"] = units.map((_value) => _value.toJson
()).toList(); |
| 764 return _result; |
| 765 } |
| 766 |
| 767 @override |
| 718 Map<String, Object> toMap() => { | 768 Map<String, Object> toMap() => { |
| 719 "dependencies": dependencies, | 769 "dependencies": dependencies, |
| 720 "exportNames": exportNames, | 770 "exportNames": exportNames, |
| 721 "importDependencies": importDependencies, | 771 "importDependencies": importDependencies, |
| 722 "numPrelinkedDependencies": numPrelinkedDependencies, | 772 "numPrelinkedDependencies": numPrelinkedDependencies, |
| 723 "units": units, | 773 "units": units, |
| 724 }; | 774 }; |
| 775 |
| 776 @override |
| 777 String toString() => convert.JSON.encode(toJson()); |
| 725 } | 778 } |
| 726 | 779 |
| 727 class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
s idl.LinkedReference { | 780 class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
s idl.LinkedReference { |
| 728 bool _finished = false; | 781 bool _finished = false; |
| 729 | 782 |
| 730 int _containingReference; | 783 int _containingReference; |
| 731 int _dependency; | 784 int _dependency; |
| 732 idl.ReferenceKind _kind; | 785 idl.ReferenceKind _kind; |
| 733 int _localIndex; | 786 int _localIndex; |
| 734 String _name; | 787 String _name; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 | 996 |
| 944 @override | 997 @override |
| 945 int get unit { | 998 int get unit { |
| 946 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); | 999 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); |
| 947 return _unit; | 1000 return _unit; |
| 948 } | 1001 } |
| 949 } | 1002 } |
| 950 | 1003 |
| 951 abstract class _LinkedReferenceMixin implements idl.LinkedReference { | 1004 abstract class _LinkedReferenceMixin implements idl.LinkedReference { |
| 952 @override | 1005 @override |
| 1006 Map<String, Object> toJson() { |
| 1007 Map<String, Object> _result = <String, Object>{}; |
| 1008 if (containingReference != 0) _result["containingReference"] = containingRef
erence; |
| 1009 if (dependency != 0) _result["dependency"] = dependency; |
| 1010 if (kind != idl.ReferenceKind.classOrEnum) _result["kind"] = kind.toString()
.split('.')[1]; |
| 1011 if (localIndex != 0) _result["localIndex"] = localIndex; |
| 1012 if (name != '') _result["name"] = name; |
| 1013 if (numTypeParameters != 0) _result["numTypeParameters"] = numTypeParameters
; |
| 1014 if (unit != 0) _result["unit"] = unit; |
| 1015 return _result; |
| 1016 } |
| 1017 |
| 1018 @override |
| 953 Map<String, Object> toMap() => { | 1019 Map<String, Object> toMap() => { |
| 954 "containingReference": containingReference, | 1020 "containingReference": containingReference, |
| 955 "dependency": dependency, | 1021 "dependency": dependency, |
| 956 "kind": kind, | 1022 "kind": kind, |
| 957 "localIndex": localIndex, | 1023 "localIndex": localIndex, |
| 958 "name": name, | 1024 "name": name, |
| 959 "numTypeParameters": numTypeParameters, | 1025 "numTypeParameters": numTypeParameters, |
| 960 "unit": unit, | 1026 "unit": unit, |
| 961 }; | 1027 }; |
| 1028 |
| 1029 @override |
| 1030 String toString() => convert.JSON.encode(toJson()); |
| 962 } | 1031 } |
| 963 | 1032 |
| 964 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements idl.Link
edUnit { | 1033 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements idl.Link
edUnit { |
| 965 bool _finished = false; | 1034 bool _finished = false; |
| 966 | 1035 |
| 967 List<LinkedReferenceBuilder> _references; | 1036 List<LinkedReferenceBuilder> _references; |
| 968 List<EntityRefBuilder> _types; | 1037 List<EntityRefBuilder> _types; |
| 969 | 1038 |
| 970 @override | 1039 @override |
| 971 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; | 1040 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 | 1113 |
| 1045 @override | 1114 @override |
| 1046 List<idl.EntityRef> get types { | 1115 List<idl.EntityRef> get types { |
| 1047 _types ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTab
leGet(_bp, 1, const <idl.EntityRef>[]); | 1116 _types ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTab
leGet(_bp, 1, const <idl.EntityRef>[]); |
| 1048 return _types; | 1117 return _types; |
| 1049 } | 1118 } |
| 1050 } | 1119 } |
| 1051 | 1120 |
| 1052 abstract class _LinkedUnitMixin implements idl.LinkedUnit { | 1121 abstract class _LinkedUnitMixin implements idl.LinkedUnit { |
| 1053 @override | 1122 @override |
| 1123 Map<String, Object> toJson() { |
| 1124 Map<String, Object> _result = <String, Object>{}; |
| 1125 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
| 1126 if (types.isNotEmpty) _result["types"] = types.map((_value) => _value.toJson
()).toList(); |
| 1127 return _result; |
| 1128 } |
| 1129 |
| 1130 @override |
| 1054 Map<String, Object> toMap() => { | 1131 Map<String, Object> toMap() => { |
| 1055 "references": references, | 1132 "references": references, |
| 1056 "types": types, | 1133 "types": types, |
| 1057 }; | 1134 }; |
| 1135 |
| 1136 @override |
| 1137 String toString() => convert.JSON.encode(toJson()); |
| 1058 } | 1138 } |
| 1059 | 1139 |
| 1060 class SdkBundleBuilder extends Object with _SdkBundleMixin implements idl.SdkBun
dle { | 1140 class SdkBundleBuilder extends Object with _SdkBundleMixin implements idl.SdkBun
dle { |
| 1061 bool _finished = false; | 1141 bool _finished = false; |
| 1062 | 1142 |
| 1063 List<LinkedLibraryBuilder> _linkedLibraries; | 1143 List<LinkedLibraryBuilder> _linkedLibraries; |
| 1064 List<String> _linkedLibraryUris; | 1144 List<String> _linkedLibraryUris; |
| 1065 List<UnlinkedUnitBuilder> _unlinkedUnits; | 1145 List<UnlinkedUnitBuilder> _unlinkedUnits; |
| 1066 List<String> _unlinkedUnitUris; | 1146 List<String> _unlinkedUnitUris; |
| 1067 | 1147 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 | 1278 |
| 1199 @override | 1279 @override |
| 1200 List<String> get unlinkedUnitUris { | 1280 List<String> get unlinkedUnitUris { |
| 1201 _unlinkedUnitUris ??= const fb.ListReader<String>(const fb.StringReader()).v
TableGet(_bp, 3, const <String>[]); | 1281 _unlinkedUnitUris ??= const fb.ListReader<String>(const fb.StringReader()).v
TableGet(_bp, 3, const <String>[]); |
| 1202 return _unlinkedUnitUris; | 1282 return _unlinkedUnitUris; |
| 1203 } | 1283 } |
| 1204 } | 1284 } |
| 1205 | 1285 |
| 1206 abstract class _SdkBundleMixin implements idl.SdkBundle { | 1286 abstract class _SdkBundleMixin implements idl.SdkBundle { |
| 1207 @override | 1287 @override |
| 1288 Map<String, Object> toJson() { |
| 1289 Map<String, Object> _result = <String, Object>{}; |
| 1290 if (linkedLibraries.isNotEmpty) _result["linkedLibraries"] = linkedLibraries
.map((_value) => _value.toJson()).toList(); |
| 1291 if (linkedLibraryUris.isNotEmpty) _result["linkedLibraryUris"] = linkedLibra
ryUris; |
| 1292 if (unlinkedUnits.isNotEmpty) _result["unlinkedUnits"] = unlinkedUnits.map((
_value) => _value.toJson()).toList(); |
| 1293 if (unlinkedUnitUris.isNotEmpty) _result["unlinkedUnitUris"] = unlinkedUnitU
ris; |
| 1294 return _result; |
| 1295 } |
| 1296 |
| 1297 @override |
| 1208 Map<String, Object> toMap() => { | 1298 Map<String, Object> toMap() => { |
| 1209 "linkedLibraries": linkedLibraries, | 1299 "linkedLibraries": linkedLibraries, |
| 1210 "linkedLibraryUris": linkedLibraryUris, | 1300 "linkedLibraryUris": linkedLibraryUris, |
| 1211 "unlinkedUnits": unlinkedUnits, | 1301 "unlinkedUnits": unlinkedUnits, |
| 1212 "unlinkedUnitUris": unlinkedUnitUris, | 1302 "unlinkedUnitUris": unlinkedUnitUris, |
| 1213 }; | 1303 }; |
| 1304 |
| 1305 @override |
| 1306 String toString() => convert.JSON.encode(toJson()); |
| 1214 } | 1307 } |
| 1215 | 1308 |
| 1216 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 1309 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
| 1217 bool _finished = false; | 1310 bool _finished = false; |
| 1218 | 1311 |
| 1219 List<UnlinkedConstBuilder> _annotations; | 1312 List<UnlinkedConstBuilder> _annotations; |
| 1220 UnlinkedDocumentationCommentBuilder _documentationComment; | 1313 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 1221 List<UnlinkedExecutableBuilder> _executables; | 1314 List<UnlinkedExecutableBuilder> _executables; |
| 1222 List<UnlinkedVariableBuilder> _fields; | 1315 List<UnlinkedVariableBuilder> _fields; |
| 1223 bool _hasNoSupertype; | 1316 bool _hasNoSupertype; |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 | 1669 |
| 1577 @override | 1670 @override |
| 1578 List<idl.UnlinkedTypeParam> get typeParameters { | 1671 List<idl.UnlinkedTypeParam> get typeParameters { |
| 1579 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 9, const <idl.UnlinkedTypeParam>[]); | 1672 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 9, const <idl.UnlinkedTypeParam>[]); |
| 1580 return _typeParameters; | 1673 return _typeParameters; |
| 1581 } | 1674 } |
| 1582 } | 1675 } |
| 1583 | 1676 |
| 1584 abstract class _UnlinkedClassMixin implements idl.UnlinkedClass { | 1677 abstract class _UnlinkedClassMixin implements idl.UnlinkedClass { |
| 1585 @override | 1678 @override |
| 1679 Map<String, Object> toJson() { |
| 1680 Map<String, Object> _result = <String, Object>{}; |
| 1681 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 1682 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 1683 if (executables.isNotEmpty) _result["executables"] = executables.map((_value
) => _value.toJson()).toList(); |
| 1684 if (fields.isNotEmpty) _result["fields"] = fields.map((_value) => _value.toJ
son()).toList(); |
| 1685 if (hasNoSupertype != false) _result["hasNoSupertype"] = hasNoSupertype; |
| 1686 if (interfaces.isNotEmpty) _result["interfaces"] = interfaces.map((_value) =
> _value.toJson()).toList(); |
| 1687 if (isAbstract != false) _result["isAbstract"] = isAbstract; |
| 1688 if (isMixinApplication != false) _result["isMixinApplication"] = isMixinAppl
ication; |
| 1689 if (mixins.isNotEmpty) _result["mixins"] = mixins.map((_value) => _value.toJ
son()).toList(); |
| 1690 if (name != '') _result["name"] = name; |
| 1691 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 1692 if (supertype != null) _result["supertype"] = supertype.toJson(); |
| 1693 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 1694 return _result; |
| 1695 } |
| 1696 |
| 1697 @override |
| 1586 Map<String, Object> toMap() => { | 1698 Map<String, Object> toMap() => { |
| 1587 "annotations": annotations, | 1699 "annotations": annotations, |
| 1588 "documentationComment": documentationComment, | 1700 "documentationComment": documentationComment, |
| 1589 "executables": executables, | 1701 "executables": executables, |
| 1590 "fields": fields, | 1702 "fields": fields, |
| 1591 "hasNoSupertype": hasNoSupertype, | 1703 "hasNoSupertype": hasNoSupertype, |
| 1592 "interfaces": interfaces, | 1704 "interfaces": interfaces, |
| 1593 "isAbstract": isAbstract, | 1705 "isAbstract": isAbstract, |
| 1594 "isMixinApplication": isMixinApplication, | 1706 "isMixinApplication": isMixinApplication, |
| 1595 "mixins": mixins, | 1707 "mixins": mixins, |
| 1596 "name": name, | 1708 "name": name, |
| 1597 "nameOffset": nameOffset, | 1709 "nameOffset": nameOffset, |
| 1598 "supertype": supertype, | 1710 "supertype": supertype, |
| 1599 "typeParameters": typeParameters, | 1711 "typeParameters": typeParameters, |
| 1600 }; | 1712 }; |
| 1713 |
| 1714 @override |
| 1715 String toString() => convert.JSON.encode(toJson()); |
| 1601 } | 1716 } |
| 1602 | 1717 |
| 1603 class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
lements idl.UnlinkedCombinator { | 1718 class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
lements idl.UnlinkedCombinator { |
| 1604 bool _finished = false; | 1719 bool _finished = false; |
| 1605 | 1720 |
| 1606 List<String> _hides; | 1721 List<String> _hides; |
| 1607 List<String> _shows; | 1722 List<String> _shows; |
| 1608 | 1723 |
| 1609 @override | 1724 @override |
| 1610 List<String> get hides => _hides ??= <String>[]; | 1725 List<String> get hides => _hides ??= <String>[]; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 | 1792 |
| 1678 @override | 1793 @override |
| 1679 List<String> get shows { | 1794 List<String> get shows { |
| 1680 _shows ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 0, const <String>[]); | 1795 _shows ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 0, const <String>[]); |
| 1681 return _shows; | 1796 return _shows; |
| 1682 } | 1797 } |
| 1683 } | 1798 } |
| 1684 | 1799 |
| 1685 abstract class _UnlinkedCombinatorMixin implements idl.UnlinkedCombinator { | 1800 abstract class _UnlinkedCombinatorMixin implements idl.UnlinkedCombinator { |
| 1686 @override | 1801 @override |
| 1802 Map<String, Object> toJson() { |
| 1803 Map<String, Object> _result = <String, Object>{}; |
| 1804 if (hides.isNotEmpty) _result["hides"] = hides; |
| 1805 if (shows.isNotEmpty) _result["shows"] = shows; |
| 1806 return _result; |
| 1807 } |
| 1808 |
| 1809 @override |
| 1687 Map<String, Object> toMap() => { | 1810 Map<String, Object> toMap() => { |
| 1688 "hides": hides, | 1811 "hides": hides, |
| 1689 "shows": shows, | 1812 "shows": shows, |
| 1690 }; | 1813 }; |
| 1814 |
| 1815 @override |
| 1816 String toString() => convert.JSON.encode(toJson()); |
| 1691 } | 1817 } |
| 1692 | 1818 |
| 1693 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { | 1819 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { |
| 1694 bool _finished = false; | 1820 bool _finished = false; |
| 1695 | 1821 |
| 1696 List<double> _doubles; | 1822 List<double> _doubles; |
| 1697 List<int> _ints; | 1823 List<int> _ints; |
| 1698 bool _isInvalid; | 1824 bool _isInvalid; |
| 1699 List<idl.UnlinkedConstOperation> _operations; | 1825 List<idl.UnlinkedConstOperation> _operations; |
| 1700 List<EntityRefBuilder> _references; | 1826 List<EntityRefBuilder> _references; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 | 2006 |
| 1881 @override | 2007 @override |
| 1882 List<String> get strings { | 2008 List<String> get strings { |
| 1883 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bp, 3, const <String>[]); | 2009 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bp, 3, const <String>[]); |
| 1884 return _strings; | 2010 return _strings; |
| 1885 } | 2011 } |
| 1886 } | 2012 } |
| 1887 | 2013 |
| 1888 abstract class _UnlinkedConstMixin implements idl.UnlinkedConst { | 2014 abstract class _UnlinkedConstMixin implements idl.UnlinkedConst { |
| 1889 @override | 2015 @override |
| 2016 Map<String, Object> toJson() { |
| 2017 Map<String, Object> _result = <String, Object>{}; |
| 2018 if (doubles.isNotEmpty) _result["doubles"] = doubles.map((_value) => _value.
isFinite ? _value : _value.toString()).toList(); |
| 2019 if (ints.isNotEmpty) _result["ints"] = ints; |
| 2020 if (isInvalid != false) _result["isInvalid"] = isInvalid; |
| 2021 if (operations.isNotEmpty) _result["operations"] = operations.map((_value) =
> _value.toString().split('.')[1]).toList(); |
| 2022 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
| 2023 if (strings.isNotEmpty) _result["strings"] = strings; |
| 2024 return _result; |
| 2025 } |
| 2026 |
| 2027 @override |
| 1890 Map<String, Object> toMap() => { | 2028 Map<String, Object> toMap() => { |
| 1891 "doubles": doubles, | 2029 "doubles": doubles, |
| 1892 "ints": ints, | 2030 "ints": ints, |
| 1893 "isInvalid": isInvalid, | 2031 "isInvalid": isInvalid, |
| 1894 "operations": operations, | 2032 "operations": operations, |
| 1895 "references": references, | 2033 "references": references, |
| 1896 "strings": strings, | 2034 "strings": strings, |
| 1897 }; | 2035 }; |
| 2036 |
| 2037 @override |
| 2038 String toString() => convert.JSON.encode(toJson()); |
| 1898 } | 2039 } |
| 1899 | 2040 |
| 1900 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { | 2041 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { |
| 1901 bool _finished = false; | 2042 bool _finished = false; |
| 1902 | 2043 |
| 1903 List<UnlinkedConstBuilder> _arguments; | 2044 List<UnlinkedConstBuilder> _arguments; |
| 1904 UnlinkedConstBuilder _expression; | 2045 UnlinkedConstBuilder _expression; |
| 1905 idl.UnlinkedConstructorInitializerKind _kind; | 2046 idl.UnlinkedConstructorInitializerKind _kind; |
| 1906 String _name; | 2047 String _name; |
| 1907 | 2048 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2029 | 2170 |
| 2030 @override | 2171 @override |
| 2031 String get name { | 2172 String get name { |
| 2032 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 2173 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 2033 return _name; | 2174 return _name; |
| 2034 } | 2175 } |
| 2035 } | 2176 } |
| 2036 | 2177 |
| 2037 abstract class _UnlinkedConstructorInitializerMixin implements idl.UnlinkedConst
ructorInitializer { | 2178 abstract class _UnlinkedConstructorInitializerMixin implements idl.UnlinkedConst
ructorInitializer { |
| 2038 @override | 2179 @override |
| 2180 Map<String, Object> toJson() { |
| 2181 Map<String, Object> _result = <String, Object>{}; |
| 2182 if (arguments.isNotEmpty) _result["arguments"] = arguments.map((_value) => _
value.toJson()).toList(); |
| 2183 if (expression != null) _result["expression"] = expression.toJson(); |
| 2184 if (kind != idl.UnlinkedConstructorInitializerKind.field) _result["kind"] =
kind.toString().split('.')[1]; |
| 2185 if (name != '') _result["name"] = name; |
| 2186 return _result; |
| 2187 } |
| 2188 |
| 2189 @override |
| 2039 Map<String, Object> toMap() => { | 2190 Map<String, Object> toMap() => { |
| 2040 "arguments": arguments, | 2191 "arguments": arguments, |
| 2041 "expression": expression, | 2192 "expression": expression, |
| 2042 "kind": kind, | 2193 "kind": kind, |
| 2043 "name": name, | 2194 "name": name, |
| 2044 }; | 2195 }; |
| 2196 |
| 2197 @override |
| 2198 String toString() => convert.JSON.encode(toJson()); |
| 2045 } | 2199 } |
| 2046 | 2200 |
| 2047 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { | 2201 class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
tionCommentMixin implements idl.UnlinkedDocumentationComment { |
| 2048 bool _finished = false; | 2202 bool _finished = false; |
| 2049 | 2203 |
| 2050 int _length; | 2204 int _length; |
| 2051 int _offset; | 2205 int _offset; |
| 2052 String _text; | 2206 String _text; |
| 2053 | 2207 |
| 2054 @override | 2208 @override |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2146 | 2300 |
| 2147 @override | 2301 @override |
| 2148 String get text { | 2302 String get text { |
| 2149 _text ??= const fb.StringReader().vTableGet(_bp, 1, ''); | 2303 _text ??= const fb.StringReader().vTableGet(_bp, 1, ''); |
| 2150 return _text; | 2304 return _text; |
| 2151 } | 2305 } |
| 2152 } | 2306 } |
| 2153 | 2307 |
| 2154 abstract class _UnlinkedDocumentationCommentMixin implements idl.UnlinkedDocumen
tationComment { | 2308 abstract class _UnlinkedDocumentationCommentMixin implements idl.UnlinkedDocumen
tationComment { |
| 2155 @override | 2309 @override |
| 2310 Map<String, Object> toJson() { |
| 2311 Map<String, Object> _result = <String, Object>{}; |
| 2312 if (length != 0) _result["length"] = length; |
| 2313 if (offset != 0) _result["offset"] = offset; |
| 2314 if (text != '') _result["text"] = text; |
| 2315 return _result; |
| 2316 } |
| 2317 |
| 2318 @override |
| 2156 Map<String, Object> toMap() => { | 2319 Map<String, Object> toMap() => { |
| 2157 "length": length, | 2320 "length": length, |
| 2158 "offset": offset, | 2321 "offset": offset, |
| 2159 "text": text, | 2322 "text": text, |
| 2160 }; | 2323 }; |
| 2324 |
| 2325 @override |
| 2326 String toString() => convert.JSON.encode(toJson()); |
| 2161 } | 2327 } |
| 2162 | 2328 |
| 2163 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { | 2329 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { |
| 2164 bool _finished = false; | 2330 bool _finished = false; |
| 2165 | 2331 |
| 2166 List<UnlinkedConstBuilder> _annotations; | 2332 List<UnlinkedConstBuilder> _annotations; |
| 2167 UnlinkedDocumentationCommentBuilder _documentationComment; | 2333 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 2168 String _name; | 2334 String _name; |
| 2169 int _nameOffset; | 2335 int _nameOffset; |
| 2170 List<UnlinkedEnumValueBuilder> _values; | 2336 List<UnlinkedEnumValueBuilder> _values; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2316 | 2482 |
| 2317 @override | 2483 @override |
| 2318 List<idl.UnlinkedEnumValue> get values { | 2484 List<idl.UnlinkedEnumValue> get values { |
| 2319 _values ??= const fb.ListReader<idl.UnlinkedEnumValue>(const _UnlinkedEnumVa
lueReader()).vTableGet(_bp, 2, const <idl.UnlinkedEnumValue>[]); | 2485 _values ??= const fb.ListReader<idl.UnlinkedEnumValue>(const _UnlinkedEnumVa
lueReader()).vTableGet(_bp, 2, const <idl.UnlinkedEnumValue>[]); |
| 2320 return _values; | 2486 return _values; |
| 2321 } | 2487 } |
| 2322 } | 2488 } |
| 2323 | 2489 |
| 2324 abstract class _UnlinkedEnumMixin implements idl.UnlinkedEnum { | 2490 abstract class _UnlinkedEnumMixin implements idl.UnlinkedEnum { |
| 2325 @override | 2491 @override |
| 2492 Map<String, Object> toJson() { |
| 2493 Map<String, Object> _result = <String, Object>{}; |
| 2494 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 2495 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 2496 if (name != '') _result["name"] = name; |
| 2497 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 2498 if (values.isNotEmpty) _result["values"] = values.map((_value) => _value.toJ
son()).toList(); |
| 2499 return _result; |
| 2500 } |
| 2501 |
| 2502 @override |
| 2326 Map<String, Object> toMap() => { | 2503 Map<String, Object> toMap() => { |
| 2327 "annotations": annotations, | 2504 "annotations": annotations, |
| 2328 "documentationComment": documentationComment, | 2505 "documentationComment": documentationComment, |
| 2329 "name": name, | 2506 "name": name, |
| 2330 "nameOffset": nameOffset, | 2507 "nameOffset": nameOffset, |
| 2331 "values": values, | 2508 "values": values, |
| 2332 }; | 2509 }; |
| 2510 |
| 2511 @override |
| 2512 String toString() => convert.JSON.encode(toJson()); |
| 2333 } | 2513 } |
| 2334 | 2514 |
| 2335 class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
ments idl.UnlinkedEnumValue { | 2515 class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
ments idl.UnlinkedEnumValue { |
| 2336 bool _finished = false; | 2516 bool _finished = false; |
| 2337 | 2517 |
| 2338 UnlinkedDocumentationCommentBuilder _documentationComment; | 2518 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 2339 String _name; | 2519 String _name; |
| 2340 int _nameOffset; | 2520 int _nameOffset; |
| 2341 | 2521 |
| 2342 @override | 2522 @override |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2434 | 2614 |
| 2435 @override | 2615 @override |
| 2436 int get nameOffset { | 2616 int get nameOffset { |
| 2437 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 2617 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 2438 return _nameOffset; | 2618 return _nameOffset; |
| 2439 } | 2619 } |
| 2440 } | 2620 } |
| 2441 | 2621 |
| 2442 abstract class _UnlinkedEnumValueMixin implements idl.UnlinkedEnumValue { | 2622 abstract class _UnlinkedEnumValueMixin implements idl.UnlinkedEnumValue { |
| 2443 @override | 2623 @override |
| 2624 Map<String, Object> toJson() { |
| 2625 Map<String, Object> _result = <String, Object>{}; |
| 2626 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 2627 if (name != '') _result["name"] = name; |
| 2628 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 2629 return _result; |
| 2630 } |
| 2631 |
| 2632 @override |
| 2444 Map<String, Object> toMap() => { | 2633 Map<String, Object> toMap() => { |
| 2445 "documentationComment": documentationComment, | 2634 "documentationComment": documentationComment, |
| 2446 "name": name, | 2635 "name": name, |
| 2447 "nameOffset": nameOffset, | 2636 "nameOffset": nameOffset, |
| 2448 }; | 2637 }; |
| 2638 |
| 2639 @override |
| 2640 String toString() => convert.JSON.encode(toJson()); |
| 2449 } | 2641 } |
| 2450 | 2642 |
| 2451 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { | 2643 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { |
| 2452 bool _finished = false; | 2644 bool _finished = false; |
| 2453 | 2645 |
| 2454 List<UnlinkedConstBuilder> _annotations; | 2646 List<UnlinkedConstBuilder> _annotations; |
| 2455 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; | 2647 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; |
| 2456 UnlinkedDocumentationCommentBuilder _documentationComment; | 2648 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 2457 int _inferredReturnTypeSlot; | 2649 int _inferredReturnTypeSlot; |
| 2458 bool _isAbstract; | 2650 bool _isAbstract; |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 | 3270 |
| 3079 @override | 3271 @override |
| 3080 int get visibleOffset { | 3272 int get visibleOffset { |
| 3081 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 21, 0); | 3273 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 21, 0); |
| 3082 return _visibleOffset; | 3274 return _visibleOffset; |
| 3083 } | 3275 } |
| 3084 } | 3276 } |
| 3085 | 3277 |
| 3086 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { | 3278 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { |
| 3087 @override | 3279 @override |
| 3280 Map<String, Object> toJson() { |
| 3281 Map<String, Object> _result = <String, Object>{}; |
| 3282 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 3283 if (constantInitializers.isNotEmpty) _result["constantInitializers"] = const
antInitializers.map((_value) => _value.toJson()).toList(); |
| 3284 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 3285 if (inferredReturnTypeSlot != 0) _result["inferredReturnTypeSlot"] = inferre
dReturnTypeSlot; |
| 3286 if (isAbstract != false) _result["isAbstract"] = isAbstract; |
| 3287 if (isConst != false) _result["isConst"] = isConst; |
| 3288 if (isExternal != false) _result["isExternal"] = isExternal; |
| 3289 if (isFactory != false) _result["isFactory"] = isFactory; |
| 3290 if (isRedirectedConstructor != false) _result["isRedirectedConstructor"] = i
sRedirectedConstructor; |
| 3291 if (isStatic != false) _result["isStatic"] = isStatic; |
| 3292 if (kind != idl.UnlinkedExecutableKind.functionOrMethod) _result["kind"] = k
ind.toString().split('.')[1]; |
| 3293 if (localFunctions.isNotEmpty) _result["localFunctions"] = localFunctions.ma
p((_value) => _value.toJson()).toList(); |
| 3294 if (localLabels.isNotEmpty) _result["localLabels"] = localLabels.map((_value
) => _value.toJson()).toList(); |
| 3295 if (localVariables.isNotEmpty) _result["localVariables"] = localVariables.ma
p((_value) => _value.toJson()).toList(); |
| 3296 if (name != '') _result["name"] = name; |
| 3297 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 3298 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 3299 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); |
| 3300 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; |
| 3301 if (returnType != null) _result["returnType"] = returnType.toJson(); |
| 3302 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 3303 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 3304 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 3305 return _result; |
| 3306 } |
| 3307 |
| 3308 @override |
| 3088 Map<String, Object> toMap() => { | 3309 Map<String, Object> toMap() => { |
| 3089 "annotations": annotations, | 3310 "annotations": annotations, |
| 3090 "constantInitializers": constantInitializers, | 3311 "constantInitializers": constantInitializers, |
| 3091 "documentationComment": documentationComment, | 3312 "documentationComment": documentationComment, |
| 3092 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 3313 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 3093 "isAbstract": isAbstract, | 3314 "isAbstract": isAbstract, |
| 3094 "isConst": isConst, | 3315 "isConst": isConst, |
| 3095 "isExternal": isExternal, | 3316 "isExternal": isExternal, |
| 3096 "isFactory": isFactory, | 3317 "isFactory": isFactory, |
| 3097 "isRedirectedConstructor": isRedirectedConstructor, | 3318 "isRedirectedConstructor": isRedirectedConstructor, |
| 3098 "isStatic": isStatic, | 3319 "isStatic": isStatic, |
| 3099 "kind": kind, | 3320 "kind": kind, |
| 3100 "localFunctions": localFunctions, | 3321 "localFunctions": localFunctions, |
| 3101 "localLabels": localLabels, | 3322 "localLabels": localLabels, |
| 3102 "localVariables": localVariables, | 3323 "localVariables": localVariables, |
| 3103 "name": name, | 3324 "name": name, |
| 3104 "nameOffset": nameOffset, | 3325 "nameOffset": nameOffset, |
| 3105 "parameters": parameters, | 3326 "parameters": parameters, |
| 3106 "redirectedConstructor": redirectedConstructor, | 3327 "redirectedConstructor": redirectedConstructor, |
| 3107 "redirectedConstructorName": redirectedConstructorName, | 3328 "redirectedConstructorName": redirectedConstructorName, |
| 3108 "returnType": returnType, | 3329 "returnType": returnType, |
| 3109 "typeParameters": typeParameters, | 3330 "typeParameters": typeParameters, |
| 3110 "visibleLength": visibleLength, | 3331 "visibleLength": visibleLength, |
| 3111 "visibleOffset": visibleOffset, | 3332 "visibleOffset": visibleOffset, |
| 3112 }; | 3333 }; |
| 3334 |
| 3335 @override |
| 3336 String toString() => convert.JSON.encode(toJson()); |
| 3113 } | 3337 } |
| 3114 | 3338 |
| 3115 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 3339 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
| 3116 bool _finished = false; | 3340 bool _finished = false; |
| 3117 | 3341 |
| 3118 List<UnlinkedConstBuilder> _annotations; | 3342 List<UnlinkedConstBuilder> _annotations; |
| 3119 int _offset; | 3343 int _offset; |
| 3120 int _uriEnd; | 3344 int _uriEnd; |
| 3121 int _uriOffset; | 3345 int _uriOffset; |
| 3122 | 3346 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3236 | 3460 |
| 3237 @override | 3461 @override |
| 3238 int get uriOffset { | 3462 int get uriOffset { |
| 3239 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 3463 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 3240 return _uriOffset; | 3464 return _uriOffset; |
| 3241 } | 3465 } |
| 3242 } | 3466 } |
| 3243 | 3467 |
| 3244 abstract class _UnlinkedExportNonPublicMixin implements idl.UnlinkedExportNonPub
lic { | 3468 abstract class _UnlinkedExportNonPublicMixin implements idl.UnlinkedExportNonPub
lic { |
| 3245 @override | 3469 @override |
| 3470 Map<String, Object> toJson() { |
| 3471 Map<String, Object> _result = <String, Object>{}; |
| 3472 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 3473 if (offset != 0) _result["offset"] = offset; |
| 3474 if (uriEnd != 0) _result["uriEnd"] = uriEnd; |
| 3475 if (uriOffset != 0) _result["uriOffset"] = uriOffset; |
| 3476 return _result; |
| 3477 } |
| 3478 |
| 3479 @override |
| 3246 Map<String, Object> toMap() => { | 3480 Map<String, Object> toMap() => { |
| 3247 "annotations": annotations, | 3481 "annotations": annotations, |
| 3248 "offset": offset, | 3482 "offset": offset, |
| 3249 "uriEnd": uriEnd, | 3483 "uriEnd": uriEnd, |
| 3250 "uriOffset": uriOffset, | 3484 "uriOffset": uriOffset, |
| 3251 }; | 3485 }; |
| 3486 |
| 3487 @override |
| 3488 String toString() => convert.JSON.encode(toJson()); |
| 3252 } | 3489 } |
| 3253 | 3490 |
| 3254 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { | 3491 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { |
| 3255 bool _finished = false; | 3492 bool _finished = false; |
| 3256 | 3493 |
| 3257 List<UnlinkedCombinatorBuilder> _combinators; | 3494 List<UnlinkedCombinatorBuilder> _combinators; |
| 3258 String _uri; | 3495 String _uri; |
| 3259 | 3496 |
| 3260 @override | 3497 @override |
| 3261 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; | 3498 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3328 | 3565 |
| 3329 @override | 3566 @override |
| 3330 String get uri { | 3567 String get uri { |
| 3331 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 3568 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 3332 return _uri; | 3569 return _uri; |
| 3333 } | 3570 } |
| 3334 } | 3571 } |
| 3335 | 3572 |
| 3336 abstract class _UnlinkedExportPublicMixin implements idl.UnlinkedExportPublic { | 3573 abstract class _UnlinkedExportPublicMixin implements idl.UnlinkedExportPublic { |
| 3337 @override | 3574 @override |
| 3575 Map<String, Object> toJson() { |
| 3576 Map<String, Object> _result = <String, Object>{}; |
| 3577 if (combinators.isNotEmpty) _result["combinators"] = combinators.map((_value
) => _value.toJson()).toList(); |
| 3578 if (uri != '') _result["uri"] = uri; |
| 3579 return _result; |
| 3580 } |
| 3581 |
| 3582 @override |
| 3338 Map<String, Object> toMap() => { | 3583 Map<String, Object> toMap() => { |
| 3339 "combinators": combinators, | 3584 "combinators": combinators, |
| 3340 "uri": uri, | 3585 "uri": uri, |
| 3341 }; | 3586 }; |
| 3587 |
| 3588 @override |
| 3589 String toString() => convert.JSON.encode(toJson()); |
| 3342 } | 3590 } |
| 3343 | 3591 |
| 3344 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { | 3592 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { |
| 3345 bool _finished = false; | 3593 bool _finished = false; |
| 3346 | 3594 |
| 3347 List<UnlinkedConstBuilder> _annotations; | 3595 List<UnlinkedConstBuilder> _annotations; |
| 3348 List<UnlinkedCombinatorBuilder> _combinators; | 3596 List<UnlinkedCombinatorBuilder> _combinators; |
| 3349 bool _isDeferred; | 3597 bool _isDeferred; |
| 3350 bool _isImplicit; | 3598 bool _isImplicit; |
| 3351 int _offset; | 3599 int _offset; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3618 | 3866 |
| 3619 @override | 3867 @override |
| 3620 int get uriOffset { | 3868 int get uriOffset { |
| 3621 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); | 3869 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); |
| 3622 return _uriOffset; | 3870 return _uriOffset; |
| 3623 } | 3871 } |
| 3624 } | 3872 } |
| 3625 | 3873 |
| 3626 abstract class _UnlinkedImportMixin implements idl.UnlinkedImport { | 3874 abstract class _UnlinkedImportMixin implements idl.UnlinkedImport { |
| 3627 @override | 3875 @override |
| 3876 Map<String, Object> toJson() { |
| 3877 Map<String, Object> _result = <String, Object>{}; |
| 3878 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 3879 if (combinators.isNotEmpty) _result["combinators"] = combinators.map((_value
) => _value.toJson()).toList(); |
| 3880 if (isDeferred != false) _result["isDeferred"] = isDeferred; |
| 3881 if (isImplicit != false) _result["isImplicit"] = isImplicit; |
| 3882 if (offset != 0) _result["offset"] = offset; |
| 3883 if (prefixOffset != 0) _result["prefixOffset"] = prefixOffset; |
| 3884 if (prefixReference != 0) _result["prefixReference"] = prefixReference; |
| 3885 if (uri != '') _result["uri"] = uri; |
| 3886 if (uriEnd != 0) _result["uriEnd"] = uriEnd; |
| 3887 if (uriOffset != 0) _result["uriOffset"] = uriOffset; |
| 3888 return _result; |
| 3889 } |
| 3890 |
| 3891 @override |
| 3628 Map<String, Object> toMap() => { | 3892 Map<String, Object> toMap() => { |
| 3629 "annotations": annotations, | 3893 "annotations": annotations, |
| 3630 "combinators": combinators, | 3894 "combinators": combinators, |
| 3631 "isDeferred": isDeferred, | 3895 "isDeferred": isDeferred, |
| 3632 "isImplicit": isImplicit, | 3896 "isImplicit": isImplicit, |
| 3633 "offset": offset, | 3897 "offset": offset, |
| 3634 "prefixOffset": prefixOffset, | 3898 "prefixOffset": prefixOffset, |
| 3635 "prefixReference": prefixReference, | 3899 "prefixReference": prefixReference, |
| 3636 "uri": uri, | 3900 "uri": uri, |
| 3637 "uriEnd": uriEnd, | 3901 "uriEnd": uriEnd, |
| 3638 "uriOffset": uriOffset, | 3902 "uriOffset": uriOffset, |
| 3639 }; | 3903 }; |
| 3904 |
| 3905 @override |
| 3906 String toString() => convert.JSON.encode(toJson()); |
| 3640 } | 3907 } |
| 3641 | 3908 |
| 3642 class UnlinkedLabelBuilder extends Object with _UnlinkedLabelMixin implements id
l.UnlinkedLabel { | 3909 class UnlinkedLabelBuilder extends Object with _UnlinkedLabelMixin implements id
l.UnlinkedLabel { |
| 3643 bool _finished = false; | 3910 bool _finished = false; |
| 3644 | 3911 |
| 3645 bool _isOnSwitchMember; | 3912 bool _isOnSwitchMember; |
| 3646 bool _isOnSwitchStatement; | 3913 bool _isOnSwitchStatement; |
| 3647 String _name; | 3914 String _name; |
| 3648 int _nameOffset; | 3915 int _nameOffset; |
| 3649 | 3916 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3760 | 4027 |
| 3761 @override | 4028 @override |
| 3762 int get nameOffset { | 4029 int get nameOffset { |
| 3763 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4030 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 3764 return _nameOffset; | 4031 return _nameOffset; |
| 3765 } | 4032 } |
| 3766 } | 4033 } |
| 3767 | 4034 |
| 3768 abstract class _UnlinkedLabelMixin implements idl.UnlinkedLabel { | 4035 abstract class _UnlinkedLabelMixin implements idl.UnlinkedLabel { |
| 3769 @override | 4036 @override |
| 4037 Map<String, Object> toJson() { |
| 4038 Map<String, Object> _result = <String, Object>{}; |
| 4039 if (isOnSwitchMember != false) _result["isOnSwitchMember"] = isOnSwitchMembe
r; |
| 4040 if (isOnSwitchStatement != false) _result["isOnSwitchStatement"] = isOnSwitc
hStatement; |
| 4041 if (name != '') _result["name"] = name; |
| 4042 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 4043 return _result; |
| 4044 } |
| 4045 |
| 4046 @override |
| 3770 Map<String, Object> toMap() => { | 4047 Map<String, Object> toMap() => { |
| 3771 "isOnSwitchMember": isOnSwitchMember, | 4048 "isOnSwitchMember": isOnSwitchMember, |
| 3772 "isOnSwitchStatement": isOnSwitchStatement, | 4049 "isOnSwitchStatement": isOnSwitchStatement, |
| 3773 "name": name, | 4050 "name": name, |
| 3774 "nameOffset": nameOffset, | 4051 "nameOffset": nameOffset, |
| 3775 }; | 4052 }; |
| 4053 |
| 4054 @override |
| 4055 String toString() => convert.JSON.encode(toJson()); |
| 3776 } | 4056 } |
| 3777 | 4057 |
| 3778 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { | 4058 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { |
| 3779 bool _finished = false; | 4059 bool _finished = false; |
| 3780 | 4060 |
| 3781 List<UnlinkedConstBuilder> _annotations; | 4061 List<UnlinkedConstBuilder> _annotations; |
| 3782 UnlinkedConstBuilder _defaultValue; | 4062 UnlinkedConstBuilder _defaultValue; |
| 3783 int _inferredTypeSlot; | 4063 int _inferredTypeSlot; |
| 3784 UnlinkedExecutableBuilder _initializer; | 4064 UnlinkedExecutableBuilder _initializer; |
| 3785 bool _isFunctionTyped; | 4065 bool _isFunctionTyped; |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4139 | 4419 |
| 4140 @override | 4420 @override |
| 4141 int get visibleOffset { | 4421 int get visibleOffset { |
| 4142 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 11, 0); | 4422 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 11, 0); |
| 4143 return _visibleOffset; | 4423 return _visibleOffset; |
| 4144 } | 4424 } |
| 4145 } | 4425 } |
| 4146 | 4426 |
| 4147 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { | 4427 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { |
| 4148 @override | 4428 @override |
| 4429 Map<String, Object> toJson() { |
| 4430 Map<String, Object> _result = <String, Object>{}; |
| 4431 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 4432 if (defaultValue != null) _result["defaultValue"] = defaultValue.toJson(); |
| 4433 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; |
| 4434 if (initializer != null) _result["initializer"] = initializer.toJson(); |
| 4435 if (isFunctionTyped != false) _result["isFunctionTyped"] = isFunctionTyped; |
| 4436 if (isInitializingFormal != false) _result["isInitializingFormal"] = isIniti
alizingFormal; |
| 4437 if (kind != idl.UnlinkedParamKind.required) _result["kind"] = kind.toString(
).split('.')[1]; |
| 4438 if (name != '') _result["name"] = name; |
| 4439 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 4440 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 4441 if (type != null) _result["type"] = type.toJson(); |
| 4442 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 4443 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 4444 return _result; |
| 4445 } |
| 4446 |
| 4447 @override |
| 4149 Map<String, Object> toMap() => { | 4448 Map<String, Object> toMap() => { |
| 4150 "annotations": annotations, | 4449 "annotations": annotations, |
| 4151 "defaultValue": defaultValue, | 4450 "defaultValue": defaultValue, |
| 4152 "inferredTypeSlot": inferredTypeSlot, | 4451 "inferredTypeSlot": inferredTypeSlot, |
| 4153 "initializer": initializer, | 4452 "initializer": initializer, |
| 4154 "isFunctionTyped": isFunctionTyped, | 4453 "isFunctionTyped": isFunctionTyped, |
| 4155 "isInitializingFormal": isInitializingFormal, | 4454 "isInitializingFormal": isInitializingFormal, |
| 4156 "kind": kind, | 4455 "kind": kind, |
| 4157 "name": name, | 4456 "name": name, |
| 4158 "nameOffset": nameOffset, | 4457 "nameOffset": nameOffset, |
| 4159 "parameters": parameters, | 4458 "parameters": parameters, |
| 4160 "type": type, | 4459 "type": type, |
| 4161 "visibleLength": visibleLength, | 4460 "visibleLength": visibleLength, |
| 4162 "visibleOffset": visibleOffset, | 4461 "visibleOffset": visibleOffset, |
| 4163 }; | 4462 }; |
| 4463 |
| 4464 @override |
| 4465 String toString() => convert.JSON.encode(toJson()); |
| 4164 } | 4466 } |
| 4165 | 4467 |
| 4166 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { | 4468 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { |
| 4167 bool _finished = false; | 4469 bool _finished = false; |
| 4168 | 4470 |
| 4169 List<UnlinkedConstBuilder> _annotations; | 4471 List<UnlinkedConstBuilder> _annotations; |
| 4170 int _uriEnd; | 4472 int _uriEnd; |
| 4171 int _uriOffset; | 4473 int _uriOffset; |
| 4172 | 4474 |
| 4173 @override | 4475 @override |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4263 | 4565 |
| 4264 @override | 4566 @override |
| 4265 int get uriOffset { | 4567 int get uriOffset { |
| 4266 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4568 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 4267 return _uriOffset; | 4569 return _uriOffset; |
| 4268 } | 4570 } |
| 4269 } | 4571 } |
| 4270 | 4572 |
| 4271 abstract class _UnlinkedPartMixin implements idl.UnlinkedPart { | 4573 abstract class _UnlinkedPartMixin implements idl.UnlinkedPart { |
| 4272 @override | 4574 @override |
| 4575 Map<String, Object> toJson() { |
| 4576 Map<String, Object> _result = <String, Object>{}; |
| 4577 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 4578 if (uriEnd != 0) _result["uriEnd"] = uriEnd; |
| 4579 if (uriOffset != 0) _result["uriOffset"] = uriOffset; |
| 4580 return _result; |
| 4581 } |
| 4582 |
| 4583 @override |
| 4273 Map<String, Object> toMap() => { | 4584 Map<String, Object> toMap() => { |
| 4274 "annotations": annotations, | 4585 "annotations": annotations, |
| 4275 "uriEnd": uriEnd, | 4586 "uriEnd": uriEnd, |
| 4276 "uriOffset": uriOffset, | 4587 "uriOffset": uriOffset, |
| 4277 }; | 4588 }; |
| 4589 |
| 4590 @override |
| 4591 String toString() => convert.JSON.encode(toJson()); |
| 4278 } | 4592 } |
| 4279 | 4593 |
| 4280 class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
lements idl.UnlinkedPublicName { | 4594 class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
lements idl.UnlinkedPublicName { |
| 4281 bool _finished = false; | 4595 bool _finished = false; |
| 4282 | 4596 |
| 4283 idl.ReferenceKind _kind; | 4597 idl.ReferenceKind _kind; |
| 4284 List<UnlinkedPublicNameBuilder> _members; | 4598 List<UnlinkedPublicNameBuilder> _members; |
| 4285 String _name; | 4599 String _name; |
| 4286 int _numTypeParameters; | 4600 int _numTypeParameters; |
| 4287 | 4601 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4407 | 4721 |
| 4408 @override | 4722 @override |
| 4409 int get numTypeParameters { | 4723 int get numTypeParameters { |
| 4410 _numTypeParameters ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); | 4724 _numTypeParameters ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); |
| 4411 return _numTypeParameters; | 4725 return _numTypeParameters; |
| 4412 } | 4726 } |
| 4413 } | 4727 } |
| 4414 | 4728 |
| 4415 abstract class _UnlinkedPublicNameMixin implements idl.UnlinkedPublicName { | 4729 abstract class _UnlinkedPublicNameMixin implements idl.UnlinkedPublicName { |
| 4416 @override | 4730 @override |
| 4731 Map<String, Object> toJson() { |
| 4732 Map<String, Object> _result = <String, Object>{}; |
| 4733 if (kind != idl.ReferenceKind.classOrEnum) _result["kind"] = kind.toString()
.split('.')[1]; |
| 4734 if (members.isNotEmpty) _result["members"] = members.map((_value) => _value.
toJson()).toList(); |
| 4735 if (name != '') _result["name"] = name; |
| 4736 if (numTypeParameters != 0) _result["numTypeParameters"] = numTypeParameters
; |
| 4737 return _result; |
| 4738 } |
| 4739 |
| 4740 @override |
| 4417 Map<String, Object> toMap() => { | 4741 Map<String, Object> toMap() => { |
| 4418 "kind": kind, | 4742 "kind": kind, |
| 4419 "members": members, | 4743 "members": members, |
| 4420 "name": name, | 4744 "name": name, |
| 4421 "numTypeParameters": numTypeParameters, | 4745 "numTypeParameters": numTypeParameters, |
| 4422 }; | 4746 }; |
| 4747 |
| 4748 @override |
| 4749 String toString() => convert.JSON.encode(toJson()); |
| 4423 } | 4750 } |
| 4424 | 4751 |
| 4425 class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac
eMixin implements idl.UnlinkedPublicNamespace { | 4752 class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac
eMixin implements idl.UnlinkedPublicNamespace { |
| 4426 bool _finished = false; | 4753 bool _finished = false; |
| 4427 | 4754 |
| 4428 List<UnlinkedExportPublicBuilder> _exports; | 4755 List<UnlinkedExportPublicBuilder> _exports; |
| 4429 List<UnlinkedPublicNameBuilder> _names; | 4756 List<UnlinkedPublicNameBuilder> _names; |
| 4430 List<String> _parts; | 4757 List<String> _parts; |
| 4431 | 4758 |
| 4432 @override | 4759 @override |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4539 | 4866 |
| 4540 @override | 4867 @override |
| 4541 List<String> get parts { | 4868 List<String> get parts { |
| 4542 _parts ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 1, const <String>[]); | 4869 _parts ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(_b
p, 1, const <String>[]); |
| 4543 return _parts; | 4870 return _parts; |
| 4544 } | 4871 } |
| 4545 } | 4872 } |
| 4546 | 4873 |
| 4547 abstract class _UnlinkedPublicNamespaceMixin implements idl.UnlinkedPublicNamesp
ace { | 4874 abstract class _UnlinkedPublicNamespaceMixin implements idl.UnlinkedPublicNamesp
ace { |
| 4548 @override | 4875 @override |
| 4876 Map<String, Object> toJson() { |
| 4877 Map<String, Object> _result = <String, Object>{}; |
| 4878 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value.
toJson()).toList(); |
| 4879 if (names.isNotEmpty) _result["names"] = names.map((_value) => _value.toJson
()).toList(); |
| 4880 if (parts.isNotEmpty) _result["parts"] = parts; |
| 4881 return _result; |
| 4882 } |
| 4883 |
| 4884 @override |
| 4549 Map<String, Object> toMap() => { | 4885 Map<String, Object> toMap() => { |
| 4550 "exports": exports, | 4886 "exports": exports, |
| 4551 "names": names, | 4887 "names": names, |
| 4552 "parts": parts, | 4888 "parts": parts, |
| 4553 }; | 4889 }; |
| 4890 |
| 4891 @override |
| 4892 String toString() => convert.JSON.encode(toJson()); |
| 4554 } | 4893 } |
| 4555 | 4894 |
| 4556 class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple
ments idl.UnlinkedReference { | 4895 class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple
ments idl.UnlinkedReference { |
| 4557 bool _finished = false; | 4896 bool _finished = false; |
| 4558 | 4897 |
| 4559 String _name; | 4898 String _name; |
| 4560 int _prefixReference; | 4899 int _prefixReference; |
| 4561 | 4900 |
| 4562 @override | 4901 @override |
| 4563 String get name => _name ??= ''; | 4902 String get name => _name ??= ''; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4634 | 4973 |
| 4635 @override | 4974 @override |
| 4636 int get prefixReference { | 4975 int get prefixReference { |
| 4637 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4976 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 4638 return _prefixReference; | 4977 return _prefixReference; |
| 4639 } | 4978 } |
| 4640 } | 4979 } |
| 4641 | 4980 |
| 4642 abstract class _UnlinkedReferenceMixin implements idl.UnlinkedReference { | 4981 abstract class _UnlinkedReferenceMixin implements idl.UnlinkedReference { |
| 4643 @override | 4982 @override |
| 4983 Map<String, Object> toJson() { |
| 4984 Map<String, Object> _result = <String, Object>{}; |
| 4985 if (name != '') _result["name"] = name; |
| 4986 if (prefixReference != 0) _result["prefixReference"] = prefixReference; |
| 4987 return _result; |
| 4988 } |
| 4989 |
| 4990 @override |
| 4644 Map<String, Object> toMap() => { | 4991 Map<String, Object> toMap() => { |
| 4645 "name": name, | 4992 "name": name, |
| 4646 "prefixReference": prefixReference, | 4993 "prefixReference": prefixReference, |
| 4647 }; | 4994 }; |
| 4995 |
| 4996 @override |
| 4997 String toString() => convert.JSON.encode(toJson()); |
| 4648 } | 4998 } |
| 4649 | 4999 |
| 4650 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { | 5000 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { |
| 4651 bool _finished = false; | 5001 bool _finished = false; |
| 4652 | 5002 |
| 4653 List<UnlinkedConstBuilder> _annotations; | 5003 List<UnlinkedConstBuilder> _annotations; |
| 4654 UnlinkedDocumentationCommentBuilder _documentationComment; | 5004 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 4655 String _name; | 5005 String _name; |
| 4656 int _nameOffset; | 5006 int _nameOffset; |
| 4657 List<UnlinkedParamBuilder> _parameters; | 5007 List<UnlinkedParamBuilder> _parameters; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4857 | 5207 |
| 4858 @override | 5208 @override |
| 4859 List<idl.UnlinkedTypeParam> get typeParameters { | 5209 List<idl.UnlinkedTypeParam> get typeParameters { |
| 4860 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 5, const <idl.UnlinkedTypeParam>[]); | 5210 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 5, const <idl.UnlinkedTypeParam>[]); |
| 4861 return _typeParameters; | 5211 return _typeParameters; |
| 4862 } | 5212 } |
| 4863 } | 5213 } |
| 4864 | 5214 |
| 4865 abstract class _UnlinkedTypedefMixin implements idl.UnlinkedTypedef { | 5215 abstract class _UnlinkedTypedefMixin implements idl.UnlinkedTypedef { |
| 4866 @override | 5216 @override |
| 5217 Map<String, Object> toJson() { |
| 5218 Map<String, Object> _result = <String, Object>{}; |
| 5219 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 5220 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 5221 if (name != '') _result["name"] = name; |
| 5222 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 5223 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 5224 if (returnType != null) _result["returnType"] = returnType.toJson(); |
| 5225 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 5226 return _result; |
| 5227 } |
| 5228 |
| 5229 @override |
| 4867 Map<String, Object> toMap() => { | 5230 Map<String, Object> toMap() => { |
| 4868 "annotations": annotations, | 5231 "annotations": annotations, |
| 4869 "documentationComment": documentationComment, | 5232 "documentationComment": documentationComment, |
| 4870 "name": name, | 5233 "name": name, |
| 4871 "nameOffset": nameOffset, | 5234 "nameOffset": nameOffset, |
| 4872 "parameters": parameters, | 5235 "parameters": parameters, |
| 4873 "returnType": returnType, | 5236 "returnType": returnType, |
| 4874 "typeParameters": typeParameters, | 5237 "typeParameters": typeParameters, |
| 4875 }; | 5238 }; |
| 5239 |
| 5240 @override |
| 5241 String toString() => convert.JSON.encode(toJson()); |
| 4876 } | 5242 } |
| 4877 | 5243 |
| 4878 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { | 5244 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { |
| 4879 bool _finished = false; | 5245 bool _finished = false; |
| 4880 | 5246 |
| 4881 List<UnlinkedConstBuilder> _annotations; | 5247 List<UnlinkedConstBuilder> _annotations; |
| 4882 EntityRefBuilder _bound; | 5248 EntityRefBuilder _bound; |
| 4883 String _name; | 5249 String _name; |
| 4884 int _nameOffset; | 5250 int _nameOffset; |
| 4885 | 5251 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5004 | 5370 |
| 5005 @override | 5371 @override |
| 5006 int get nameOffset { | 5372 int get nameOffset { |
| 5007 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 5373 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 5008 return _nameOffset; | 5374 return _nameOffset; |
| 5009 } | 5375 } |
| 5010 } | 5376 } |
| 5011 | 5377 |
| 5012 abstract class _UnlinkedTypeParamMixin implements idl.UnlinkedTypeParam { | 5378 abstract class _UnlinkedTypeParamMixin implements idl.UnlinkedTypeParam { |
| 5013 @override | 5379 @override |
| 5380 Map<String, Object> toJson() { |
| 5381 Map<String, Object> _result = <String, Object>{}; |
| 5382 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 5383 if (bound != null) _result["bound"] = bound.toJson(); |
| 5384 if (name != '') _result["name"] = name; |
| 5385 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 5386 return _result; |
| 5387 } |
| 5388 |
| 5389 @override |
| 5014 Map<String, Object> toMap() => { | 5390 Map<String, Object> toMap() => { |
| 5015 "annotations": annotations, | 5391 "annotations": annotations, |
| 5016 "bound": bound, | 5392 "bound": bound, |
| 5017 "name": name, | 5393 "name": name, |
| 5018 "nameOffset": nameOffset, | 5394 "nameOffset": nameOffset, |
| 5019 }; | 5395 }; |
| 5396 |
| 5397 @override |
| 5398 String toString() => convert.JSON.encode(toJson()); |
| 5020 } | 5399 } |
| 5021 | 5400 |
| 5022 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { | 5401 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { |
| 5023 bool _finished = false; | 5402 bool _finished = false; |
| 5024 | 5403 |
| 5025 List<UnlinkedClassBuilder> _classes; | 5404 List<UnlinkedClassBuilder> _classes; |
| 5026 List<UnlinkedEnumBuilder> _enums; | 5405 List<UnlinkedEnumBuilder> _enums; |
| 5027 List<UnlinkedExecutableBuilder> _executables; | 5406 List<UnlinkedExecutableBuilder> _executables; |
| 5028 List<UnlinkedExportNonPublicBuilder> _exports; | 5407 List<UnlinkedExportNonPublicBuilder> _exports; |
| 5029 List<UnlinkedImportBuilder> _imports; | 5408 List<UnlinkedImportBuilder> _imports; |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5460 | 5839 |
| 5461 @override | 5840 @override |
| 5462 List<idl.UnlinkedVariable> get variables { | 5841 List<idl.UnlinkedVariable> get variables { |
| 5463 _variables ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVari
ableReader()).vTableGet(_bp, 3, const <idl.UnlinkedVariable>[]); | 5842 _variables ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVari
ableReader()).vTableGet(_bp, 3, const <idl.UnlinkedVariable>[]); |
| 5464 return _variables; | 5843 return _variables; |
| 5465 } | 5844 } |
| 5466 } | 5845 } |
| 5467 | 5846 |
| 5468 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { | 5847 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { |
| 5469 @override | 5848 @override |
| 5849 Map<String, Object> toJson() { |
| 5850 Map<String, Object> _result = <String, Object>{}; |
| 5851 if (classes.isNotEmpty) _result["classes"] = classes.map((_value) => _value.
toJson()).toList(); |
| 5852 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson
()).toList(); |
| 5853 if (executables.isNotEmpty) _result["executables"] = executables.map((_value
) => _value.toJson()).toList(); |
| 5854 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value.
toJson()).toList(); |
| 5855 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value.
toJson()).toList(); |
| 5856 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn
notations.map((_value) => _value.toJson()).toList(); |
| 5857 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen
t"] = libraryDocumentationComment.toJson(); |
| 5858 if (libraryName != '') _result["libraryName"] = libraryName; |
| 5859 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength
; |
| 5860 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset
; |
| 5861 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson
()).toList(); |
| 5862 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to
Json(); |
| 5863 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
| 5864 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val
ue.toJson()).toList(); |
| 5865 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _
value.toJson()).toList(); |
| 5866 return _result; |
| 5867 } |
| 5868 |
| 5869 @override |
| 5470 Map<String, Object> toMap() => { | 5870 Map<String, Object> toMap() => { |
| 5471 "classes": classes, | 5871 "classes": classes, |
| 5472 "enums": enums, | 5872 "enums": enums, |
| 5473 "executables": executables, | 5873 "executables": executables, |
| 5474 "exports": exports, | 5874 "exports": exports, |
| 5475 "imports": imports, | 5875 "imports": imports, |
| 5476 "libraryAnnotations": libraryAnnotations, | 5876 "libraryAnnotations": libraryAnnotations, |
| 5477 "libraryDocumentationComment": libraryDocumentationComment, | 5877 "libraryDocumentationComment": libraryDocumentationComment, |
| 5478 "libraryName": libraryName, | 5878 "libraryName": libraryName, |
| 5479 "libraryNameLength": libraryNameLength, | 5879 "libraryNameLength": libraryNameLength, |
| 5480 "libraryNameOffset": libraryNameOffset, | 5880 "libraryNameOffset": libraryNameOffset, |
| 5481 "parts": parts, | 5881 "parts": parts, |
| 5482 "publicNamespace": publicNamespace, | 5882 "publicNamespace": publicNamespace, |
| 5483 "references": references, | 5883 "references": references, |
| 5484 "typedefs": typedefs, | 5884 "typedefs": typedefs, |
| 5485 "variables": variables, | 5885 "variables": variables, |
| 5486 }; | 5886 }; |
| 5887 |
| 5888 @override |
| 5889 String toString() => convert.JSON.encode(toJson()); |
| 5487 } | 5890 } |
| 5488 | 5891 |
| 5489 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { | 5892 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { |
| 5490 bool _finished = false; | 5893 bool _finished = false; |
| 5491 | 5894 |
| 5492 List<UnlinkedConstBuilder> _annotations; | 5895 List<UnlinkedConstBuilder> _annotations; |
| 5493 UnlinkedConstBuilder _constExpr; | 5896 UnlinkedConstBuilder _constExpr; |
| 5494 UnlinkedDocumentationCommentBuilder _documentationComment; | 5897 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 5495 int _inferredTypeSlot; | 5898 int _inferredTypeSlot; |
| 5496 UnlinkedExecutableBuilder _initializer; | 5899 UnlinkedExecutableBuilder _initializer; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5876 | 6279 |
| 5877 @override | 6280 @override |
| 5878 int get visibleOffset { | 6281 int get visibleOffset { |
| 5879 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); | 6282 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); |
| 5880 return _visibleOffset; | 6283 return _visibleOffset; |
| 5881 } | 6284 } |
| 5882 } | 6285 } |
| 5883 | 6286 |
| 5884 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { | 6287 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { |
| 5885 @override | 6288 @override |
| 6289 Map<String, Object> toJson() { |
| 6290 Map<String, Object> _result = <String, Object>{}; |
| 6291 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 6292 if (constExpr != null) _result["constExpr"] = constExpr.toJson(); |
| 6293 if (documentationComment != null) _result["documentationComment"] = document
ationComment.toJson(); |
| 6294 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; |
| 6295 if (initializer != null) _result["initializer"] = initializer.toJson(); |
| 6296 if (isConst != false) _result["isConst"] = isConst; |
| 6297 if (isFinal != false) _result["isFinal"] = isFinal; |
| 6298 if (isStatic != false) _result["isStatic"] = isStatic; |
| 6299 if (name != '') _result["name"] = name; |
| 6300 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 6301 if (propagatedTypeSlot != 0) _result["propagatedTypeSlot"] = propagatedTypeS
lot; |
| 6302 if (type != null) _result["type"] = type.toJson(); |
| 6303 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 6304 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 6305 return _result; |
| 6306 } |
| 6307 |
| 6308 @override |
| 5886 Map<String, Object> toMap() => { | 6309 Map<String, Object> toMap() => { |
| 5887 "annotations": annotations, | 6310 "annotations": annotations, |
| 5888 "constExpr": constExpr, | 6311 "constExpr": constExpr, |
| 5889 "documentationComment": documentationComment, | 6312 "documentationComment": documentationComment, |
| 5890 "inferredTypeSlot": inferredTypeSlot, | 6313 "inferredTypeSlot": inferredTypeSlot, |
| 5891 "initializer": initializer, | 6314 "initializer": initializer, |
| 5892 "isConst": isConst, | 6315 "isConst": isConst, |
| 5893 "isFinal": isFinal, | 6316 "isFinal": isFinal, |
| 5894 "isStatic": isStatic, | 6317 "isStatic": isStatic, |
| 5895 "name": name, | 6318 "name": name, |
| 5896 "nameOffset": nameOffset, | 6319 "nameOffset": nameOffset, |
| 5897 "propagatedTypeSlot": propagatedTypeSlot, | 6320 "propagatedTypeSlot": propagatedTypeSlot, |
| 5898 "type": type, | 6321 "type": type, |
| 5899 "visibleLength": visibleLength, | 6322 "visibleLength": visibleLength, |
| 5900 "visibleOffset": visibleOffset, | 6323 "visibleOffset": visibleOffset, |
| 5901 }; | 6324 }; |
| 6325 |
| 6326 @override |
| 6327 String toString() => convert.JSON.encode(toJson()); |
| 5902 } | 6328 } |
| 5903 | 6329 |
| OLD | NEW |