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

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

Issue 1570383002: Use addBool() and BoolReader in summaries. (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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 if (offset_interfaces != null) { 790 if (offset_interfaces != null) {
791 fbBuilder.addOffset(6, offset_interfaces); 791 fbBuilder.addOffset(6, offset_interfaces);
792 } 792 }
793 if (offset_fields != null) { 793 if (offset_fields != null) {
794 fbBuilder.addOffset(7, offset_fields); 794 fbBuilder.addOffset(7, offset_fields);
795 } 795 }
796 if (offset_executables != null) { 796 if (offset_executables != null) {
797 fbBuilder.addOffset(8, offset_executables); 797 fbBuilder.addOffset(8, offset_executables);
798 } 798 }
799 if (_isAbstract == true) { 799 if (_isAbstract == true) {
800 fbBuilder.addInt8(9, 1); 800 fbBuilder.addBool(9, true);
801 } 801 }
802 if (_isMixinApplication == true) { 802 if (_isMixinApplication == true) {
803 fbBuilder.addInt8(10, 1); 803 fbBuilder.addBool(10, true);
804 } 804 }
805 if (_hasNoSupertype == true) { 805 if (_hasNoSupertype == true) {
806 fbBuilder.addInt8(11, 1); 806 fbBuilder.addBool(11, true);
807 } 807 }
808 return fbBuilder.endTable(); 808 return fbBuilder.endTable();
809 } 809 }
810 } 810 }
811 811
812 UnlinkedClassBuilder encodeUnlinkedClass(base.BuilderContext builderContext, {St ring name, int nameOffset, UnlinkedDocumentationCommentBuilder documentationComm ent, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBuilder super type, List<UnlinkedTypeRefBuilder> mixins, List<UnlinkedTypeRefBuilder> interfac es, List<UnlinkedVariableBuilder> fields, List<UnlinkedExecutableBuilder> execut ables, bool isAbstract, bool isMixinApplication, bool hasNoSupertype}) { 812 UnlinkedClassBuilder encodeUnlinkedClass(base.BuilderContext builderContext, {St ring name, int nameOffset, UnlinkedDocumentationCommentBuilder documentationComm ent, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBuilder super type, List<UnlinkedTypeRefBuilder> mixins, List<UnlinkedTypeRefBuilder> interfac es, List<UnlinkedVariableBuilder> fields, List<UnlinkedExecutableBuilder> execut ables, bool isAbstract, bool isMixinApplication, bool hasNoSupertype}) {
813 UnlinkedClassBuilder builder = new UnlinkedClassBuilder(builderContext); 813 UnlinkedClassBuilder builder = new UnlinkedClassBuilder(builderContext);
814 builder.name = name; 814 builder.name = name;
815 builder.nameOffset = nameOffset; 815 builder.nameOffset = nameOffset;
816 builder.documentationComment = documentationComment; 816 builder.documentationComment = documentationComment;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 @override 941 @override
942 List<UnlinkedTypeRef> get interfaces => const fb.ListReader<UnlinkedTypeRef>(c onst _UnlinkedTypeRefReader()).vTableGet(_bp, 6, const <UnlinkedTypeRef>[]); 942 List<UnlinkedTypeRef> get interfaces => const fb.ListReader<UnlinkedTypeRef>(c onst _UnlinkedTypeRefReader()).vTableGet(_bp, 6, const <UnlinkedTypeRef>[]);
943 943
944 @override 944 @override
945 List<UnlinkedVariable> get fields => const fb.ListReader<UnlinkedVariable>(con st _UnlinkedVariableReader()).vTableGet(_bp, 7, const <UnlinkedVariable>[]); 945 List<UnlinkedVariable> get fields => const fb.ListReader<UnlinkedVariable>(con st _UnlinkedVariableReader()).vTableGet(_bp, 7, const <UnlinkedVariable>[]);
946 946
947 @override 947 @override
948 List<UnlinkedExecutable> get executables => const fb.ListReader<UnlinkedExecut able>(const _UnlinkedExecutableReader()).vTableGet(_bp, 8, const <UnlinkedExecut able>[]); 948 List<UnlinkedExecutable> get executables => const fb.ListReader<UnlinkedExecut able>(const _UnlinkedExecutableReader()).vTableGet(_bp, 8, const <UnlinkedExecut able>[]);
949 949
950 @override 950 @override
951 bool get isAbstract => const fb.Int8Reader().vTableGet(_bp, 9, 0) == 1; 951 bool get isAbstract => const fb.BoolReader().vTableGet(_bp, 9, false);
952 952
953 @override 953 @override
954 bool get isMixinApplication => const fb.Int8Reader().vTableGet(_bp, 10, 0) == 1; 954 bool get isMixinApplication => const fb.BoolReader().vTableGet(_bp, 10, false) ;
955 955
956 @override 956 @override
957 bool get hasNoSupertype => const fb.Int8Reader().vTableGet(_bp, 11, 0) == 1; 957 bool get hasNoSupertype => const fb.BoolReader().vTableGet(_bp, 11, false);
958 } 958 }
959 959
960 class UnlinkedCombinatorBuilder { 960 class UnlinkedCombinatorBuilder {
961 bool _finished = false; 961 bool _finished = false;
962 962
963 List<String> _shows; 963 List<String> _shows;
964 List<String> _hides; 964 List<String> _hides;
965 965
966 UnlinkedCombinatorBuilder(base.BuilderContext context); 966 UnlinkedCombinatorBuilder(base.BuilderContext context);
967 967
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 if (offset_returnType != null) { 1598 if (offset_returnType != null) {
1599 fbBuilder.addOffset(4, offset_returnType); 1599 fbBuilder.addOffset(4, offset_returnType);
1600 } 1600 }
1601 if (offset_parameters != null) { 1601 if (offset_parameters != null) {
1602 fbBuilder.addOffset(5, offset_parameters); 1602 fbBuilder.addOffset(5, offset_parameters);
1603 } 1603 }
1604 if (_kind != null && _kind != UnlinkedExecutableKind.functionOrMethod) { 1604 if (_kind != null && _kind != UnlinkedExecutableKind.functionOrMethod) {
1605 fbBuilder.addInt32(6, _kind.index); 1605 fbBuilder.addInt32(6, _kind.index);
1606 } 1606 }
1607 if (_isAbstract == true) { 1607 if (_isAbstract == true) {
1608 fbBuilder.addInt8(7, 1); 1608 fbBuilder.addBool(7, true);
1609 } 1609 }
1610 if (_isStatic == true) { 1610 if (_isStatic == true) {
1611 fbBuilder.addInt8(8, 1); 1611 fbBuilder.addBool(8, true);
1612 } 1612 }
1613 if (_isConst == true) { 1613 if (_isConst == true) {
1614 fbBuilder.addInt8(9, 1); 1614 fbBuilder.addBool(9, true);
1615 } 1615 }
1616 if (_isFactory == true) { 1616 if (_isFactory == true) {
1617 fbBuilder.addInt8(10, 1); 1617 fbBuilder.addBool(10, true);
1618 } 1618 }
1619 if (_hasImplicitReturnType == true) { 1619 if (_hasImplicitReturnType == true) {
1620 fbBuilder.addInt8(11, 1); 1620 fbBuilder.addBool(11, true);
1621 } 1621 }
1622 if (_isExternal == true) { 1622 if (_isExternal == true) {
1623 fbBuilder.addInt8(12, 1); 1623 fbBuilder.addBool(12, true);
1624 } 1624 }
1625 return fbBuilder.endTable(); 1625 return fbBuilder.endTable();
1626 } 1626 }
1627 } 1627 }
1628 1628
1629 UnlinkedExecutableBuilder encodeUnlinkedExecutable(base.BuilderContext builderCo ntext, {String name, int nameOffset, UnlinkedDocumentationCommentBuilder documen tationComment, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBui lder returnType, List<UnlinkedParamBuilder> parameters, UnlinkedExecutableKind k ind, bool isAbstract, bool isStatic, bool isConst, bool isFactory, bool hasImpli citReturnType, bool isExternal}) { 1629 UnlinkedExecutableBuilder encodeUnlinkedExecutable(base.BuilderContext builderCo ntext, {String name, int nameOffset, UnlinkedDocumentationCommentBuilder documen tationComment, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBui lder returnType, List<UnlinkedParamBuilder> parameters, UnlinkedExecutableKind k ind, bool isAbstract, bool isStatic, bool isConst, bool isFactory, bool hasImpli citReturnType, bool isExternal}) {
1630 UnlinkedExecutableBuilder builder = new UnlinkedExecutableBuilder(builderConte xt); 1630 UnlinkedExecutableBuilder builder = new UnlinkedExecutableBuilder(builderConte xt);
1631 builder.name = name; 1631 builder.name = name;
1632 builder.nameOffset = nameOffset; 1632 builder.nameOffset = nameOffset;
1633 builder.documentationComment = documentationComment; 1633 builder.documentationComment = documentationComment;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 @override 1776 @override
1777 List<UnlinkedParam> get parameters => const fb.ListReader<UnlinkedParam>(const _UnlinkedParamReader()).vTableGet(_bp, 5, const <UnlinkedParam>[]); 1777 List<UnlinkedParam> get parameters => const fb.ListReader<UnlinkedParam>(const _UnlinkedParamReader()).vTableGet(_bp, 5, const <UnlinkedParam>[]);
1778 1778
1779 @override 1779 @override
1780 UnlinkedExecutableKind get kind { 1780 UnlinkedExecutableKind get kind {
1781 int index = const fb.Int32Reader().vTableGet(_bp, 6, 0); 1781 int index = const fb.Int32Reader().vTableGet(_bp, 6, 0);
1782 return UnlinkedExecutableKind.values[index]; 1782 return UnlinkedExecutableKind.values[index];
1783 } 1783 }
1784 1784
1785 @override 1785 @override
1786 bool get isAbstract => const fb.Int8Reader().vTableGet(_bp, 7, 0) == 1; 1786 bool get isAbstract => const fb.BoolReader().vTableGet(_bp, 7, false);
1787 1787
1788 @override 1788 @override
1789 bool get isStatic => const fb.Int8Reader().vTableGet(_bp, 8, 0) == 1; 1789 bool get isStatic => const fb.BoolReader().vTableGet(_bp, 8, false);
1790 1790
1791 @override 1791 @override
1792 bool get isConst => const fb.Int8Reader().vTableGet(_bp, 9, 0) == 1; 1792 bool get isConst => const fb.BoolReader().vTableGet(_bp, 9, false);
1793 1793
1794 @override 1794 @override
1795 bool get isFactory => const fb.Int8Reader().vTableGet(_bp, 10, 0) == 1; 1795 bool get isFactory => const fb.BoolReader().vTableGet(_bp, 10, false);
1796 1796
1797 @override 1797 @override
1798 bool get hasImplicitReturnType => const fb.Int8Reader().vTableGet(_bp, 11, 0) == 1; 1798 bool get hasImplicitReturnType => const fb.BoolReader().vTableGet(_bp, 11, fal se);
1799 1799
1800 @override 1800 @override
1801 bool get isExternal => const fb.Int8Reader().vTableGet(_bp, 12, 0) == 1; 1801 bool get isExternal => const fb.BoolReader().vTableGet(_bp, 12, false);
1802 } 1802 }
1803 1803
1804 class UnlinkedExportNonPublicBuilder { 1804 class UnlinkedExportNonPublicBuilder {
1805 bool _finished = false; 1805 bool _finished = false;
1806 1806
1807 int _offset; 1807 int _offset;
1808 int _uriOffset; 1808 int _uriOffset;
1809 int _uriEnd; 1809 int _uriEnd;
1810 1810
1811 UnlinkedExportNonPublicBuilder(base.BuilderContext context); 1811 UnlinkedExportNonPublicBuilder(base.BuilderContext context);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 if (_offset != null && _offset != 0) { 2113 if (_offset != null && _offset != 0) {
2114 fbBuilder.addInt32(1, _offset); 2114 fbBuilder.addInt32(1, _offset);
2115 } 2115 }
2116 if (_prefixReference != null && _prefixReference != 0) { 2116 if (_prefixReference != null && _prefixReference != 0) {
2117 fbBuilder.addInt32(2, _prefixReference); 2117 fbBuilder.addInt32(2, _prefixReference);
2118 } 2118 }
2119 if (offset_combinators != null) { 2119 if (offset_combinators != null) {
2120 fbBuilder.addOffset(3, offset_combinators); 2120 fbBuilder.addOffset(3, offset_combinators);
2121 } 2121 }
2122 if (_isDeferred == true) { 2122 if (_isDeferred == true) {
2123 fbBuilder.addInt8(4, 1); 2123 fbBuilder.addBool(4, true);
2124 } 2124 }
2125 if (_isImplicit == true) { 2125 if (_isImplicit == true) {
2126 fbBuilder.addInt8(5, 1); 2126 fbBuilder.addBool(5, true);
2127 } 2127 }
2128 if (_uriOffset != null && _uriOffset != 0) { 2128 if (_uriOffset != null && _uriOffset != 0) {
2129 fbBuilder.addInt32(6, _uriOffset); 2129 fbBuilder.addInt32(6, _uriOffset);
2130 } 2130 }
2131 if (_uriEnd != null && _uriEnd != 0) { 2131 if (_uriEnd != null && _uriEnd != 0) {
2132 fbBuilder.addInt32(7, _uriEnd); 2132 fbBuilder.addInt32(7, _uriEnd);
2133 } 2133 }
2134 if (_prefixOffset != null && _prefixOffset != 0) { 2134 if (_prefixOffset != null && _prefixOffset != 0) {
2135 fbBuilder.addInt32(8, _prefixOffset); 2135 fbBuilder.addInt32(8, _prefixOffset);
2136 } 2136 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 @override 2237 @override
2238 int get offset => const fb.Int32Reader().vTableGet(_bp, 1, 0); 2238 int get offset => const fb.Int32Reader().vTableGet(_bp, 1, 0);
2239 2239
2240 @override 2240 @override
2241 int get prefixReference => const fb.Int32Reader().vTableGet(_bp, 2, 0); 2241 int get prefixReference => const fb.Int32Reader().vTableGet(_bp, 2, 0);
2242 2242
2243 @override 2243 @override
2244 List<UnlinkedCombinator> get combinators => const fb.ListReader<UnlinkedCombin ator>(const _UnlinkedCombinatorReader()).vTableGet(_bp, 3, const <UnlinkedCombin ator>[]); 2244 List<UnlinkedCombinator> get combinators => const fb.ListReader<UnlinkedCombin ator>(const _UnlinkedCombinatorReader()).vTableGet(_bp, 3, const <UnlinkedCombin ator>[]);
2245 2245
2246 @override 2246 @override
2247 bool get isDeferred => const fb.Int8Reader().vTableGet(_bp, 4, 0) == 1; 2247 bool get isDeferred => const fb.BoolReader().vTableGet(_bp, 4, false);
2248 2248
2249 @override 2249 @override
2250 bool get isImplicit => const fb.Int8Reader().vTableGet(_bp, 5, 0) == 1; 2250 bool get isImplicit => const fb.BoolReader().vTableGet(_bp, 5, false);
2251 2251
2252 @override 2252 @override
2253 int get uriOffset => const fb.Int32Reader().vTableGet(_bp, 6, 0); 2253 int get uriOffset => const fb.Int32Reader().vTableGet(_bp, 6, 0);
2254 2254
2255 @override 2255 @override
2256 int get uriEnd => const fb.Int32Reader().vTableGet(_bp, 7, 0); 2256 int get uriEnd => const fb.Int32Reader().vTableGet(_bp, 7, 0);
2257 2257
2258 @override 2258 @override
2259 int get prefixOffset => const fb.Int32Reader().vTableGet(_bp, 8, 0); 2259 int get prefixOffset => const fb.Int32Reader().vTableGet(_bp, 8, 0);
2260 } 2260 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 if (offset_type != null) { 2368 if (offset_type != null) {
2369 fbBuilder.addOffset(2, offset_type); 2369 fbBuilder.addOffset(2, offset_type);
2370 } 2370 }
2371 if (offset_parameters != null) { 2371 if (offset_parameters != null) {
2372 fbBuilder.addOffset(3, offset_parameters); 2372 fbBuilder.addOffset(3, offset_parameters);
2373 } 2373 }
2374 if (_kind != null && _kind != UnlinkedParamKind.required) { 2374 if (_kind != null && _kind != UnlinkedParamKind.required) {
2375 fbBuilder.addInt32(4, _kind.index); 2375 fbBuilder.addInt32(4, _kind.index);
2376 } 2376 }
2377 if (_isFunctionTyped == true) { 2377 if (_isFunctionTyped == true) {
2378 fbBuilder.addInt8(5, 1); 2378 fbBuilder.addBool(5, true);
2379 } 2379 }
2380 if (_isInitializingFormal == true) { 2380 if (_isInitializingFormal == true) {
2381 fbBuilder.addInt8(6, 1); 2381 fbBuilder.addBool(6, true);
2382 } 2382 }
2383 if (_hasImplicitType == true) { 2383 if (_hasImplicitType == true) {
2384 fbBuilder.addInt8(7, 1); 2384 fbBuilder.addBool(7, true);
2385 } 2385 }
2386 return fbBuilder.endTable(); 2386 return fbBuilder.endTable();
2387 } 2387 }
2388 } 2388 }
2389 2389
2390 UnlinkedParamBuilder encodeUnlinkedParam(base.BuilderContext builderContext, {St ring name, int nameOffset, UnlinkedTypeRefBuilder type, List<UnlinkedParamBuilde r> parameters, UnlinkedParamKind kind, bool isFunctionTyped, bool isInitializing Formal, bool hasImplicitType}) { 2390 UnlinkedParamBuilder encodeUnlinkedParam(base.BuilderContext builderContext, {St ring name, int nameOffset, UnlinkedTypeRefBuilder type, List<UnlinkedParamBuilde r> parameters, UnlinkedParamKind kind, bool isFunctionTyped, bool isInitializing Formal, bool hasImplicitType}) {
2391 UnlinkedParamBuilder builder = new UnlinkedParamBuilder(builderContext); 2391 UnlinkedParamBuilder builder = new UnlinkedParamBuilder(builderContext);
2392 builder.name = name; 2392 builder.name = name;
2393 builder.nameOffset = nameOffset; 2393 builder.nameOffset = nameOffset;
2394 builder.type = type; 2394 builder.type = type;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 @override 2484 @override
2485 List<UnlinkedParam> get parameters => const fb.ListReader<UnlinkedParam>(const _UnlinkedParamReader()).vTableGet(_bp, 3, const <UnlinkedParam>[]); 2485 List<UnlinkedParam> get parameters => const fb.ListReader<UnlinkedParam>(const _UnlinkedParamReader()).vTableGet(_bp, 3, const <UnlinkedParam>[]);
2486 2486
2487 @override 2487 @override
2488 UnlinkedParamKind get kind { 2488 UnlinkedParamKind get kind {
2489 int index = const fb.Int32Reader().vTableGet(_bp, 4, 0); 2489 int index = const fb.Int32Reader().vTableGet(_bp, 4, 0);
2490 return UnlinkedParamKind.values[index]; 2490 return UnlinkedParamKind.values[index];
2491 } 2491 }
2492 2492
2493 @override 2493 @override
2494 bool get isFunctionTyped => const fb.Int8Reader().vTableGet(_bp, 5, 0) == 1; 2494 bool get isFunctionTyped => const fb.BoolReader().vTableGet(_bp, 5, false);
2495 2495
2496 @override 2496 @override
2497 bool get isInitializingFormal => const fb.Int8Reader().vTableGet(_bp, 6, 0) == 1; 2497 bool get isInitializingFormal => const fb.BoolReader().vTableGet(_bp, 6, false );
2498 2498
2499 @override 2499 @override
2500 bool get hasImplicitType => const fb.Int8Reader().vTableGet(_bp, 7, 0) == 1; 2500 bool get hasImplicitType => const fb.BoolReader().vTableGet(_bp, 7, false);
2501 } 2501 }
2502 2502
2503 class UnlinkedPartBuilder { 2503 class UnlinkedPartBuilder {
2504 bool _finished = false; 2504 bool _finished = false;
2505 2505
2506 int _uriOffset; 2506 int _uriOffset;
2507 int _uriEnd; 2507 int _uriEnd;
2508 2508
2509 UnlinkedPartBuilder(base.BuilderContext context); 2509 UnlinkedPartBuilder(base.BuilderContext context);
2510 2510
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
3917 if (_nameOffset != null && _nameOffset != 0) { 3917 if (_nameOffset != null && _nameOffset != 0) {
3918 fbBuilder.addInt32(1, _nameOffset); 3918 fbBuilder.addInt32(1, _nameOffset);
3919 } 3919 }
3920 if (offset_documentationComment != null) { 3920 if (offset_documentationComment != null) {
3921 fbBuilder.addOffset(2, offset_documentationComment); 3921 fbBuilder.addOffset(2, offset_documentationComment);
3922 } 3922 }
3923 if (offset_type != null) { 3923 if (offset_type != null) {
3924 fbBuilder.addOffset(3, offset_type); 3924 fbBuilder.addOffset(3, offset_type);
3925 } 3925 }
3926 if (_isStatic == true) { 3926 if (_isStatic == true) {
3927 fbBuilder.addInt8(4, 1); 3927 fbBuilder.addBool(4, true);
3928 } 3928 }
3929 if (_isFinal == true) { 3929 if (_isFinal == true) {
3930 fbBuilder.addInt8(5, 1); 3930 fbBuilder.addBool(5, true);
3931 } 3931 }
3932 if (_isConst == true) { 3932 if (_isConst == true) {
3933 fbBuilder.addInt8(6, 1); 3933 fbBuilder.addBool(6, true);
3934 } 3934 }
3935 if (_hasImplicitType == true) { 3935 if (_hasImplicitType == true) {
3936 fbBuilder.addInt8(7, 1); 3936 fbBuilder.addBool(7, true);
3937 } 3937 }
3938 return fbBuilder.endTable(); 3938 return fbBuilder.endTable();
3939 } 3939 }
3940 } 3940 }
3941 3941
3942 UnlinkedVariableBuilder encodeUnlinkedVariable(base.BuilderContext builderContex t, {String name, int nameOffset, UnlinkedDocumentationCommentBuilder documentati onComment, UnlinkedTypeRefBuilder type, bool isStatic, bool isFinal, bool isCons t, bool hasImplicitType}) { 3942 UnlinkedVariableBuilder encodeUnlinkedVariable(base.BuilderContext builderContex t, {String name, int nameOffset, UnlinkedDocumentationCommentBuilder documentati onComment, UnlinkedTypeRefBuilder type, bool isStatic, bool isFinal, bool isCons t, bool hasImplicitType}) {
3943 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); 3943 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext);
3944 builder.name = name; 3944 builder.name = name;
3945 builder.nameOffset = nameOffset; 3945 builder.nameOffset = nameOffset;
3946 builder.documentationComment = documentationComment; 3946 builder.documentationComment = documentationComment;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
4031 @override 4031 @override
4032 int get nameOffset => const fb.Int32Reader().vTableGet(_bp, 1, 0); 4032 int get nameOffset => const fb.Int32Reader().vTableGet(_bp, 1, 0);
4033 4033
4034 @override 4034 @override
4035 UnlinkedDocumentationComment get documentationComment => const _UnlinkedDocume ntationCommentReader().vTableGet(_bp, 2, null); 4035 UnlinkedDocumentationComment get documentationComment => const _UnlinkedDocume ntationCommentReader().vTableGet(_bp, 2, null);
4036 4036
4037 @override 4037 @override
4038 UnlinkedTypeRef get type => const _UnlinkedTypeRefReader().vTableGet(_bp, 3, n ull); 4038 UnlinkedTypeRef get type => const _UnlinkedTypeRefReader().vTableGet(_bp, 3, n ull);
4039 4039
4040 @override 4040 @override
4041 bool get isStatic => const fb.Int8Reader().vTableGet(_bp, 4, 0) == 1; 4041 bool get isStatic => const fb.BoolReader().vTableGet(_bp, 4, false);
4042 4042
4043 @override 4043 @override
4044 bool get isFinal => const fb.Int8Reader().vTableGet(_bp, 5, 0) == 1; 4044 bool get isFinal => const fb.BoolReader().vTableGet(_bp, 5, false);
4045 4045
4046 @override 4046 @override
4047 bool get isConst => const fb.Int8Reader().vTableGet(_bp, 6, 0) == 1; 4047 bool get isConst => const fb.BoolReader().vTableGet(_bp, 6, false);
4048 4048
4049 @override 4049 @override
4050 bool get hasImplicitType => const fb.Int8Reader().vTableGet(_bp, 7, 0) == 1; 4050 bool get hasImplicitType => const fb.BoolReader().vTableGet(_bp, 7, false);
4051 } 4051 }
4052 4052
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