OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". | 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". |
7 | 7 |
8 library analyzer.src.summary.format; | 8 library analyzer.src.summary.format; |
9 | 9 |
10 import 'flat_buffers.dart' as fb; | 10 import 'flat_buffers.dart' as fb; |
(...skipping 6952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6963 * Flush [informative] data recursively. | 6963 * Flush [informative] data recursively. |
6964 */ | 6964 */ |
6965 void flushInformative() { | 6965 void flushInformative() { |
6966 _annotations?.forEach((b) => b.flushInformative()); | 6966 _annotations?.forEach((b) => b.flushInformative()); |
6967 _codeRange = null; | 6967 _codeRange = null; |
6968 _defaultValueCode = null; | 6968 _defaultValueCode = null; |
6969 _initializer?.flushInformative(); | 6969 _initializer?.flushInformative(); |
6970 _nameOffset = null; | 6970 _nameOffset = null; |
6971 _parameters?.forEach((b) => b.flushInformative()); | 6971 _parameters?.forEach((b) => b.flushInformative()); |
6972 _type?.flushInformative(); | 6972 _type?.flushInformative(); |
| 6973 _visibleLength = null; |
| 6974 _visibleOffset = null; |
6973 } | 6975 } |
6974 | 6976 |
6975 /** | 6977 /** |
6976 * Accumulate non-[informative] data into [signature]. | 6978 * Accumulate non-[informative] data into [signature]. |
6977 */ | 6979 */ |
6978 void collectApiSignature(api_sig.ApiSignature signature) { | 6980 void collectApiSignature(api_sig.ApiSignature signature) { |
6979 signature.addString(this._name ?? ''); | 6981 signature.addString(this._name ?? ''); |
6980 signature.addInt(this._inferredTypeSlot ?? 0); | 6982 signature.addInt(this._inferredTypeSlot ?? 0); |
6981 signature.addBool(this._type != null); | 6983 signature.addBool(this._type != null); |
6982 this._type?.collectApiSignature(signature); | 6984 this._type?.collectApiSignature(signature); |
6983 signature.addInt(this._kind == null ? 0 : this._kind.index); | 6985 signature.addInt(this._kind == null ? 0 : this._kind.index); |
6984 signature.addBool(this._isFunctionTyped == true); | 6986 signature.addBool(this._isFunctionTyped == true); |
6985 signature.addBool(this._isInitializingFormal == true); | 6987 signature.addBool(this._isInitializingFormal == true); |
6986 if (this._parameters == null) { | 6988 if (this._parameters == null) { |
6987 signature.addInt(0); | 6989 signature.addInt(0); |
6988 } else { | 6990 } else { |
6989 signature.addInt(this._parameters.length); | 6991 signature.addInt(this._parameters.length); |
6990 for (var x in this._parameters) { | 6992 for (var x in this._parameters) { |
6991 x?.collectApiSignature(signature); | 6993 x?.collectApiSignature(signature); |
6992 } | 6994 } |
6993 } | 6995 } |
6994 if (this._annotations == null) { | 6996 if (this._annotations == null) { |
6995 signature.addInt(0); | 6997 signature.addInt(0); |
6996 } else { | 6998 } else { |
6997 signature.addInt(this._annotations.length); | 6999 signature.addInt(this._annotations.length); |
6998 for (var x in this._annotations) { | 7000 for (var x in this._annotations) { |
6999 x?.collectApiSignature(signature); | 7001 x?.collectApiSignature(signature); |
7000 } | 7002 } |
7001 } | 7003 } |
7002 signature.addInt(this._visibleLength ?? 0); | |
7003 signature.addInt(this._visibleOffset ?? 0); | |
7004 signature.addBool(this._initializer != null); | 7004 signature.addBool(this._initializer != null); |
7005 this._initializer?.collectApiSignature(signature); | 7005 this._initializer?.collectApiSignature(signature); |
7006 signature.addInt(this._inheritsCovariantSlot ?? 0); | 7006 signature.addInt(this._inheritsCovariantSlot ?? 0); |
7007 } | 7007 } |
7008 | 7008 |
7009 fb.Offset finish(fb.Builder fbBuilder) { | 7009 fb.Offset finish(fb.Builder fbBuilder) { |
7010 fb.Offset offset_annotations; | 7010 fb.Offset offset_annotations; |
7011 fb.Offset offset_codeRange; | 7011 fb.Offset offset_codeRange; |
7012 fb.Offset offset_defaultValueCode; | 7012 fb.Offset offset_defaultValueCode; |
7013 fb.Offset offset_initializer; | 7013 fb.Offset offset_initializer; |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9238 /** | 9238 /** |
9239 * Flush [informative] data recursively. | 9239 * Flush [informative] data recursively. |
9240 */ | 9240 */ |
9241 void flushInformative() { | 9241 void flushInformative() { |
9242 _annotations?.forEach((b) => b.flushInformative()); | 9242 _annotations?.forEach((b) => b.flushInformative()); |
9243 _codeRange = null; | 9243 _codeRange = null; |
9244 _documentationComment = null; | 9244 _documentationComment = null; |
9245 _initializer?.flushInformative(); | 9245 _initializer?.flushInformative(); |
9246 _nameOffset = null; | 9246 _nameOffset = null; |
9247 _type?.flushInformative(); | 9247 _type?.flushInformative(); |
| 9248 _visibleLength = null; |
| 9249 _visibleOffset = null; |
9248 } | 9250 } |
9249 | 9251 |
9250 /** | 9252 /** |
9251 * Accumulate non-[informative] data into [signature]. | 9253 * Accumulate non-[informative] data into [signature]. |
9252 */ | 9254 */ |
9253 void collectApiSignature(api_sig.ApiSignature signature) { | 9255 void collectApiSignature(api_sig.ApiSignature signature) { |
9254 signature.addString(this._name ?? ''); | 9256 signature.addString(this._name ?? ''); |
9255 signature.addInt(this._propagatedTypeSlot ?? 0); | 9257 signature.addInt(this._propagatedTypeSlot ?? 0); |
9256 signature.addBool(this._type != null); | 9258 signature.addBool(this._type != null); |
9257 this._type?.collectApiSignature(signature); | 9259 this._type?.collectApiSignature(signature); |
9258 signature.addBool(this._isStatic == true); | 9260 signature.addBool(this._isStatic == true); |
9259 signature.addBool(this._isConst == true); | 9261 signature.addBool(this._isConst == true); |
9260 signature.addBool(this._isFinal == true); | 9262 signature.addBool(this._isFinal == true); |
9261 if (this._annotations == null) { | 9263 if (this._annotations == null) { |
9262 signature.addInt(0); | 9264 signature.addInt(0); |
9263 } else { | 9265 } else { |
9264 signature.addInt(this._annotations.length); | 9266 signature.addInt(this._annotations.length); |
9265 for (var x in this._annotations) { | 9267 for (var x in this._annotations) { |
9266 x?.collectApiSignature(signature); | 9268 x?.collectApiSignature(signature); |
9267 } | 9269 } |
9268 } | 9270 } |
9269 signature.addInt(this._inferredTypeSlot ?? 0); | 9271 signature.addInt(this._inferredTypeSlot ?? 0); |
9270 signature.addInt(this._visibleLength ?? 0); | |
9271 signature.addInt(this._visibleOffset ?? 0); | |
9272 signature.addBool(this._initializer != null); | 9272 signature.addBool(this._initializer != null); |
9273 this._initializer?.collectApiSignature(signature); | 9273 this._initializer?.collectApiSignature(signature); |
9274 } | 9274 } |
9275 | 9275 |
9276 fb.Offset finish(fb.Builder fbBuilder) { | 9276 fb.Offset finish(fb.Builder fbBuilder) { |
9277 fb.Offset offset_annotations; | 9277 fb.Offset offset_annotations; |
9278 fb.Offset offset_codeRange; | 9278 fb.Offset offset_codeRange; |
9279 fb.Offset offset_documentationComment; | 9279 fb.Offset offset_documentationComment; |
9280 fb.Offset offset_initializer; | 9280 fb.Offset offset_initializer; |
9281 fb.Offset offset_name; | 9281 fb.Offset offset_name; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9494 "propagatedTypeSlot": propagatedTypeSlot, | 9494 "propagatedTypeSlot": propagatedTypeSlot, |
9495 "type": type, | 9495 "type": type, |
9496 "visibleLength": visibleLength, | 9496 "visibleLength": visibleLength, |
9497 "visibleOffset": visibleOffset, | 9497 "visibleOffset": visibleOffset, |
9498 }; | 9498 }; |
9499 | 9499 |
9500 @override | 9500 @override |
9501 String toString() => convert.JSON.encode(toJson()); | 9501 String toString() => convert.JSON.encode(toJson()); |
9502 } | 9502 } |
9503 | 9503 |
OLD | NEW |