Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: pkg/analyzer/lib/src/summary/format.dart

Issue 1615453002: Use Uint32 for `int` in IDL. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/tool/summary/generate.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'base.dart' as base; 10 import 'base.dart' as base;
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 class _ReferenceKindReader extends fb.Reader<ReferenceKind> { 26 class _ReferenceKindReader extends fb.Reader<ReferenceKind> {
27 const _ReferenceKindReader() : super(); 27 const _ReferenceKindReader() : super();
28 28
29 @override 29 @override
30 int get size => 4; 30 int get size => 4;
31 31
32 @override 32 @override
33 ReferenceKind read(fb.BufferPointer bp) { 33 ReferenceKind read(fb.BufferPointer bp) {
34 int index = const fb.Int32Reader().read(bp); 34 int index = const fb.Uint32Reader().read(bp);
35 return ReferenceKind.values[index]; 35 return ReferenceKind.values[index];
36 } 36 }
37 } 37 }
38 38
39 /** 39 /**
40 * Enum representing the various kinds of operations which may be performed to 40 * Enum representing the various kinds of operations which may be performed to
41 * produce a constant value. These options are assumed to execute in the 41 * produce a constant value. These options are assumed to execute in the
42 * context of a stack which is initially empty. 42 * context of a stack which is initially empty.
43 */ 43 */
44 enum UnlinkedConstOperation { 44 enum UnlinkedConstOperation {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 class _UnlinkedConstOperationReader extends fb.Reader<UnlinkedConstOperation> { 85 class _UnlinkedConstOperationReader extends fb.Reader<UnlinkedConstOperation> {
86 const _UnlinkedConstOperationReader() : super(); 86 const _UnlinkedConstOperationReader() : super();
87 87
88 @override 88 @override
89 int get size => 4; 89 int get size => 4;
90 90
91 @override 91 @override
92 UnlinkedConstOperation read(fb.BufferPointer bp) { 92 UnlinkedConstOperation read(fb.BufferPointer bp) {
93 int index = const fb.Int32Reader().read(bp); 93 int index = const fb.Uint32Reader().read(bp);
94 return UnlinkedConstOperation.values[index]; 94 return UnlinkedConstOperation.values[index];
95 } 95 }
96 } 96 }
97 97
98 /** 98 /**
99 * Enum used to indicate the kind of an executable. 99 * Enum used to indicate the kind of an executable.
100 */ 100 */
101 enum UnlinkedExecutableKind { 101 enum UnlinkedExecutableKind {
102 functionOrMethod, 102 functionOrMethod,
103 getter, 103 getter,
104 setter, 104 setter,
105 constructor, 105 constructor,
106 } 106 }
107 107
108 class _UnlinkedExecutableKindReader extends fb.Reader<UnlinkedExecutableKind> { 108 class _UnlinkedExecutableKindReader extends fb.Reader<UnlinkedExecutableKind> {
109 const _UnlinkedExecutableKindReader() : super(); 109 const _UnlinkedExecutableKindReader() : super();
110 110
111 @override 111 @override
112 int get size => 4; 112 int get size => 4;
113 113
114 @override 114 @override
115 UnlinkedExecutableKind read(fb.BufferPointer bp) { 115 UnlinkedExecutableKind read(fb.BufferPointer bp) {
116 int index = const fb.Int32Reader().read(bp); 116 int index = const fb.Uint32Reader().read(bp);
117 return UnlinkedExecutableKind.values[index]; 117 return UnlinkedExecutableKind.values[index];
118 } 118 }
119 } 119 }
120 120
121 /** 121 /**
122 * Enum used to indicate the kind of a parameter. 122 * Enum used to indicate the kind of a parameter.
123 */ 123 */
124 enum UnlinkedParamKind { 124 enum UnlinkedParamKind {
125 required, 125 required,
126 positional, 126 positional,
127 named, 127 named,
128 } 128 }
129 129
130 class _UnlinkedParamKindReader extends fb.Reader<UnlinkedParamKind> { 130 class _UnlinkedParamKindReader extends fb.Reader<UnlinkedParamKind> {
131 const _UnlinkedParamKindReader() : super(); 131 const _UnlinkedParamKindReader() : super();
132 132
133 @override 133 @override
134 int get size => 4; 134 int get size => 4;
135 135
136 @override 136 @override
137 UnlinkedParamKind read(fb.BufferPointer bp) { 137 UnlinkedParamKind read(fb.BufferPointer bp) {
138 int index = const fb.Int32Reader().read(bp); 138 int index = const fb.Uint32Reader().read(bp);
139 return UnlinkedParamKind.values[index]; 139 return UnlinkedParamKind.values[index];
140 } 140 }
141 } 141 }
142 142
143 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme nts LinkedDependency { 143 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme nts LinkedDependency {
144 bool _finished = false; 144 bool _finished = false;
145 145
146 String _uri; 146 String _uri;
147 List<String> _parts; 147 List<String> _parts;
148 148
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 _finished = true; 327 _finished = true;
328 fb.Offset offset_name; 328 fb.Offset offset_name;
329 if (_name != null) { 329 if (_name != null) {
330 offset_name = fbBuilder.writeString(_name); 330 offset_name = fbBuilder.writeString(_name);
331 } 331 }
332 fbBuilder.startTable(); 332 fbBuilder.startTable();
333 if (offset_name != null) { 333 if (offset_name != null) {
334 fbBuilder.addOffset(0, offset_name); 334 fbBuilder.addOffset(0, offset_name);
335 } 335 }
336 if (_dependency != null && _dependency != 0) { 336 if (_dependency != null && _dependency != 0) {
337 fbBuilder.addInt32(1, _dependency); 337 fbBuilder.addUint32(1, _dependency);
338 } 338 }
339 if (_unit != null && _unit != 0) { 339 if (_unit != null && _unit != 0) {
340 fbBuilder.addInt32(2, _unit); 340 fbBuilder.addUint32(2, _unit);
341 } 341 }
342 if (_kind != null && _kind != ReferenceKind.classOrEnum) { 342 if (_kind != null && _kind != ReferenceKind.classOrEnum) {
343 fbBuilder.addInt32(3, _kind.index); 343 fbBuilder.addUint32(3, _kind.index);
344 } 344 }
345 return fbBuilder.endTable(); 345 return fbBuilder.endTable();
346 } 346 }
347 } 347 }
348 348
349 /** 349 /**
350 * Information about a single name in the export namespace of the library that 350 * Information about a single name in the export namespace of the library that
351 * is not in the public namespace. 351 * is not in the public namespace.
352 */ 352 */
353 abstract class LinkedExportName extends base.SummaryClass { 353 abstract class LinkedExportName extends base.SummaryClass {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 ReferenceKind _kind; 396 ReferenceKind _kind;
397 397
398 @override 398 @override
399 String get name { 399 String get name {
400 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 400 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
401 return _name; 401 return _name;
402 } 402 }
403 403
404 @override 404 @override
405 int get dependency { 405 int get dependency {
406 _dependency ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 406 _dependency ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
407 return _dependency; 407 return _dependency;
408 } 408 }
409 409
410 @override 410 @override
411 int get unit { 411 int get unit {
412 _unit ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 412 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
413 return _unit; 413 return _unit;
414 } 414 }
415 415
416 @override 416 @override
417 ReferenceKind get kind { 417 ReferenceKind get kind {
418 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 3, ReferenceKind.class OrEnum); 418 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 3, ReferenceKind.class OrEnum);
419 return _kind; 419 return _kind;
420 } 420 }
421 } 421 }
422 422
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 fb.Offset offset_dependencies; 537 fb.Offset offset_dependencies;
538 fb.Offset offset_importDependencies; 538 fb.Offset offset_importDependencies;
539 fb.Offset offset_exportNames; 539 fb.Offset offset_exportNames;
540 if (!(_units == null || _units.isEmpty)) { 540 if (!(_units == null || _units.isEmpty)) {
541 offset_units = fbBuilder.writeList(_units.map((b) => b.finish(fbBuilder)). toList()); 541 offset_units = fbBuilder.writeList(_units.map((b) => b.finish(fbBuilder)). toList());
542 } 542 }
543 if (!(_dependencies == null || _dependencies.isEmpty)) { 543 if (!(_dependencies == null || _dependencies.isEmpty)) {
544 offset_dependencies = fbBuilder.writeList(_dependencies.map((b) => b.finis h(fbBuilder)).toList()); 544 offset_dependencies = fbBuilder.writeList(_dependencies.map((b) => b.finis h(fbBuilder)).toList());
545 } 545 }
546 if (!(_importDependencies == null || _importDependencies.isEmpty)) { 546 if (!(_importDependencies == null || _importDependencies.isEmpty)) {
547 offset_importDependencies = fbBuilder.writeListInt32(_importDependencies); 547 offset_importDependencies = fbBuilder.writeListUint32(_importDependencies) ;
548 } 548 }
549 if (!(_exportNames == null || _exportNames.isEmpty)) { 549 if (!(_exportNames == null || _exportNames.isEmpty)) {
550 offset_exportNames = fbBuilder.writeList(_exportNames.map((b) => b.finish( fbBuilder)).toList()); 550 offset_exportNames = fbBuilder.writeList(_exportNames.map((b) => b.finish( fbBuilder)).toList());
551 } 551 }
552 fbBuilder.startTable(); 552 fbBuilder.startTable();
553 if (offset_units != null) { 553 if (offset_units != null) {
554 fbBuilder.addOffset(0, offset_units); 554 fbBuilder.addOffset(0, offset_units);
555 } 555 }
556 if (offset_dependencies != null) { 556 if (offset_dependencies != null) {
557 fbBuilder.addOffset(1, offset_dependencies); 557 fbBuilder.addOffset(1, offset_dependencies);
558 } 558 }
559 if (offset_importDependencies != null) { 559 if (offset_importDependencies != null) {
560 fbBuilder.addOffset(2, offset_importDependencies); 560 fbBuilder.addOffset(2, offset_importDependencies);
561 } 561 }
562 if (offset_exportNames != null) { 562 if (offset_exportNames != null) {
563 fbBuilder.addOffset(3, offset_exportNames); 563 fbBuilder.addOffset(3, offset_exportNames);
564 } 564 }
565 if (_numPrelinkedDependencies != null && _numPrelinkedDependencies != 0) { 565 if (_numPrelinkedDependencies != null && _numPrelinkedDependencies != 0) {
566 fbBuilder.addInt32(4, _numPrelinkedDependencies); 566 fbBuilder.addUint32(4, _numPrelinkedDependencies);
567 } 567 }
568 return fbBuilder.endTable(); 568 return fbBuilder.endTable();
569 } 569 }
570 } 570 }
571 571
572 /** 572 /**
573 * Linked summary of a library. 573 * Linked summary of a library.
574 */ 574 */
575 abstract class LinkedLibrary extends base.SummaryClass { 575 abstract class LinkedLibrary extends base.SummaryClass {
576 factory LinkedLibrary.fromBuffer(List<int> buffer) { 576 factory LinkedLibrary.fromBuffer(List<int> buffer) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 651 }
652 652
653 @override 653 @override
654 List<LinkedDependency> get dependencies { 654 List<LinkedDependency> get dependencies {
655 _dependencies ??= const fb.ListReader<LinkedDependency>(const _LinkedDepende ncyReader()).vTableGet(_bp, 1, const <LinkedDependency>[]); 655 _dependencies ??= const fb.ListReader<LinkedDependency>(const _LinkedDepende ncyReader()).vTableGet(_bp, 1, const <LinkedDependency>[]);
656 return _dependencies; 656 return _dependencies;
657 } 657 }
658 658
659 @override 659 @override
660 List<int> get importDependencies { 660 List<int> get importDependencies {
661 _importDependencies ??= const fb.ListReader<int>(const fb.Int32Reader()).vTa bleGet(_bp, 2, const <int>[]); 661 _importDependencies ??= const fb.ListReader<int>(const fb.Uint32Reader()).vT ableGet(_bp, 2, const <int>[]);
662 return _importDependencies; 662 return _importDependencies;
663 } 663 }
664 664
665 @override 665 @override
666 List<LinkedExportName> get exportNames { 666 List<LinkedExportName> get exportNames {
667 _exportNames ??= const fb.ListReader<LinkedExportName>(const _LinkedExportNa meReader()).vTableGet(_bp, 3, const <LinkedExportName>[]); 667 _exportNames ??= const fb.ListReader<LinkedExportName>(const _LinkedExportNa meReader()).vTableGet(_bp, 3, const <LinkedExportName>[]);
668 return _exportNames; 668 return _exportNames;
669 } 669 }
670 670
671 @override 671 @override
672 int get numPrelinkedDependencies { 672 int get numPrelinkedDependencies {
673 _numPrelinkedDependencies ??= const fb.Int32Reader().vTableGet(_bp, 4, 0); 673 _numPrelinkedDependencies ??= const fb.Uint32Reader().vTableGet(_bp, 4, 0);
674 return _numPrelinkedDependencies; 674 return _numPrelinkedDependencies;
675 } 675 }
676 } 676 }
677 677
678 abstract class _LinkedLibraryMixin implements LinkedLibrary { 678 abstract class _LinkedLibraryMixin implements LinkedLibrary {
679 @override 679 @override
680 Map<String, Object> toMap() => { 680 Map<String, Object> toMap() => {
681 "units": units, 681 "units": units,
682 "dependencies": dependencies, 682 "dependencies": dependencies,
683 "importDependencies": importDependencies, 683 "importDependencies": importDependencies,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 fb.Offset finish(fb.Builder fbBuilder) { 771 fb.Offset finish(fb.Builder fbBuilder) {
772 assert(!_finished); 772 assert(!_finished);
773 _finished = true; 773 _finished = true;
774 fb.Offset offset_name; 774 fb.Offset offset_name;
775 if (_name != null) { 775 if (_name != null) {
776 offset_name = fbBuilder.writeString(_name); 776 offset_name = fbBuilder.writeString(_name);
777 } 777 }
778 fbBuilder.startTable(); 778 fbBuilder.startTable();
779 if (_dependency != null && _dependency != 0) { 779 if (_dependency != null && _dependency != 0) {
780 fbBuilder.addInt32(0, _dependency); 780 fbBuilder.addUint32(0, _dependency);
781 } 781 }
782 if (_kind != null && _kind != ReferenceKind.classOrEnum) { 782 if (_kind != null && _kind != ReferenceKind.classOrEnum) {
783 fbBuilder.addInt32(1, _kind.index); 783 fbBuilder.addUint32(1, _kind.index);
784 } 784 }
785 if (_unit != null && _unit != 0) { 785 if (_unit != null && _unit != 0) {
786 fbBuilder.addInt32(2, _unit); 786 fbBuilder.addUint32(2, _unit);
787 } 787 }
788 if (_numTypeParameters != null && _numTypeParameters != 0) { 788 if (_numTypeParameters != null && _numTypeParameters != 0) {
789 fbBuilder.addInt32(3, _numTypeParameters); 789 fbBuilder.addUint32(3, _numTypeParameters);
790 } 790 }
791 if (offset_name != null) { 791 if (offset_name != null) {
792 fbBuilder.addOffset(4, offset_name); 792 fbBuilder.addOffset(4, offset_name);
793 } 793 }
794 return fbBuilder.endTable(); 794 return fbBuilder.endTable();
795 } 795 }
796 } 796 }
797 797
798 /** 798 /**
799 * Information about the resolution of an [UnlinkedReference]. 799 * Information about the resolution of an [UnlinkedReference].
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 _LinkedReferenceImpl(this._bp); 847 _LinkedReferenceImpl(this._bp);
848 848
849 int _dependency; 849 int _dependency;
850 ReferenceKind _kind; 850 ReferenceKind _kind;
851 int _unit; 851 int _unit;
852 int _numTypeParameters; 852 int _numTypeParameters;
853 String _name; 853 String _name;
854 854
855 @override 855 @override
856 int get dependency { 856 int get dependency {
857 _dependency ??= const fb.Int32Reader().vTableGet(_bp, 0, 0); 857 _dependency ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0);
858 return _dependency; 858 return _dependency;
859 } 859 }
860 860
861 @override 861 @override
862 ReferenceKind get kind { 862 ReferenceKind get kind {
863 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 1, ReferenceKind.class OrEnum); 863 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 1, ReferenceKind.class OrEnum);
864 return _kind; 864 return _kind;
865 } 865 }
866 866
867 @override 867 @override
868 int get unit { 868 int get unit {
869 _unit ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 869 _unit ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
870 return _unit; 870 return _unit;
871 } 871 }
872 872
873 @override 873 @override
874 int get numTypeParameters { 874 int get numTypeParameters {
875 _numTypeParameters ??= const fb.Int32Reader().vTableGet(_bp, 3, 0); 875 _numTypeParameters ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0);
876 return _numTypeParameters; 876 return _numTypeParameters;
877 } 877 }
878 878
879 @override 879 @override
880 String get name { 880 String get name {
881 _name ??= const fb.StringReader().vTableGet(_bp, 4, ''); 881 _name ??= const fb.StringReader().vTableGet(_bp, 4, '');
882 return _name; 882 return _name;
883 } 883 }
884 } 884 }
885 885
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 int _reference; 1200 int _reference;
1201 int _paramReference; 1201 int _paramReference;
1202 List<TypeRefBuilder> _typeArguments; 1202 List<TypeRefBuilder> _typeArguments;
1203 1203
1204 @override 1204 @override
1205 int get slot => _slot ?? 0; 1205 int get slot => _slot ?? 0;
1206 1206
1207 /** 1207 /**
1208 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which 1208 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which
1209 * is unique within the compilation unit) identifying the target of type 1209 * is unique within the compilation unit) identifying the target of type
1210 * propagation or type inference with which this [TypeRef] is asociated. 1210 * propagation or type inference with which this [TypeRef] is associated.
1211 * 1211 *
1212 * Otherwise zero. 1212 * Otherwise zero.
1213 */ 1213 */
1214 void set slot(int _value) { 1214 void set slot(int _value) {
1215 assert(!_finished); 1215 assert(!_finished);
1216 assert(_value == null || _value >= 0); 1216 assert(_value == null || _value >= 0);
1217 _slot = _value; 1217 _slot = _value;
1218 } 1218 }
1219 1219
1220 @override 1220 @override
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 1284
1285 fb.Offset finish(fb.Builder fbBuilder) { 1285 fb.Offset finish(fb.Builder fbBuilder) {
1286 assert(!_finished); 1286 assert(!_finished);
1287 _finished = true; 1287 _finished = true;
1288 fb.Offset offset_typeArguments; 1288 fb.Offset offset_typeArguments;
1289 if (!(_typeArguments == null || _typeArguments.isEmpty)) { 1289 if (!(_typeArguments == null || _typeArguments.isEmpty)) {
1290 offset_typeArguments = fbBuilder.writeList(_typeArguments.map((b) => b.fin ish(fbBuilder)).toList()); 1290 offset_typeArguments = fbBuilder.writeList(_typeArguments.map((b) => b.fin ish(fbBuilder)).toList());
1291 } 1291 }
1292 fbBuilder.startTable(); 1292 fbBuilder.startTable();
1293 if (_slot != null && _slot != 0) { 1293 if (_slot != null && _slot != 0) {
1294 fbBuilder.addInt32(0, _slot); 1294 fbBuilder.addUint32(0, _slot);
1295 } 1295 }
1296 if (_reference != null && _reference != 0) { 1296 if (_reference != null && _reference != 0) {
1297 fbBuilder.addInt32(1, _reference); 1297 fbBuilder.addUint32(1, _reference);
1298 } 1298 }
1299 if (_paramReference != null && _paramReference != 0) { 1299 if (_paramReference != null && _paramReference != 0) {
1300 fbBuilder.addInt32(2, _paramReference); 1300 fbBuilder.addUint32(2, _paramReference);
1301 } 1301 }
1302 if (offset_typeArguments != null) { 1302 if (offset_typeArguments != null) {
1303 fbBuilder.addOffset(3, offset_typeArguments); 1303 fbBuilder.addOffset(3, offset_typeArguments);
1304 } 1304 }
1305 return fbBuilder.endTable(); 1305 return fbBuilder.endTable();
1306 } 1306 }
1307 } 1307 }
1308 1308
1309 /** 1309 /**
1310 * Summary information about a reference to a type. 1310 * Summary information about a reference to a type.
1311 */ 1311 */
1312 abstract class TypeRef extends base.SummaryClass { 1312 abstract class TypeRef extends base.SummaryClass {
1313 1313
1314 /** 1314 /**
1315 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which 1315 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which
1316 * is unique within the compilation unit) identifying the target of type 1316 * is unique within the compilation unit) identifying the target of type
1317 * propagation or type inference with which this [TypeRef] is asociated. 1317 * propagation or type inference with which this [TypeRef] is associated.
1318 * 1318 *
1319 * Otherwise zero. 1319 * Otherwise zero.
1320 */ 1320 */
1321 int get slot; 1321 int get slot;
1322 1322
1323 /** 1323 /**
1324 * Index into [UnlinkedUnit.references] for the type being referred to, or 1324 * Index into [UnlinkedUnit.references] for the type being referred to, or
1325 * zero if this is a reference to a type parameter. 1325 * zero if this is a reference to a type parameter.
1326 * 1326 *
1327 * Note that since zero is also a valid index into 1327 * Note that since zero is also a valid index into
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 1372
1373 _TypeRefImpl(this._bp); 1373 _TypeRefImpl(this._bp);
1374 1374
1375 int _slot; 1375 int _slot;
1376 int _reference; 1376 int _reference;
1377 int _paramReference; 1377 int _paramReference;
1378 List<TypeRef> _typeArguments; 1378 List<TypeRef> _typeArguments;
1379 1379
1380 @override 1380 @override
1381 int get slot { 1381 int get slot {
1382 _slot ??= const fb.Int32Reader().vTableGet(_bp, 0, 0); 1382 _slot ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0);
1383 return _slot; 1383 return _slot;
1384 } 1384 }
1385 1385
1386 @override 1386 @override
1387 int get reference { 1387 int get reference {
1388 _reference ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 1388 _reference ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
1389 return _reference; 1389 return _reference;
1390 } 1390 }
1391 1391
1392 @override 1392 @override
1393 int get paramReference { 1393 int get paramReference {
1394 _paramReference ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 1394 _paramReference ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
1395 return _paramReference; 1395 return _paramReference;
1396 } 1396 }
1397 1397
1398 @override 1398 @override
1399 List<TypeRef> get typeArguments { 1399 List<TypeRef> get typeArguments {
1400 _typeArguments ??= const fb.ListReader<TypeRef>(const _TypeRefReader()).vTab leGet(_bp, 3, const <TypeRef>[]); 1400 _typeArguments ??= const fb.ListReader<TypeRef>(const _TypeRefReader()).vTab leGet(_bp, 3, const <TypeRef>[]);
1401 return _typeArguments; 1401 return _typeArguments;
1402 } 1402 }
1403 } 1403 }
1404 1404
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 offset_fields = fbBuilder.writeList(_fields.map((b) => b.finish(fbBuilder) ).toList()); 1612 offset_fields = fbBuilder.writeList(_fields.map((b) => b.finish(fbBuilder) ).toList());
1613 } 1613 }
1614 if (!(_executables == null || _executables.isEmpty)) { 1614 if (!(_executables == null || _executables.isEmpty)) {
1615 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish( fbBuilder)).toList()); 1615 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish( fbBuilder)).toList());
1616 } 1616 }
1617 fbBuilder.startTable(); 1617 fbBuilder.startTable();
1618 if (offset_name != null) { 1618 if (offset_name != null) {
1619 fbBuilder.addOffset(0, offset_name); 1619 fbBuilder.addOffset(0, offset_name);
1620 } 1620 }
1621 if (_nameOffset != null && _nameOffset != 0) { 1621 if (_nameOffset != null && _nameOffset != 0) {
1622 fbBuilder.addInt32(1, _nameOffset); 1622 fbBuilder.addUint32(1, _nameOffset);
1623 } 1623 }
1624 if (offset_documentationComment != null) { 1624 if (offset_documentationComment != null) {
1625 fbBuilder.addOffset(2, offset_documentationComment); 1625 fbBuilder.addOffset(2, offset_documentationComment);
1626 } 1626 }
1627 if (offset_typeParameters != null) { 1627 if (offset_typeParameters != null) {
1628 fbBuilder.addOffset(3, offset_typeParameters); 1628 fbBuilder.addOffset(3, offset_typeParameters);
1629 } 1629 }
1630 if (offset_supertype != null) { 1630 if (offset_supertype != null) {
1631 fbBuilder.addOffset(4, offset_supertype); 1631 fbBuilder.addOffset(4, offset_supertype);
1632 } 1632 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 bool _hasNoSupertype; 1751 bool _hasNoSupertype;
1752 1752
1753 @override 1753 @override
1754 String get name { 1754 String get name {
1755 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 1755 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
1756 return _name; 1756 return _name;
1757 } 1757 }
1758 1758
1759 @override 1759 @override
1760 int get nameOffset { 1760 int get nameOffset {
1761 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 1761 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
1762 return _nameOffset; 1762 return _nameOffset;
1763 } 1763 }
1764 1764
1765 @override 1765 @override
1766 UnlinkedDocumentationComment get documentationComment { 1766 UnlinkedDocumentationComment get documentationComment {
1767 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 1767 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
1768 return _documentationComment; 1768 return _documentationComment;
1769 } 1769 }
1770 1770
1771 @override 1771 @override
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 2029
2030 fb.Offset finish(fb.Builder fbBuilder) { 2030 fb.Offset finish(fb.Builder fbBuilder) {
2031 assert(!_finished); 2031 assert(!_finished);
2032 _finished = true; 2032 _finished = true;
2033 fb.Offset offset_operations; 2033 fb.Offset offset_operations;
2034 fb.Offset offset_ints; 2034 fb.Offset offset_ints;
2035 fb.Offset offset_doubles; 2035 fb.Offset offset_doubles;
2036 fb.Offset offset_strings; 2036 fb.Offset offset_strings;
2037 fb.Offset offset_references; 2037 fb.Offset offset_references;
2038 if (!(_operations == null || _operations.isEmpty)) { 2038 if (!(_operations == null || _operations.isEmpty)) {
2039 offset_operations = fbBuilder.writeListInt32(_operations.map((b) => b.inde x).toList()); 2039 offset_operations = fbBuilder.writeListUint32(_operations.map((b) => b.ind ex).toList());
2040 } 2040 }
2041 if (!(_ints == null || _ints.isEmpty)) { 2041 if (!(_ints == null || _ints.isEmpty)) {
2042 offset_ints = fbBuilder.writeListInt32(_ints); 2042 offset_ints = fbBuilder.writeListUint32(_ints);
2043 } 2043 }
2044 if (!(_doubles == null || _doubles.isEmpty)) { 2044 if (!(_doubles == null || _doubles.isEmpty)) {
2045 offset_doubles = fbBuilder.writeListFloat64(_doubles); 2045 offset_doubles = fbBuilder.writeListFloat64(_doubles);
2046 } 2046 }
2047 if (!(_strings == null || _strings.isEmpty)) { 2047 if (!(_strings == null || _strings.isEmpty)) {
2048 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt ring(b)).toList()); 2048 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt ring(b)).toList());
2049 } 2049 }
2050 if (!(_references == null || _references.isEmpty)) { 2050 if (!(_references == null || _references.isEmpty)) {
2051 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb Builder)).toList()); 2051 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb Builder)).toList());
2052 } 2052 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 List<TypeRef> _references; 2134 List<TypeRef> _references;
2135 2135
2136 @override 2136 @override
2137 List<UnlinkedConstOperation> get operations { 2137 List<UnlinkedConstOperation> get operations {
2138 _operations ??= const fb.ListReader<UnlinkedConstOperation>(const _UnlinkedC onstOperationReader()).vTableGet(_bp, 0, const <UnlinkedConstOperation>[]); 2138 _operations ??= const fb.ListReader<UnlinkedConstOperation>(const _UnlinkedC onstOperationReader()).vTableGet(_bp, 0, const <UnlinkedConstOperation>[]);
2139 return _operations; 2139 return _operations;
2140 } 2140 }
2141 2141
2142 @override 2142 @override
2143 List<int> get ints { 2143 List<int> get ints {
2144 _ints ??= const fb.ListReader<int>(const fb.Int32Reader()).vTableGet(_bp, 1, const <int>[]); 2144 _ints ??= const fb.ListReader<int>(const fb.Uint32Reader()).vTableGet(_bp, 1 , const <int>[]);
2145 return _ints; 2145 return _ints;
2146 } 2146 }
2147 2147
2148 @override 2148 @override
2149 List<double> get doubles { 2149 List<double> get doubles {
2150 _doubles ??= const fb.Float64ListReader().vTableGet(_bp, 2, const <double>[] ); 2150 _doubles ??= const fb.Float64ListReader().vTableGet(_bp, 2, const <double>[] );
2151 return _doubles; 2151 return _doubles;
2152 } 2152 }
2153 2153
2154 @override 2154 @override
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 _finished = true; 2231 _finished = true;
2232 fb.Offset offset_text; 2232 fb.Offset offset_text;
2233 if (_text != null) { 2233 if (_text != null) {
2234 offset_text = fbBuilder.writeString(_text); 2234 offset_text = fbBuilder.writeString(_text);
2235 } 2235 }
2236 fbBuilder.startTable(); 2236 fbBuilder.startTable();
2237 if (offset_text != null) { 2237 if (offset_text != null) {
2238 fbBuilder.addOffset(0, offset_text); 2238 fbBuilder.addOffset(0, offset_text);
2239 } 2239 }
2240 if (_offset != null && _offset != 0) { 2240 if (_offset != null && _offset != 0) {
2241 fbBuilder.addInt32(1, _offset); 2241 fbBuilder.addUint32(1, _offset);
2242 } 2242 }
2243 if (_length != null && _length != 0) { 2243 if (_length != null && _length != 0) {
2244 fbBuilder.addInt32(2, _length); 2244 fbBuilder.addUint32(2, _length);
2245 } 2245 }
2246 return fbBuilder.endTable(); 2246 return fbBuilder.endTable();
2247 } 2247 }
2248 } 2248 }
2249 2249
2250 /** 2250 /**
2251 * Unlinked summary information about a documentation comment. 2251 * Unlinked summary information about a documentation comment.
2252 */ 2252 */
2253 abstract class UnlinkedDocumentationComment extends base.SummaryClass { 2253 abstract class UnlinkedDocumentationComment extends base.SummaryClass {
2254 2254
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 int _length; 2289 int _length;
2290 2290
2291 @override 2291 @override
2292 String get text { 2292 String get text {
2293 _text ??= const fb.StringReader().vTableGet(_bp, 0, ''); 2293 _text ??= const fb.StringReader().vTableGet(_bp, 0, '');
2294 return _text; 2294 return _text;
2295 } 2295 }
2296 2296
2297 @override 2297 @override
2298 int get offset { 2298 int get offset {
2299 _offset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 2299 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
2300 return _offset; 2300 return _offset;
2301 } 2301 }
2302 2302
2303 @override 2303 @override
2304 int get length { 2304 int get length {
2305 _length ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 2305 _length ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
2306 return _length; 2306 return _length;
2307 } 2307 }
2308 } 2308 }
2309 2309
2310 abstract class _UnlinkedDocumentationCommentMixin implements UnlinkedDocumentati onComment { 2310 abstract class _UnlinkedDocumentationCommentMixin implements UnlinkedDocumentati onComment {
2311 @override 2311 @override
2312 Map<String, Object> toMap() => { 2312 Map<String, Object> toMap() => {
2313 "text": text, 2313 "text": text,
2314 "offset": offset, 2314 "offset": offset,
2315 "length": length, 2315 "length": length,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 offset_documentationComment = _documentationComment.finish(fbBuilder); 2389 offset_documentationComment = _documentationComment.finish(fbBuilder);
2390 } 2390 }
2391 if (!(_values == null || _values.isEmpty)) { 2391 if (!(_values == null || _values.isEmpty)) {
2392 offset_values = fbBuilder.writeList(_values.map((b) => b.finish(fbBuilder) ).toList()); 2392 offset_values = fbBuilder.writeList(_values.map((b) => b.finish(fbBuilder) ).toList());
2393 } 2393 }
2394 fbBuilder.startTable(); 2394 fbBuilder.startTable();
2395 if (offset_name != null) { 2395 if (offset_name != null) {
2396 fbBuilder.addOffset(0, offset_name); 2396 fbBuilder.addOffset(0, offset_name);
2397 } 2397 }
2398 if (_nameOffset != null && _nameOffset != 0) { 2398 if (_nameOffset != null && _nameOffset != 0) {
2399 fbBuilder.addInt32(1, _nameOffset); 2399 fbBuilder.addUint32(1, _nameOffset);
2400 } 2400 }
2401 if (offset_documentationComment != null) { 2401 if (offset_documentationComment != null) {
2402 fbBuilder.addOffset(2, offset_documentationComment); 2402 fbBuilder.addOffset(2, offset_documentationComment);
2403 } 2403 }
2404 if (offset_values != null) { 2404 if (offset_values != null) {
2405 fbBuilder.addOffset(3, offset_values); 2405 fbBuilder.addOffset(3, offset_values);
2406 } 2406 }
2407 return fbBuilder.endTable(); 2407 return fbBuilder.endTable();
2408 } 2408 }
2409 } 2409 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 List<UnlinkedEnumValue> _values; 2453 List<UnlinkedEnumValue> _values;
2454 2454
2455 @override 2455 @override
2456 String get name { 2456 String get name {
2457 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 2457 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
2458 return _name; 2458 return _name;
2459 } 2459 }
2460 2460
2461 @override 2461 @override
2462 int get nameOffset { 2462 int get nameOffset {
2463 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 2463 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
2464 return _nameOffset; 2464 return _nameOffset;
2465 } 2465 }
2466 2466
2467 @override 2467 @override
2468 UnlinkedDocumentationComment get documentationComment { 2468 UnlinkedDocumentationComment get documentationComment {
2469 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 2469 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
2470 return _documentationComment; 2470 return _documentationComment;
2471 } 2471 }
2472 2472
2473 @override 2473 @override
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 offset_name = fbBuilder.writeString(_name); 2543 offset_name = fbBuilder.writeString(_name);
2544 } 2544 }
2545 if (_documentationComment != null) { 2545 if (_documentationComment != null) {
2546 offset_documentationComment = _documentationComment.finish(fbBuilder); 2546 offset_documentationComment = _documentationComment.finish(fbBuilder);
2547 } 2547 }
2548 fbBuilder.startTable(); 2548 fbBuilder.startTable();
2549 if (offset_name != null) { 2549 if (offset_name != null) {
2550 fbBuilder.addOffset(0, offset_name); 2550 fbBuilder.addOffset(0, offset_name);
2551 } 2551 }
2552 if (_nameOffset != null && _nameOffset != 0) { 2552 if (_nameOffset != null && _nameOffset != 0) {
2553 fbBuilder.addInt32(1, _nameOffset); 2553 fbBuilder.addUint32(1, _nameOffset);
2554 } 2554 }
2555 if (offset_documentationComment != null) { 2555 if (offset_documentationComment != null) {
2556 fbBuilder.addOffset(2, offset_documentationComment); 2556 fbBuilder.addOffset(2, offset_documentationComment);
2557 } 2557 }
2558 return fbBuilder.endTable(); 2558 return fbBuilder.endTable();
2559 } 2559 }
2560 } 2560 }
2561 2561
2562 /** 2562 /**
2563 * Unlinked summary information about a single enumerated value in an enum 2563 * Unlinked summary information about a single enumerated value in an enum
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 UnlinkedDocumentationComment _documentationComment; 2599 UnlinkedDocumentationComment _documentationComment;
2600 2600
2601 @override 2601 @override
2602 String get name { 2602 String get name {
2603 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 2603 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
2604 return _name; 2604 return _name;
2605 } 2605 }
2606 2606
2607 @override 2607 @override
2608 int get nameOffset { 2608 int get nameOffset {
2609 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 2609 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
2610 return _nameOffset; 2610 return _nameOffset;
2611 } 2611 }
2612 2612
2613 @override 2613 @override
2614 UnlinkedDocumentationComment get documentationComment { 2614 UnlinkedDocumentationComment get documentationComment {
2615 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 2615 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
2616 return _documentationComment; 2616 return _documentationComment;
2617 } 2617 }
2618 } 2618 }
2619 2619
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 offset_returnType = _returnType.finish(fbBuilder); 2840 offset_returnType = _returnType.finish(fbBuilder);
2841 } 2841 }
2842 if (!(_parameters == null || _parameters.isEmpty)) { 2842 if (!(_parameters == null || _parameters.isEmpty)) {
2843 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList()); 2843 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList());
2844 } 2844 }
2845 fbBuilder.startTable(); 2845 fbBuilder.startTable();
2846 if (offset_name != null) { 2846 if (offset_name != null) {
2847 fbBuilder.addOffset(0, offset_name); 2847 fbBuilder.addOffset(0, offset_name);
2848 } 2848 }
2849 if (_nameOffset != null && _nameOffset != 0) { 2849 if (_nameOffset != null && _nameOffset != 0) {
2850 fbBuilder.addInt32(1, _nameOffset); 2850 fbBuilder.addUint32(1, _nameOffset);
2851 } 2851 }
2852 if (offset_documentationComment != null) { 2852 if (offset_documentationComment != null) {
2853 fbBuilder.addOffset(2, offset_documentationComment); 2853 fbBuilder.addOffset(2, offset_documentationComment);
2854 } 2854 }
2855 if (offset_typeParameters != null) { 2855 if (offset_typeParameters != null) {
2856 fbBuilder.addOffset(3, offset_typeParameters); 2856 fbBuilder.addOffset(3, offset_typeParameters);
2857 } 2857 }
2858 if (offset_returnType != null) { 2858 if (offset_returnType != null) {
2859 fbBuilder.addOffset(4, offset_returnType); 2859 fbBuilder.addOffset(4, offset_returnType);
2860 } 2860 }
2861 if (offset_parameters != null) { 2861 if (offset_parameters != null) {
2862 fbBuilder.addOffset(5, offset_parameters); 2862 fbBuilder.addOffset(5, offset_parameters);
2863 } 2863 }
2864 if (_kind != null && _kind != UnlinkedExecutableKind.functionOrMethod) { 2864 if (_kind != null && _kind != UnlinkedExecutableKind.functionOrMethod) {
2865 fbBuilder.addInt32(6, _kind.index); 2865 fbBuilder.addUint32(6, _kind.index);
2866 } 2866 }
2867 if (_isAbstract == true) { 2867 if (_isAbstract == true) {
2868 fbBuilder.addBool(7, true); 2868 fbBuilder.addBool(7, true);
2869 } 2869 }
2870 if (_isStatic == true) { 2870 if (_isStatic == true) {
2871 fbBuilder.addBool(8, true); 2871 fbBuilder.addBool(8, true);
2872 } 2872 }
2873 if (_isConst == true) { 2873 if (_isConst == true) {
2874 fbBuilder.addBool(9, true); 2874 fbBuilder.addBool(9, true);
2875 } 2875 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 bool _isExternal; 3002 bool _isExternal;
3003 3003
3004 @override 3004 @override
3005 String get name { 3005 String get name {
3006 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 3006 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
3007 return _name; 3007 return _name;
3008 } 3008 }
3009 3009
3010 @override 3010 @override
3011 int get nameOffset { 3011 int get nameOffset {
3012 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 3012 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
3013 return _nameOffset; 3013 return _nameOffset;
3014 } 3014 }
3015 3015
3016 @override 3016 @override
3017 UnlinkedDocumentationComment get documentationComment { 3017 UnlinkedDocumentationComment get documentationComment {
3018 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 3018 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
3019 return _documentationComment; 3019 return _documentationComment;
3020 } 3020 }
3021 3021
3022 @override 3022 @override
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3147 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd}) 3147 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd})
3148 : _offset = offset, 3148 : _offset = offset,
3149 _uriOffset = uriOffset, 3149 _uriOffset = uriOffset,
3150 _uriEnd = uriEnd; 3150 _uriEnd = uriEnd;
3151 3151
3152 fb.Offset finish(fb.Builder fbBuilder) { 3152 fb.Offset finish(fb.Builder fbBuilder) {
3153 assert(!_finished); 3153 assert(!_finished);
3154 _finished = true; 3154 _finished = true;
3155 fbBuilder.startTable(); 3155 fbBuilder.startTable();
3156 if (_offset != null && _offset != 0) { 3156 if (_offset != null && _offset != 0) {
3157 fbBuilder.addInt32(0, _offset); 3157 fbBuilder.addUint32(0, _offset);
3158 } 3158 }
3159 if (_uriOffset != null && _uriOffset != 0) { 3159 if (_uriOffset != null && _uriOffset != 0) {
3160 fbBuilder.addInt32(1, _uriOffset); 3160 fbBuilder.addUint32(1, _uriOffset);
3161 } 3161 }
3162 if (_uriEnd != null && _uriEnd != 0) { 3162 if (_uriEnd != null && _uriEnd != 0) {
3163 fbBuilder.addInt32(2, _uriEnd); 3163 fbBuilder.addUint32(2, _uriEnd);
3164 } 3164 }
3165 return fbBuilder.endTable(); 3165 return fbBuilder.endTable();
3166 } 3166 }
3167 } 3167 }
3168 3168
3169 /** 3169 /**
3170 * Unlinked summary information about an export declaration (stored outside 3170 * Unlinked summary information about an export declaration (stored outside
3171 * [UnlinkedPublicNamespace]). 3171 * [UnlinkedPublicNamespace]).
3172 */ 3172 */
3173 abstract class UnlinkedExportNonPublic extends base.SummaryClass { 3173 abstract class UnlinkedExportNonPublic extends base.SummaryClass {
(...skipping 27 matching lines...) Expand all
3201 final fb.BufferPointer _bp; 3201 final fb.BufferPointer _bp;
3202 3202
3203 _UnlinkedExportNonPublicImpl(this._bp); 3203 _UnlinkedExportNonPublicImpl(this._bp);
3204 3204
3205 int _offset; 3205 int _offset;
3206 int _uriOffset; 3206 int _uriOffset;
3207 int _uriEnd; 3207 int _uriEnd;
3208 3208
3209 @override 3209 @override
3210 int get offset { 3210 int get offset {
3211 _offset ??= const fb.Int32Reader().vTableGet(_bp, 0, 0); 3211 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0);
3212 return _offset; 3212 return _offset;
3213 } 3213 }
3214 3214
3215 @override 3215 @override
3216 int get uriOffset { 3216 int get uriOffset {
3217 _uriOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 3217 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
3218 return _uriOffset; 3218 return _uriOffset;
3219 } 3219 }
3220 3220
3221 @override 3221 @override
3222 int get uriEnd { 3222 int get uriEnd {
3223 _uriEnd ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 3223 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
3224 return _uriEnd; 3224 return _uriEnd;
3225 } 3225 }
3226 } 3226 }
3227 3227
3228 abstract class _UnlinkedExportNonPublicMixin implements UnlinkedExportNonPublic { 3228 abstract class _UnlinkedExportNonPublicMixin implements UnlinkedExportNonPublic {
3229 @override 3229 @override
3230 Map<String, Object> toMap() => { 3230 Map<String, Object> toMap() => {
3231 "offset": offset, 3231 "offset": offset,
3232 "uriOffset": uriOffset, 3232 "uriOffset": uriOffset,
3233 "uriEnd": uriEnd, 3233 "uriEnd": uriEnd,
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
3485 offset_uri = fbBuilder.writeString(_uri); 3485 offset_uri = fbBuilder.writeString(_uri);
3486 } 3486 }
3487 if (!(_combinators == null || _combinators.isEmpty)) { 3487 if (!(_combinators == null || _combinators.isEmpty)) {
3488 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish( fbBuilder)).toList()); 3488 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish( fbBuilder)).toList());
3489 } 3489 }
3490 fbBuilder.startTable(); 3490 fbBuilder.startTable();
3491 if (offset_uri != null) { 3491 if (offset_uri != null) {
3492 fbBuilder.addOffset(0, offset_uri); 3492 fbBuilder.addOffset(0, offset_uri);
3493 } 3493 }
3494 if (_offset != null && _offset != 0) { 3494 if (_offset != null && _offset != 0) {
3495 fbBuilder.addInt32(1, _offset); 3495 fbBuilder.addUint32(1, _offset);
3496 } 3496 }
3497 if (_prefixReference != null && _prefixReference != 0) { 3497 if (_prefixReference != null && _prefixReference != 0) {
3498 fbBuilder.addInt32(2, _prefixReference); 3498 fbBuilder.addUint32(2, _prefixReference);
3499 } 3499 }
3500 if (offset_combinators != null) { 3500 if (offset_combinators != null) {
3501 fbBuilder.addOffset(3, offset_combinators); 3501 fbBuilder.addOffset(3, offset_combinators);
3502 } 3502 }
3503 if (_isDeferred == true) { 3503 if (_isDeferred == true) {
3504 fbBuilder.addBool(4, true); 3504 fbBuilder.addBool(4, true);
3505 } 3505 }
3506 if (_isImplicit == true) { 3506 if (_isImplicit == true) {
3507 fbBuilder.addBool(5, true); 3507 fbBuilder.addBool(5, true);
3508 } 3508 }
3509 if (_uriOffset != null && _uriOffset != 0) { 3509 if (_uriOffset != null && _uriOffset != 0) {
3510 fbBuilder.addInt32(6, _uriOffset); 3510 fbBuilder.addUint32(6, _uriOffset);
3511 } 3511 }
3512 if (_uriEnd != null && _uriEnd != 0) { 3512 if (_uriEnd != null && _uriEnd != 0) {
3513 fbBuilder.addInt32(7, _uriEnd); 3513 fbBuilder.addUint32(7, _uriEnd);
3514 } 3514 }
3515 if (_prefixOffset != null && _prefixOffset != 0) { 3515 if (_prefixOffset != null && _prefixOffset != 0) {
3516 fbBuilder.addInt32(8, _prefixOffset); 3516 fbBuilder.addUint32(8, _prefixOffset);
3517 } 3517 }
3518 return fbBuilder.endTable(); 3518 return fbBuilder.endTable();
3519 } 3519 }
3520 } 3520 }
3521 3521
3522 /** 3522 /**
3523 * Unlinked summary information about an import declaration. 3523 * Unlinked summary information about an import declaration.
3524 */ 3524 */
3525 abstract class UnlinkedImport extends base.SummaryClass { 3525 abstract class UnlinkedImport extends base.SummaryClass {
3526 3526
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
3600 int _prefixOffset; 3600 int _prefixOffset;
3601 3601
3602 @override 3602 @override
3603 String get uri { 3603 String get uri {
3604 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); 3604 _uri ??= const fb.StringReader().vTableGet(_bp, 0, '');
3605 return _uri; 3605 return _uri;
3606 } 3606 }
3607 3607
3608 @override 3608 @override
3609 int get offset { 3609 int get offset {
3610 _offset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 3610 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
3611 return _offset; 3611 return _offset;
3612 } 3612 }
3613 3613
3614 @override 3614 @override
3615 int get prefixReference { 3615 int get prefixReference {
3616 _prefixReference ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 3616 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
3617 return _prefixReference; 3617 return _prefixReference;
3618 } 3618 }
3619 3619
3620 @override 3620 @override
3621 List<UnlinkedCombinator> get combinators { 3621 List<UnlinkedCombinator> get combinators {
3622 _combinators ??= const fb.ListReader<UnlinkedCombinator>(const _UnlinkedComb inatorReader()).vTableGet(_bp, 3, const <UnlinkedCombinator>[]); 3622 _combinators ??= const fb.ListReader<UnlinkedCombinator>(const _UnlinkedComb inatorReader()).vTableGet(_bp, 3, const <UnlinkedCombinator>[]);
3623 return _combinators; 3623 return _combinators;
3624 } 3624 }
3625 3625
3626 @override 3626 @override
3627 bool get isDeferred { 3627 bool get isDeferred {
3628 _isDeferred ??= const fb.BoolReader().vTableGet(_bp, 4, false); 3628 _isDeferred ??= const fb.BoolReader().vTableGet(_bp, 4, false);
3629 return _isDeferred; 3629 return _isDeferred;
3630 } 3630 }
3631 3631
3632 @override 3632 @override
3633 bool get isImplicit { 3633 bool get isImplicit {
3634 _isImplicit ??= const fb.BoolReader().vTableGet(_bp, 5, false); 3634 _isImplicit ??= const fb.BoolReader().vTableGet(_bp, 5, false);
3635 return _isImplicit; 3635 return _isImplicit;
3636 } 3636 }
3637 3637
3638 @override 3638 @override
3639 int get uriOffset { 3639 int get uriOffset {
3640 _uriOffset ??= const fb.Int32Reader().vTableGet(_bp, 6, 0); 3640 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 6, 0);
3641 return _uriOffset; 3641 return _uriOffset;
3642 } 3642 }
3643 3643
3644 @override 3644 @override
3645 int get uriEnd { 3645 int get uriEnd {
3646 _uriEnd ??= const fb.Int32Reader().vTableGet(_bp, 7, 0); 3646 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 7, 0);
3647 return _uriEnd; 3647 return _uriEnd;
3648 } 3648 }
3649 3649
3650 @override 3650 @override
3651 int get prefixOffset { 3651 int get prefixOffset {
3652 _prefixOffset ??= const fb.Int32Reader().vTableGet(_bp, 8, 0); 3652 _prefixOffset ??= const fb.Uint32Reader().vTableGet(_bp, 8, 0);
3653 return _prefixOffset; 3653 return _prefixOffset;
3654 } 3654 }
3655 } 3655 }
3656 3656
3657 abstract class _UnlinkedImportMixin implements UnlinkedImport { 3657 abstract class _UnlinkedImportMixin implements UnlinkedImport {
3658 @override 3658 @override
3659 Map<String, Object> toMap() => { 3659 Map<String, Object> toMap() => {
3660 "uri": uri, 3660 "uri": uri,
3661 "offset": offset, 3661 "offset": offset,
3662 "prefixReference": prefixReference, 3662 "prefixReference": prefixReference,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
3799 offset_type = _type.finish(fbBuilder); 3799 offset_type = _type.finish(fbBuilder);
3800 } 3800 }
3801 if (!(_parameters == null || _parameters.isEmpty)) { 3801 if (!(_parameters == null || _parameters.isEmpty)) {
3802 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList()); 3802 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList());
3803 } 3803 }
3804 fbBuilder.startTable(); 3804 fbBuilder.startTable();
3805 if (offset_name != null) { 3805 if (offset_name != null) {
3806 fbBuilder.addOffset(0, offset_name); 3806 fbBuilder.addOffset(0, offset_name);
3807 } 3807 }
3808 if (_nameOffset != null && _nameOffset != 0) { 3808 if (_nameOffset != null && _nameOffset != 0) {
3809 fbBuilder.addInt32(1, _nameOffset); 3809 fbBuilder.addUint32(1, _nameOffset);
3810 } 3810 }
3811 if (offset_type != null) { 3811 if (offset_type != null) {
3812 fbBuilder.addOffset(2, offset_type); 3812 fbBuilder.addOffset(2, offset_type);
3813 } 3813 }
3814 if (offset_parameters != null) { 3814 if (offset_parameters != null) {
3815 fbBuilder.addOffset(3, offset_parameters); 3815 fbBuilder.addOffset(3, offset_parameters);
3816 } 3816 }
3817 if (_kind != null && _kind != UnlinkedParamKind.required) { 3817 if (_kind != null && _kind != UnlinkedParamKind.required) {
3818 fbBuilder.addInt32(4, _kind.index); 3818 fbBuilder.addUint32(4, _kind.index);
3819 } 3819 }
3820 if (_isFunctionTyped == true) { 3820 if (_isFunctionTyped == true) {
3821 fbBuilder.addBool(5, true); 3821 fbBuilder.addBool(5, true);
3822 } 3822 }
3823 if (_isInitializingFormal == true) { 3823 if (_isInitializingFormal == true) {
3824 fbBuilder.addBool(6, true); 3824 fbBuilder.addBool(6, true);
3825 } 3825 }
3826 if (_hasImplicitType == true) { 3826 if (_hasImplicitType == true) {
3827 fbBuilder.addBool(7, true); 3827 fbBuilder.addBool(7, true);
3828 } 3828 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
3904 bool _hasImplicitType; 3904 bool _hasImplicitType;
3905 3905
3906 @override 3906 @override
3907 String get name { 3907 String get name {
3908 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 3908 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
3909 return _name; 3909 return _name;
3910 } 3910 }
3911 3911
3912 @override 3912 @override
3913 int get nameOffset { 3913 int get nameOffset {
3914 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 3914 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
3915 return _nameOffset; 3915 return _nameOffset;
3916 } 3916 }
3917 3917
3918 @override 3918 @override
3919 TypeRef get type { 3919 TypeRef get type {
3920 _type ??= const _TypeRefReader().vTableGet(_bp, 2, null); 3920 _type ??= const _TypeRefReader().vTableGet(_bp, 2, null);
3921 return _type; 3921 return _type;
3922 } 3922 }
3923 3923
3924 @override 3924 @override
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
4000 4000
4001 UnlinkedPartBuilder({int uriOffset, int uriEnd}) 4001 UnlinkedPartBuilder({int uriOffset, int uriEnd})
4002 : _uriOffset = uriOffset, 4002 : _uriOffset = uriOffset,
4003 _uriEnd = uriEnd; 4003 _uriEnd = uriEnd;
4004 4004
4005 fb.Offset finish(fb.Builder fbBuilder) { 4005 fb.Offset finish(fb.Builder fbBuilder) {
4006 assert(!_finished); 4006 assert(!_finished);
4007 _finished = true; 4007 _finished = true;
4008 fbBuilder.startTable(); 4008 fbBuilder.startTable();
4009 if (_uriOffset != null && _uriOffset != 0) { 4009 if (_uriOffset != null && _uriOffset != 0) {
4010 fbBuilder.addInt32(0, _uriOffset); 4010 fbBuilder.addUint32(0, _uriOffset);
4011 } 4011 }
4012 if (_uriEnd != null && _uriEnd != 0) { 4012 if (_uriEnd != null && _uriEnd != 0) {
4013 fbBuilder.addInt32(1, _uriEnd); 4013 fbBuilder.addUint32(1, _uriEnd);
4014 } 4014 }
4015 return fbBuilder.endTable(); 4015 return fbBuilder.endTable();
4016 } 4016 }
4017 } 4017 }
4018 4018
4019 /** 4019 /**
4020 * Unlinked summary information about a part declaration. 4020 * Unlinked summary information about a part declaration.
4021 */ 4021 */
4022 abstract class UnlinkedPart extends base.SummaryClass { 4022 abstract class UnlinkedPart extends base.SummaryClass {
4023 4023
(...skipping 20 matching lines...) Expand all
4044 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements Unlink edPart { 4044 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements Unlink edPart {
4045 final fb.BufferPointer _bp; 4045 final fb.BufferPointer _bp;
4046 4046
4047 _UnlinkedPartImpl(this._bp); 4047 _UnlinkedPartImpl(this._bp);
4048 4048
4049 int _uriOffset; 4049 int _uriOffset;
4050 int _uriEnd; 4050 int _uriEnd;
4051 4051
4052 @override 4052 @override
4053 int get uriOffset { 4053 int get uriOffset {
4054 _uriOffset ??= const fb.Int32Reader().vTableGet(_bp, 0, 0); 4054 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0);
4055 return _uriOffset; 4055 return _uriOffset;
4056 } 4056 }
4057 4057
4058 @override 4058 @override
4059 int get uriEnd { 4059 int get uriEnd {
4060 _uriEnd ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 4060 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
4061 return _uriEnd; 4061 return _uriEnd;
4062 } 4062 }
4063 } 4063 }
4064 4064
4065 abstract class _UnlinkedPartMixin implements UnlinkedPart { 4065 abstract class _UnlinkedPartMixin implements UnlinkedPart {
4066 @override 4066 @override
4067 Map<String, Object> toMap() => { 4067 Map<String, Object> toMap() => {
4068 "uriOffset": uriOffset, 4068 "uriOffset": uriOffset,
4069 "uriEnd": uriEnd, 4069 "uriEnd": uriEnd,
4070 }; 4070 };
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
4122 _finished = true; 4122 _finished = true;
4123 fb.Offset offset_name; 4123 fb.Offset offset_name;
4124 if (_name != null) { 4124 if (_name != null) {
4125 offset_name = fbBuilder.writeString(_name); 4125 offset_name = fbBuilder.writeString(_name);
4126 } 4126 }
4127 fbBuilder.startTable(); 4127 fbBuilder.startTable();
4128 if (offset_name != null) { 4128 if (offset_name != null) {
4129 fbBuilder.addOffset(0, offset_name); 4129 fbBuilder.addOffset(0, offset_name);
4130 } 4130 }
4131 if (_kind != null && _kind != ReferenceKind.classOrEnum) { 4131 if (_kind != null && _kind != ReferenceKind.classOrEnum) {
4132 fbBuilder.addInt32(1, _kind.index); 4132 fbBuilder.addUint32(1, _kind.index);
4133 } 4133 }
4134 if (_numTypeParameters != null && _numTypeParameters != 0) { 4134 if (_numTypeParameters != null && _numTypeParameters != 0) {
4135 fbBuilder.addInt32(2, _numTypeParameters); 4135 fbBuilder.addUint32(2, _numTypeParameters);
4136 } 4136 }
4137 return fbBuilder.endTable(); 4137 return fbBuilder.endTable();
4138 } 4138 }
4139 } 4139 }
4140 4140
4141 /** 4141 /**
4142 * Unlinked summary information about a specific name contributed by a 4142 * Unlinked summary information about a specific name contributed by a
4143 * compilation unit to a library's public namespace. 4143 * compilation unit to a library's public namespace.
4144 * 4144 *
4145 * TODO(paulberry): add a count of generic parameters, so that resynthesis 4145 * TODO(paulberry): add a count of generic parameters, so that resynthesis
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 } 4194 }
4195 4195
4196 @override 4196 @override
4197 ReferenceKind get kind { 4197 ReferenceKind get kind {
4198 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 1, ReferenceKind.class OrEnum); 4198 _kind ??= const _ReferenceKindReader().vTableGet(_bp, 1, ReferenceKind.class OrEnum);
4199 return _kind; 4199 return _kind;
4200 } 4200 }
4201 4201
4202 @override 4202 @override
4203 int get numTypeParameters { 4203 int get numTypeParameters {
4204 _numTypeParameters ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 4204 _numTypeParameters ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
4205 return _numTypeParameters; 4205 return _numTypeParameters;
4206 } 4206 }
4207 } 4207 }
4208 4208
4209 abstract class _UnlinkedPublicNameMixin implements UnlinkedPublicName { 4209 abstract class _UnlinkedPublicNameMixin implements UnlinkedPublicName {
4210 @override 4210 @override
4211 Map<String, Object> toMap() => { 4211 Map<String, Object> toMap() => {
4212 "name": name, 4212 "name": name,
4213 "kind": kind, 4213 "kind": kind,
4214 "numTypeParameters": numTypeParameters, 4214 "numTypeParameters": numTypeParameters,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4415 _finished = true; 4415 _finished = true;
4416 fb.Offset offset_name; 4416 fb.Offset offset_name;
4417 if (_name != null) { 4417 if (_name != null) {
4418 offset_name = fbBuilder.writeString(_name); 4418 offset_name = fbBuilder.writeString(_name);
4419 } 4419 }
4420 fbBuilder.startTable(); 4420 fbBuilder.startTable();
4421 if (offset_name != null) { 4421 if (offset_name != null) {
4422 fbBuilder.addOffset(0, offset_name); 4422 fbBuilder.addOffset(0, offset_name);
4423 } 4423 }
4424 if (_prefixReference != null && _prefixReference != 0) { 4424 if (_prefixReference != null && _prefixReference != 0) {
4425 fbBuilder.addInt32(1, _prefixReference); 4425 fbBuilder.addUint32(1, _prefixReference);
4426 } 4426 }
4427 return fbBuilder.endTable(); 4427 return fbBuilder.endTable();
4428 } 4428 }
4429 } 4429 }
4430 4430
4431 /** 4431 /**
4432 * Unlinked summary information about a name referred to in one library that 4432 * Unlinked summary information about a name referred to in one library that
4433 * might be defined in another. 4433 * might be defined in another.
4434 */ 4434 */
4435 abstract class UnlinkedReference extends base.SummaryClass { 4435 abstract class UnlinkedReference extends base.SummaryClass {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
4467 int _prefixReference; 4467 int _prefixReference;
4468 4468
4469 @override 4469 @override
4470 String get name { 4470 String get name {
4471 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 4471 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
4472 return _name; 4472 return _name;
4473 } 4473 }
4474 4474
4475 @override 4475 @override
4476 int get prefixReference { 4476 int get prefixReference {
4477 _prefixReference ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 4477 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
4478 return _prefixReference; 4478 return _prefixReference;
4479 } 4479 }
4480 } 4480 }
4481 4481
4482 abstract class _UnlinkedReferenceMixin implements UnlinkedReference { 4482 abstract class _UnlinkedReferenceMixin implements UnlinkedReference {
4483 @override 4483 @override
4484 Map<String, Object> toMap() => { 4484 Map<String, Object> toMap() => {
4485 "name": name, 4485 "name": name,
4486 "prefixReference": prefixReference, 4486 "prefixReference": prefixReference,
4487 }; 4487 };
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
4594 offset_returnType = _returnType.finish(fbBuilder); 4594 offset_returnType = _returnType.finish(fbBuilder);
4595 } 4595 }
4596 if (!(_parameters == null || _parameters.isEmpty)) { 4596 if (!(_parameters == null || _parameters.isEmpty)) {
4597 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList()); 4597 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList());
4598 } 4598 }
4599 fbBuilder.startTable(); 4599 fbBuilder.startTable();
4600 if (offset_name != null) { 4600 if (offset_name != null) {
4601 fbBuilder.addOffset(0, offset_name); 4601 fbBuilder.addOffset(0, offset_name);
4602 } 4602 }
4603 if (_nameOffset != null && _nameOffset != 0) { 4603 if (_nameOffset != null && _nameOffset != 0) {
4604 fbBuilder.addInt32(1, _nameOffset); 4604 fbBuilder.addUint32(1, _nameOffset);
4605 } 4605 }
4606 if (offset_documentationComment != null) { 4606 if (offset_documentationComment != null) {
4607 fbBuilder.addOffset(2, offset_documentationComment); 4607 fbBuilder.addOffset(2, offset_documentationComment);
4608 } 4608 }
4609 if (offset_typeParameters != null) { 4609 if (offset_typeParameters != null) {
4610 fbBuilder.addOffset(3, offset_typeParameters); 4610 fbBuilder.addOffset(3, offset_typeParameters);
4611 } 4611 }
4612 if (offset_returnType != null) { 4612 if (offset_returnType != null) {
4613 fbBuilder.addOffset(4, offset_returnType); 4613 fbBuilder.addOffset(4, offset_returnType);
4614 } 4614 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
4676 List<UnlinkedParam> _parameters; 4676 List<UnlinkedParam> _parameters;
4677 4677
4678 @override 4678 @override
4679 String get name { 4679 String get name {
4680 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 4680 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
4681 return _name; 4681 return _name;
4682 } 4682 }
4683 4683
4684 @override 4684 @override
4685 int get nameOffset { 4685 int get nameOffset {
4686 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 4686 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
4687 return _nameOffset; 4687 return _nameOffset;
4688 } 4688 }
4689 4689
4690 @override 4690 @override
4691 UnlinkedDocumentationComment get documentationComment { 4691 UnlinkedDocumentationComment get documentationComment {
4692 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 4692 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
4693 return _documentationComment; 4693 return _documentationComment;
4694 } 4694 }
4695 4695
4696 @override 4696 @override
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
4780 offset_name = fbBuilder.writeString(_name); 4780 offset_name = fbBuilder.writeString(_name);
4781 } 4781 }
4782 if (_bound != null) { 4782 if (_bound != null) {
4783 offset_bound = _bound.finish(fbBuilder); 4783 offset_bound = _bound.finish(fbBuilder);
4784 } 4784 }
4785 fbBuilder.startTable(); 4785 fbBuilder.startTable();
4786 if (offset_name != null) { 4786 if (offset_name != null) {
4787 fbBuilder.addOffset(0, offset_name); 4787 fbBuilder.addOffset(0, offset_name);
4788 } 4788 }
4789 if (_nameOffset != null && _nameOffset != 0) { 4789 if (_nameOffset != null && _nameOffset != 0) {
4790 fbBuilder.addInt32(1, _nameOffset); 4790 fbBuilder.addUint32(1, _nameOffset);
4791 } 4791 }
4792 if (offset_bound != null) { 4792 if (offset_bound != null) {
4793 fbBuilder.addOffset(2, offset_bound); 4793 fbBuilder.addOffset(2, offset_bound);
4794 } 4794 }
4795 return fbBuilder.endTable(); 4795 return fbBuilder.endTable();
4796 } 4796 }
4797 } 4797 }
4798 4798
4799 /** 4799 /**
4800 * Unlinked summary information about a type parameter declaration. 4800 * Unlinked summary information about a type parameter declaration.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
4835 TypeRef _bound; 4835 TypeRef _bound;
4836 4836
4837 @override 4837 @override
4838 String get name { 4838 String get name {
4839 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 4839 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
4840 return _name; 4840 return _name;
4841 } 4841 }
4842 4842
4843 @override 4843 @override
4844 int get nameOffset { 4844 int get nameOffset {
4845 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 4845 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
4846 return _nameOffset; 4846 return _nameOffset;
4847 } 4847 }
4848 4848
4849 @override 4849 @override
4850 TypeRef get bound { 4850 TypeRef get bound {
4851 _bound ??= const _TypeRefReader().vTableGet(_bp, 2, null); 4851 _bound ??= const _TypeRefReader().vTableGet(_bp, 2, null);
4852 return _bound; 4852 return _bound;
4853 } 4853 }
4854 } 4854 }
4855 4855
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
5112 offset_typedefs = fbBuilder.writeList(_typedefs.map((b) => b.finish(fbBuil der)).toList()); 5112 offset_typedefs = fbBuilder.writeList(_typedefs.map((b) => b.finish(fbBuil der)).toList());
5113 } 5113 }
5114 if (!(_variables == null || _variables.isEmpty)) { 5114 if (!(_variables == null || _variables.isEmpty)) {
5115 offset_variables = fbBuilder.writeList(_variables.map((b) => b.finish(fbBu ilder)).toList()); 5115 offset_variables = fbBuilder.writeList(_variables.map((b) => b.finish(fbBu ilder)).toList());
5116 } 5116 }
5117 fbBuilder.startTable(); 5117 fbBuilder.startTable();
5118 if (offset_libraryName != null) { 5118 if (offset_libraryName != null) {
5119 fbBuilder.addOffset(0, offset_libraryName); 5119 fbBuilder.addOffset(0, offset_libraryName);
5120 } 5120 }
5121 if (_libraryNameOffset != null && _libraryNameOffset != 0) { 5121 if (_libraryNameOffset != null && _libraryNameOffset != 0) {
5122 fbBuilder.addInt32(1, _libraryNameOffset); 5122 fbBuilder.addUint32(1, _libraryNameOffset);
5123 } 5123 }
5124 if (_libraryNameLength != null && _libraryNameLength != 0) { 5124 if (_libraryNameLength != null && _libraryNameLength != 0) {
5125 fbBuilder.addInt32(2, _libraryNameLength); 5125 fbBuilder.addUint32(2, _libraryNameLength);
5126 } 5126 }
5127 if (offset_libraryDocumentationComment != null) { 5127 if (offset_libraryDocumentationComment != null) {
5128 fbBuilder.addOffset(3, offset_libraryDocumentationComment); 5128 fbBuilder.addOffset(3, offset_libraryDocumentationComment);
5129 } 5129 }
5130 if (offset_publicNamespace != null) { 5130 if (offset_publicNamespace != null) {
5131 fbBuilder.addOffset(4, offset_publicNamespace); 5131 fbBuilder.addOffset(4, offset_publicNamespace);
5132 } 5132 }
5133 if (offset_references != null) { 5133 if (offset_references != null) {
5134 fbBuilder.addOffset(5, offset_references); 5134 fbBuilder.addOffset(5, offset_references);
5135 } 5135 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
5275 List<UnlinkedVariable> _variables; 5275 List<UnlinkedVariable> _variables;
5276 5276
5277 @override 5277 @override
5278 String get libraryName { 5278 String get libraryName {
5279 _libraryName ??= const fb.StringReader().vTableGet(_bp, 0, ''); 5279 _libraryName ??= const fb.StringReader().vTableGet(_bp, 0, '');
5280 return _libraryName; 5280 return _libraryName;
5281 } 5281 }
5282 5282
5283 @override 5283 @override
5284 int get libraryNameOffset { 5284 int get libraryNameOffset {
5285 _libraryNameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 5285 _libraryNameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
5286 return _libraryNameOffset; 5286 return _libraryNameOffset;
5287 } 5287 }
5288 5288
5289 @override 5289 @override
5290 int get libraryNameLength { 5290 int get libraryNameLength {
5291 _libraryNameLength ??= const fb.Int32Reader().vTableGet(_bp, 2, 0); 5291 _libraryNameLength ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0);
5292 return _libraryNameLength; 5292 return _libraryNameLength;
5293 } 5293 }
5294 5294
5295 @override 5295 @override
5296 UnlinkedDocumentationComment get libraryDocumentationComment { 5296 UnlinkedDocumentationComment get libraryDocumentationComment {
5297 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader() .vTableGet(_bp, 3, null); 5297 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader() .vTableGet(_bp, 3, null);
5298 return _libraryDocumentationComment; 5298 return _libraryDocumentationComment;
5299 } 5299 }
5300 5300
5301 @override 5301 @override
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
5546 offset_type = _type.finish(fbBuilder); 5546 offset_type = _type.finish(fbBuilder);
5547 } 5547 }
5548 if (_constExpr != null) { 5548 if (_constExpr != null) {
5549 offset_constExpr = _constExpr.finish(fbBuilder); 5549 offset_constExpr = _constExpr.finish(fbBuilder);
5550 } 5550 }
5551 fbBuilder.startTable(); 5551 fbBuilder.startTable();
5552 if (offset_name != null) { 5552 if (offset_name != null) {
5553 fbBuilder.addOffset(0, offset_name); 5553 fbBuilder.addOffset(0, offset_name);
5554 } 5554 }
5555 if (_nameOffset != null && _nameOffset != 0) { 5555 if (_nameOffset != null && _nameOffset != 0) {
5556 fbBuilder.addInt32(1, _nameOffset); 5556 fbBuilder.addUint32(1, _nameOffset);
5557 } 5557 }
5558 if (offset_documentationComment != null) { 5558 if (offset_documentationComment != null) {
5559 fbBuilder.addOffset(2, offset_documentationComment); 5559 fbBuilder.addOffset(2, offset_documentationComment);
5560 } 5560 }
5561 if (offset_type != null) { 5561 if (offset_type != null) {
5562 fbBuilder.addOffset(3, offset_type); 5562 fbBuilder.addOffset(3, offset_type);
5563 } 5563 }
5564 if (offset_constExpr != null) { 5564 if (offset_constExpr != null) {
5565 fbBuilder.addOffset(4, offset_constExpr); 5565 fbBuilder.addOffset(4, offset_constExpr);
5566 } 5566 }
5567 if (_isStatic == true) { 5567 if (_isStatic == true) {
5568 fbBuilder.addBool(5, true); 5568 fbBuilder.addBool(5, true);
5569 } 5569 }
5570 if (_isFinal == true) { 5570 if (_isFinal == true) {
5571 fbBuilder.addBool(6, true); 5571 fbBuilder.addBool(6, true);
5572 } 5572 }
5573 if (_isConst == true) { 5573 if (_isConst == true) {
5574 fbBuilder.addBool(7, true); 5574 fbBuilder.addBool(7, true);
5575 } 5575 }
5576 if (_hasImplicitType == true) { 5576 if (_hasImplicitType == true) {
5577 fbBuilder.addBool(8, true); 5577 fbBuilder.addBool(8, true);
5578 } 5578 }
5579 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { 5579 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) {
5580 fbBuilder.addInt32(9, _propagatedTypeSlot); 5580 fbBuilder.addUint32(9, _propagatedTypeSlot);
5581 } 5581 }
5582 return fbBuilder.endTable(); 5582 return fbBuilder.endTable();
5583 } 5583 }
5584 } 5584 }
5585 5585
5586 /** 5586 /**
5587 * Unlinked summary information about a top level variable, local variable, or 5587 * Unlinked summary information about a top level variable, local variable, or
5588 * a field. 5588 * a field.
5589 */ 5589 */
5590 abstract class UnlinkedVariable extends base.SummaryClass { 5590 abstract class UnlinkedVariable extends base.SummaryClass {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
5676 int _propagatedTypeSlot; 5676 int _propagatedTypeSlot;
5677 5677
5678 @override 5678 @override
5679 String get name { 5679 String get name {
5680 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); 5680 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
5681 return _name; 5681 return _name;
5682 } 5682 }
5683 5683
5684 @override 5684 @override
5685 int get nameOffset { 5685 int get nameOffset {
5686 _nameOffset ??= const fb.Int32Reader().vTableGet(_bp, 1, 0); 5686 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
5687 return _nameOffset; 5687 return _nameOffset;
5688 } 5688 }
5689 5689
5690 @override 5690 @override
5691 UnlinkedDocumentationComment get documentationComment { 5691 UnlinkedDocumentationComment get documentationComment {
5692 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null); 5692 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable Get(_bp, 2, null);
5693 return _documentationComment; 5693 return _documentationComment;
5694 } 5694 }
5695 5695
5696 @override 5696 @override
(...skipping 27 matching lines...) Expand all
5724 } 5724 }
5725 5725
5726 @override 5726 @override
5727 bool get hasImplicitType { 5727 bool get hasImplicitType {
5728 _hasImplicitType ??= const fb.BoolReader().vTableGet(_bp, 8, false); 5728 _hasImplicitType ??= const fb.BoolReader().vTableGet(_bp, 8, false);
5729 return _hasImplicitType; 5729 return _hasImplicitType;
5730 } 5730 }
5731 5731
5732 @override 5732 @override
5733 int get propagatedTypeSlot { 5733 int get propagatedTypeSlot {
5734 _propagatedTypeSlot ??= const fb.Int32Reader().vTableGet(_bp, 9, 0); 5734 _propagatedTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0);
5735 return _propagatedTypeSlot; 5735 return _propagatedTypeSlot;
5736 } 5736 }
5737 } 5737 }
5738 5738
5739 abstract class _UnlinkedVariableMixin implements UnlinkedVariable { 5739 abstract class _UnlinkedVariableMixin implements UnlinkedVariable {
5740 @override 5740 @override
5741 Map<String, Object> toMap() => { 5741 Map<String, Object> toMap() => {
5742 "name": name, 5742 "name": name,
5743 "nameOffset": nameOffset, 5743 "nameOffset": nameOffset,
5744 "documentationComment": documentationComment, 5744 "documentationComment": documentationComment,
5745 "type": type, 5745 "type": type,
5746 "constExpr": constExpr, 5746 "constExpr": constExpr,
5747 "isStatic": isStatic, 5747 "isStatic": isStatic,
5748 "isFinal": isFinal, 5748 "isFinal": isFinal,
5749 "isConst": isConst, 5749 "isConst": isConst,
5750 "hasImplicitType": hasImplicitType, 5750 "hasImplicitType": hasImplicitType,
5751 "propagatedTypeSlot": propagatedTypeSlot, 5751 "propagatedTypeSlot": propagatedTypeSlot,
5752 }; 5752 };
5753 } 5753 }
5754 5754
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/tool/summary/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698