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

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

Issue 2757143002: The parameter of synthetic setters should inherit 'covariant'. (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/summary/format.fbs » ('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 'flat_buffers.dart' as fb; 10 import 'flat_buffers.dart' as fb;
(...skipping 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after
3060 */ 3060 */
3061 void set constCycles(List<int> value) { 3061 void set constCycles(List<int> value) {
3062 assert(value == null || value.every((e) => e >= 0)); 3062 assert(value == null || value.every((e) => e >= 0));
3063 this._constCycles = value; 3063 this._constCycles = value;
3064 } 3064 }
3065 3065
3066 @override 3066 @override
3067 List<int> get parametersInheritingCovariant => _parametersInheritingCovariant ??= <int>[]; 3067 List<int> get parametersInheritingCovariant => _parametersInheritingCovariant ??= <int>[];
3068 3068
3069 /** 3069 /**
3070 * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot]) 3070 * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot] or
3071 * corresponding to parameters that inherit `@covariant` behavior from a base 3071 * [UnlinkedVariable.inheritsCovariantSlot]) corresponding to parameters
3072 * class. 3072 * that inherit `@covariant` behavior from a base class.
3073 */ 3073 */
3074 void set parametersInheritingCovariant(List<int> value) { 3074 void set parametersInheritingCovariant(List<int> value) {
3075 assert(value == null || value.every((e) => e >= 0)); 3075 assert(value == null || value.every((e) => e >= 0));
3076 this._parametersInheritingCovariant = value; 3076 this._parametersInheritingCovariant = value;
3077 } 3077 }
3078 3078
3079 @override 3079 @override
3080 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc eBuilder>[]; 3080 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc eBuilder>[];
3081 3081
3082 /** 3082 /**
(...skipping 4827 matching lines...) Expand 10 before | Expand all | Expand 10 after
7910 "isValidConst": isValidConst, 7910 "isValidConst": isValidConst,
7911 "operations": operations, 7911 "operations": operations,
7912 "references": references, 7912 "references": references,
7913 "strings": strings, 7913 "strings": strings,
7914 }; 7914 };
7915 7915
7916 @override 7916 @override
7917 String toString() => convert.JSON.encode(toJson()); 7917 String toString() => convert.JSON.encode(toJson());
7918 } 7918 }
7919 7919
7920 class UnlinkedGenericFunctionTypeBuilder extends Object with _UnlinkedGenericFun ctionTypeMixin implements idl.UnlinkedGenericFunctionType {
7921 int _offset;
7922 List<UnlinkedParamBuilder> _parameters;
7923 EntityRefBuilder _returnType;
7924 List<UnlinkedTypeParamBuilder> _typeParameters;
7925
7926 @override
7927 int get offset => _offset ??= 0;
7928
7929 /**
7930 * The offset of the return type.
7931 */
7932 void set offset(int value) {
7933 assert(value == null || value >= 0);
7934 this._offset = value;
7935 }
7936
7937 @override
7938 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui lder>[];
7939
7940 /**
7941 * Parameters of the function type, if any.
7942 */
7943 void set parameters(List<UnlinkedParamBuilder> value) {
7944 this._parameters = value;
7945 }
7946
7947 @override
7948 EntityRefBuilder get returnType => _returnType;
7949
7950 /**
7951 * Declared return type of the function type. Absent if the return type is
7952 * implicit.
7953 */
7954 void set returnType(EntityRefBuilder value) {
7955 this._returnType = value;
7956 }
7957
7958 @override
7959 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli nkedTypeParamBuilder>[];
7960
7961 /**
7962 * Type parameters of the function type, if any.
7963 */
7964 void set typeParameters(List<UnlinkedTypeParamBuilder> value) {
7965 this._typeParameters = value;
7966 }
7967
7968 UnlinkedGenericFunctionTypeBuilder({int offset, List<UnlinkedParamBuilder> par ameters, EntityRefBuilder returnType, List<UnlinkedTypeParamBuilder> typeParamet ers})
7969 : _offset = offset,
7970 _parameters = parameters,
7971 _returnType = returnType,
7972 _typeParameters = typeParameters;
7973
7974 /**
7975 * Flush [informative] data recursively.
7976 */
7977 void flushInformative() {
7978 _offset = null;
7979 _parameters?.forEach((b) => b.flushInformative());
7980 _returnType?.flushInformative();
7981 _typeParameters?.forEach((b) => b.flushInformative());
7982 }
7983
7984 /**
7985 * Accumulate non-[informative] data into [signature].
7986 */
7987 void collectApiSignature(api_sig.ApiSignature signature) {
7988 signature.addBool(this._returnType != null);
7989 this._returnType?.collectApiSignature(signature);
7990 if (this._typeParameters == null) {
7991 signature.addInt(0);
7992 } else {
7993 signature.addInt(this._typeParameters.length);
7994 for (var x in this._typeParameters) {
7995 x?.collectApiSignature(signature);
7996 }
7997 }
7998 if (this._parameters == null) {
7999 signature.addInt(0);
8000 } else {
8001 signature.addInt(this._parameters.length);
8002 for (var x in this._parameters) {
8003 x?.collectApiSignature(signature);
8004 }
8005 }
8006 }
8007
8008 fb.Offset finish(fb.Builder fbBuilder) {
8009 fb.Offset offset_parameters;
8010 fb.Offset offset_returnType;
8011 fb.Offset offset_typeParameters;
8012 if (!(_parameters == null || _parameters.isEmpty)) {
8013 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList());
8014 }
8015 if (_returnType != null) {
8016 offset_returnType = _returnType.finish(fbBuilder);
8017 }
8018 if (!(_typeParameters == null || _typeParameters.isEmpty)) {
8019 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f inish(fbBuilder)).toList());
8020 }
8021 fbBuilder.startTable();
8022 if (_offset != null && _offset != 0) {
8023 fbBuilder.addUint32(0, _offset);
8024 }
8025 if (offset_parameters != null) {
8026 fbBuilder.addOffset(3, offset_parameters);
8027 }
8028 if (offset_returnType != null) {
8029 fbBuilder.addOffset(1, offset_returnType);
8030 }
8031 if (offset_typeParameters != null) {
8032 fbBuilder.addOffset(2, offset_typeParameters);
8033 }
8034 return fbBuilder.endTable();
8035 }
8036 }
8037
8038 class _UnlinkedGenericFunctionTypeReader extends fb.TableReader<_UnlinkedGeneric FunctionTypeImpl> {
8039 const _UnlinkedGenericFunctionTypeReader();
8040
8041 @override
8042 _UnlinkedGenericFunctionTypeImpl createObject(fb.BufferContext bc, int offset) => new _UnlinkedGenericFunctionTypeImpl(bc, offset);
8043 }
8044
8045 class _UnlinkedGenericFunctionTypeImpl extends Object with _UnlinkedGenericFunct ionTypeMixin implements idl.UnlinkedGenericFunctionType {
8046 final fb.BufferContext _bc;
8047 final int _bcOffset;
8048
8049 _UnlinkedGenericFunctionTypeImpl(this._bc, this._bcOffset);
8050
8051 int _offset;
8052 List<idl.UnlinkedParam> _parameters;
8053 idl.EntityRef _returnType;
8054 List<idl.UnlinkedTypeParam> _typeParameters;
8055
8056 @override
8057 int get offset {
8058 _offset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 0, 0);
8059 return _offset;
8060 }
8061
8062 @override
8063 List<idl.UnlinkedParam> get parameters {
8064 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR eader()).vTableGet(_bc, _bcOffset, 3, const <idl.UnlinkedParam>[]);
8065 return _parameters;
8066 }
8067
8068 @override
8069 idl.EntityRef get returnType {
8070 _returnType ??= const _EntityRefReader().vTableGet(_bc, _bcOffset, 1, null);
8071 return _returnType;
8072 }
8073
8074 @override
8075 List<idl.UnlinkedTypeParam> get typeParameters {
8076 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink edTypeParamReader()).vTableGet(_bc, _bcOffset, 2, const <idl.UnlinkedTypeParam>[ ]);
8077 return _typeParameters;
8078 }
8079 }
8080
8081 abstract class _UnlinkedGenericFunctionTypeMixin implements idl.UnlinkedGenericF unctionType {
8082 @override
8083 Map<String, Object> toJson() {
8084 Map<String, Object> _result = <String, Object>{};
8085 if (offset != 0) _result["offset"] = offset;
8086 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) = > _value.toJson()).toList();
8087 if (returnType != null) _result["returnType"] = returnType.toJson();
8088 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma p((_value) => _value.toJson()).toList();
8089 return _result;
8090 }
8091
8092 @override
8093 Map<String, Object> toMap() => {
8094 "offset": offset,
8095 "parameters": parameters,
8096 "returnType": returnType,
8097 "typeParameters": typeParameters,
8098 };
8099
8100 @override
8101 String toString() => convert.JSON.encode(toJson());
8102 }
8103
7920 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements idl.UnlinkedImport { 8104 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements idl.UnlinkedImport {
7921 List<UnlinkedExprBuilder> _annotations; 8105 List<UnlinkedExprBuilder> _annotations;
7922 List<UnlinkedCombinatorBuilder> _combinators; 8106 List<UnlinkedCombinatorBuilder> _combinators;
7923 List<UnlinkedConfigurationBuilder> _configurations; 8107 List<UnlinkedConfigurationBuilder> _configurations;
7924 bool _isDeferred; 8108 bool _isDeferred;
7925 bool _isImplicit; 8109 bool _isImplicit;
7926 int _offset; 8110 int _offset;
7927 int _prefixOffset; 8111 int _prefixOffset;
7928 int _prefixReference; 8112 int _prefixReference;
7929 String _uri; 8113 String _uri;
(...skipping 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after
10866 11050
10867 @override 11051 @override
10868 String toString() => convert.JSON.encode(toJson()); 11052 String toString() => convert.JSON.encode(toJson());
10869 } 11053 }
10870 11054
10871 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme nts idl.UnlinkedVariable { 11055 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme nts idl.UnlinkedVariable {
10872 List<UnlinkedExprBuilder> _annotations; 11056 List<UnlinkedExprBuilder> _annotations;
10873 CodeRangeBuilder _codeRange; 11057 CodeRangeBuilder _codeRange;
10874 UnlinkedDocumentationCommentBuilder _documentationComment; 11058 UnlinkedDocumentationCommentBuilder _documentationComment;
10875 int _inferredTypeSlot; 11059 int _inferredTypeSlot;
11060 int _inheritsCovariantSlot;
10876 UnlinkedExecutableBuilder _initializer; 11061 UnlinkedExecutableBuilder _initializer;
10877 bool _isConst; 11062 bool _isConst;
10878 bool _isCovariant; 11063 bool _isCovariant;
10879 bool _isFinal; 11064 bool _isFinal;
10880 bool _isStatic; 11065 bool _isStatic;
10881 String _name; 11066 String _name;
10882 int _nameOffset; 11067 int _nameOffset;
10883 int _propagatedTypeSlot; 11068 int _propagatedTypeSlot;
10884 EntityRefBuilder _type; 11069 EntityRefBuilder _type;
10885 int _visibleLength; 11070 int _visibleLength;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
10924 * [LinkedLibrary.types] contains the inferred type for this variable. If 11109 * [LinkedLibrary.types] contains the inferred type for this variable. If
10925 * there is no matching entry in [LinkedLibrary.types], then no type was 11110 * there is no matching entry in [LinkedLibrary.types], then no type was
10926 * inferred for this variable, so its static type is `dynamic`. 11111 * inferred for this variable, so its static type is `dynamic`.
10927 */ 11112 */
10928 void set inferredTypeSlot(int value) { 11113 void set inferredTypeSlot(int value) {
10929 assert(value == null || value >= 0); 11114 assert(value == null || value >= 0);
10930 this._inferredTypeSlot = value; 11115 this._inferredTypeSlot = value;
10931 } 11116 }
10932 11117
10933 @override 11118 @override
11119 int get inheritsCovariantSlot => _inheritsCovariantSlot ??= 0;
11120
11121 /**
11122 * If this is an instance non-final field, a nonzero slot id which is unique
11123 * within this compilation unit. If this id is found in
11124 * [LinkedUnit.parametersInheritingCovariant], then the parameter of the
11125 * synthetic setter inherits `@covariant` behavior from a base class.
11126 *
11127 * Otherwise, zero.
11128 */
11129 void set inheritsCovariantSlot(int value) {
11130 assert(value == null || value >= 0);
11131 this._inheritsCovariantSlot = value;
11132 }
11133
11134 @override
10934 UnlinkedExecutableBuilder get initializer => _initializer; 11135 UnlinkedExecutableBuilder get initializer => _initializer;
10935 11136
10936 /** 11137 /**
10937 * The synthetic initializer function of the variable. Absent if the variable 11138 * The synthetic initializer function of the variable. Absent if the variable
10938 * does not have an initializer. 11139 * does not have an initializer.
10939 */ 11140 */
10940 void set initializer(UnlinkedExecutableBuilder value) { 11141 void set initializer(UnlinkedExecutableBuilder value) {
10941 this._initializer = value; 11142 this._initializer = value;
10942 } 11143 }
10943 11144
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
11048 int get visibleOffset => _visibleOffset ??= 0; 11249 int get visibleOffset => _visibleOffset ??= 0;
11049 11250
11050 /** 11251 /**
11051 * If a local variable, the beginning of the visible range; zero otherwise. 11252 * If a local variable, the beginning of the visible range; zero otherwise.
11052 */ 11253 */
11053 void set visibleOffset(int value) { 11254 void set visibleOffset(int value) {
11054 assert(value == null || value >= 0); 11255 assert(value == null || value >= 0);
11055 this._visibleOffset = value; 11256 this._visibleOffset = value;
11056 } 11257 }
11057 11258
11058 UnlinkedVariableBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuild er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int infe rredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isCovari ant, bool isFinal, bool isStatic, String name, int nameOffset, int propagatedTyp eSlot, EntityRefBuilder type, int visibleLength, int visibleOffset}) 11259 UnlinkedVariableBuilder({List<UnlinkedExprBuilder> annotations, CodeRangeBuild er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int infe rredTypeSlot, int inheritsCovariantSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isCovariant, bool isFinal, bool isStatic, String name, int na meOffset, int propagatedTypeSlot, EntityRefBuilder type, int visibleLength, int visibleOffset})
11059 : _annotations = annotations, 11260 : _annotations = annotations,
11060 _codeRange = codeRange, 11261 _codeRange = codeRange,
11061 _documentationComment = documentationComment, 11262 _documentationComment = documentationComment,
11062 _inferredTypeSlot = inferredTypeSlot, 11263 _inferredTypeSlot = inferredTypeSlot,
11264 _inheritsCovariantSlot = inheritsCovariantSlot,
11063 _initializer = initializer, 11265 _initializer = initializer,
11064 _isConst = isConst, 11266 _isConst = isConst,
11065 _isCovariant = isCovariant, 11267 _isCovariant = isCovariant,
11066 _isFinal = isFinal, 11268 _isFinal = isFinal,
11067 _isStatic = isStatic, 11269 _isStatic = isStatic,
11068 _name = name, 11270 _name = name,
11069 _nameOffset = nameOffset, 11271 _nameOffset = nameOffset,
11070 _propagatedTypeSlot = propagatedTypeSlot, 11272 _propagatedTypeSlot = propagatedTypeSlot,
11071 _type = type, 11273 _type = type,
11072 _visibleLength = visibleLength, 11274 _visibleLength = visibleLength,
(...skipping 29 matching lines...) Expand all
11102 } else { 11304 } else {
11103 signature.addInt(this._annotations.length); 11305 signature.addInt(this._annotations.length);
11104 for (var x in this._annotations) { 11306 for (var x in this._annotations) {
11105 x?.collectApiSignature(signature); 11307 x?.collectApiSignature(signature);
11106 } 11308 }
11107 } 11309 }
11108 signature.addInt(this._inferredTypeSlot ?? 0); 11310 signature.addInt(this._inferredTypeSlot ?? 0);
11109 signature.addBool(this._initializer != null); 11311 signature.addBool(this._initializer != null);
11110 this._initializer?.collectApiSignature(signature); 11312 this._initializer?.collectApiSignature(signature);
11111 signature.addBool(this._isCovariant == true); 11313 signature.addBool(this._isCovariant == true);
11314 signature.addInt(this._inheritsCovariantSlot ?? 0);
11112 } 11315 }
11113 11316
11114 fb.Offset finish(fb.Builder fbBuilder) { 11317 fb.Offset finish(fb.Builder fbBuilder) {
11115 fb.Offset offset_annotations; 11318 fb.Offset offset_annotations;
11116 fb.Offset offset_codeRange; 11319 fb.Offset offset_codeRange;
11117 fb.Offset offset_documentationComment; 11320 fb.Offset offset_documentationComment;
11118 fb.Offset offset_initializer; 11321 fb.Offset offset_initializer;
11119 fb.Offset offset_name; 11322 fb.Offset offset_name;
11120 fb.Offset offset_type; 11323 fb.Offset offset_type;
11121 if (!(_annotations == null || _annotations.isEmpty)) { 11324 if (!(_annotations == null || _annotations.isEmpty)) {
(...skipping 20 matching lines...) Expand all
11142 } 11345 }
11143 if (offset_codeRange != null) { 11346 if (offset_codeRange != null) {
11144 fbBuilder.addOffset(5, offset_codeRange); 11347 fbBuilder.addOffset(5, offset_codeRange);
11145 } 11348 }
11146 if (offset_documentationComment != null) { 11349 if (offset_documentationComment != null) {
11147 fbBuilder.addOffset(10, offset_documentationComment); 11350 fbBuilder.addOffset(10, offset_documentationComment);
11148 } 11351 }
11149 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { 11352 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) {
11150 fbBuilder.addUint32(9, _inferredTypeSlot); 11353 fbBuilder.addUint32(9, _inferredTypeSlot);
11151 } 11354 }
11355 if (_inheritsCovariantSlot != null && _inheritsCovariantSlot != 0) {
11356 fbBuilder.addUint32(15, _inheritsCovariantSlot);
11357 }
11152 if (offset_initializer != null) { 11358 if (offset_initializer != null) {
11153 fbBuilder.addOffset(13, offset_initializer); 11359 fbBuilder.addOffset(13, offset_initializer);
11154 } 11360 }
11155 if (_isConst == true) { 11361 if (_isConst == true) {
11156 fbBuilder.addBool(6, true); 11362 fbBuilder.addBool(6, true);
11157 } 11363 }
11158 if (_isCovariant == true) { 11364 if (_isCovariant == true) {
11159 fbBuilder.addBool(14, true); 11365 fbBuilder.addBool(14, true);
11160 } 11366 }
11161 if (_isFinal == true) { 11367 if (_isFinal == true) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
11196 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement s idl.UnlinkedVariable { 11402 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement s idl.UnlinkedVariable {
11197 final fb.BufferContext _bc; 11403 final fb.BufferContext _bc;
11198 final int _bcOffset; 11404 final int _bcOffset;
11199 11405
11200 _UnlinkedVariableImpl(this._bc, this._bcOffset); 11406 _UnlinkedVariableImpl(this._bc, this._bcOffset);
11201 11407
11202 List<idl.UnlinkedExpr> _annotations; 11408 List<idl.UnlinkedExpr> _annotations;
11203 idl.CodeRange _codeRange; 11409 idl.CodeRange _codeRange;
11204 idl.UnlinkedDocumentationComment _documentationComment; 11410 idl.UnlinkedDocumentationComment _documentationComment;
11205 int _inferredTypeSlot; 11411 int _inferredTypeSlot;
11412 int _inheritsCovariantSlot;
11206 idl.UnlinkedExecutable _initializer; 11413 idl.UnlinkedExecutable _initializer;
11207 bool _isConst; 11414 bool _isConst;
11208 bool _isCovariant; 11415 bool _isCovariant;
11209 bool _isFinal; 11416 bool _isFinal;
11210 bool _isStatic; 11417 bool _isStatic;
11211 String _name; 11418 String _name;
11212 int _nameOffset; 11419 int _nameOffset;
11213 int _propagatedTypeSlot; 11420 int _propagatedTypeSlot;
11214 idl.EntityRef _type; 11421 idl.EntityRef _type;
11215 int _visibleLength; 11422 int _visibleLength;
(...skipping 17 matching lines...) Expand all
11233 return _documentationComment; 11440 return _documentationComment;
11234 } 11441 }
11235 11442
11236 @override 11443 @override
11237 int get inferredTypeSlot { 11444 int get inferredTypeSlot {
11238 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 9, 0 ); 11445 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 9, 0 );
11239 return _inferredTypeSlot; 11446 return _inferredTypeSlot;
11240 } 11447 }
11241 11448
11242 @override 11449 @override
11450 int get inheritsCovariantSlot {
11451 _inheritsCovariantSlot ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 15, 0);
11452 return _inheritsCovariantSlot;
11453 }
11454
11455 @override
11243 idl.UnlinkedExecutable get initializer { 11456 idl.UnlinkedExecutable get initializer {
11244 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bc, _bcOffset, 13, null); 11457 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bc, _bcOffset, 13, null);
11245 return _initializer; 11458 return _initializer;
11246 } 11459 }
11247 11460
11248 @override 11461 @override
11249 bool get isConst { 11462 bool get isConst {
11250 _isConst ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 6, false); 11463 _isConst ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 6, false);
11251 return _isConst; 11464 return _isConst;
11252 } 11465 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
11307 } 11520 }
11308 11521
11309 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { 11522 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable {
11310 @override 11523 @override
11311 Map<String, Object> toJson() { 11524 Map<String, Object> toJson() {
11312 Map<String, Object> _result = <String, Object>{}; 11525 Map<String, Object> _result = <String, Object>{};
11313 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value ) => _value.toJson()).toList(); 11526 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value ) => _value.toJson()).toList();
11314 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); 11527 if (codeRange != null) _result["codeRange"] = codeRange.toJson();
11315 if (documentationComment != null) _result["documentationComment"] = document ationComment.toJson(); 11528 if (documentationComment != null) _result["documentationComment"] = document ationComment.toJson();
11316 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; 11529 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot;
11530 if (inheritsCovariantSlot != 0) _result["inheritsCovariantSlot"] = inheritsC ovariantSlot;
11317 if (initializer != null) _result["initializer"] = initializer.toJson(); 11531 if (initializer != null) _result["initializer"] = initializer.toJson();
11318 if (isConst != false) _result["isConst"] = isConst; 11532 if (isConst != false) _result["isConst"] = isConst;
11319 if (isCovariant != false) _result["isCovariant"] = isCovariant; 11533 if (isCovariant != false) _result["isCovariant"] = isCovariant;
11320 if (isFinal != false) _result["isFinal"] = isFinal; 11534 if (isFinal != false) _result["isFinal"] = isFinal;
11321 if (isStatic != false) _result["isStatic"] = isStatic; 11535 if (isStatic != false) _result["isStatic"] = isStatic;
11322 if (name != '') _result["name"] = name; 11536 if (name != '') _result["name"] = name;
11323 if (nameOffset != 0) _result["nameOffset"] = nameOffset; 11537 if (nameOffset != 0) _result["nameOffset"] = nameOffset;
11324 if (propagatedTypeSlot != 0) _result["propagatedTypeSlot"] = propagatedTypeS lot; 11538 if (propagatedTypeSlot != 0) _result["propagatedTypeSlot"] = propagatedTypeS lot;
11325 if (type != null) _result["type"] = type.toJson(); 11539 if (type != null) _result["type"] = type.toJson();
11326 if (visibleLength != 0) _result["visibleLength"] = visibleLength; 11540 if (visibleLength != 0) _result["visibleLength"] = visibleLength;
11327 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; 11541 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset;
11328 return _result; 11542 return _result;
11329 } 11543 }
11330 11544
11331 @override 11545 @override
11332 Map<String, Object> toMap() => { 11546 Map<String, Object> toMap() => {
11333 "annotations": annotations, 11547 "annotations": annotations,
11334 "codeRange": codeRange, 11548 "codeRange": codeRange,
11335 "documentationComment": documentationComment, 11549 "documentationComment": documentationComment,
11336 "inferredTypeSlot": inferredTypeSlot, 11550 "inferredTypeSlot": inferredTypeSlot,
11551 "inheritsCovariantSlot": inheritsCovariantSlot,
11337 "initializer": initializer, 11552 "initializer": initializer,
11338 "isConst": isConst, 11553 "isConst": isConst,
11339 "isCovariant": isCovariant, 11554 "isCovariant": isCovariant,
11340 "isFinal": isFinal, 11555 "isFinal": isFinal,
11341 "isStatic": isStatic, 11556 "isStatic": isStatic,
11342 "name": name, 11557 "name": name,
11343 "nameOffset": nameOffset, 11558 "nameOffset": nameOffset,
11344 "propagatedTypeSlot": propagatedTypeSlot, 11559 "propagatedTypeSlot": propagatedTypeSlot,
11345 "type": type, 11560 "type": type,
11346 "visibleLength": visibleLength, 11561 "visibleLength": visibleLength,
11347 "visibleOffset": visibleOffset, 11562 "visibleOffset": visibleOffset,
11348 }; 11563 };
11349 11564
11350 @override 11565 @override
11351 String toString() => convert.JSON.encode(toJson()); 11566 String toString() => convert.JSON.encode(toJson());
11352 } 11567 }
11353 11568
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/summary/format.fbs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698