| 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 'dart:convert' as convert; | 10 import 'dart:convert' as convert; |
| (...skipping 12132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12143 int _inheritsCovariantSlot; | 12143 int _inheritsCovariantSlot; |
| 12144 UnlinkedExecutableBuilder _initializer; | 12144 UnlinkedExecutableBuilder _initializer; |
| 12145 bool _isConst; | 12145 bool _isConst; |
| 12146 bool _isCovariant; | 12146 bool _isCovariant; |
| 12147 bool _isFinal; | 12147 bool _isFinal; |
| 12148 bool _isStatic; | 12148 bool _isStatic; |
| 12149 String _name; | 12149 String _name; |
| 12150 int _nameOffset; | 12150 int _nameOffset; |
| 12151 int _propagatedTypeSlot; | 12151 int _propagatedTypeSlot; |
| 12152 EntityRefBuilder _type; | 12152 EntityRefBuilder _type; |
| 12153 int _visibleLength; | |
| 12154 int _visibleOffset; | |
| 12155 | 12153 |
| 12156 @override | 12154 @override |
| 12157 List<UnlinkedExprBuilder> get annotations => | 12155 List<UnlinkedExprBuilder> get annotations => |
| 12158 _annotations ??= <UnlinkedExprBuilder>[]; | 12156 _annotations ??= <UnlinkedExprBuilder>[]; |
| 12159 | 12157 |
| 12160 /** | 12158 /** |
| 12161 * Annotations for this variable. | 12159 * Annotations for this variable. |
| 12162 */ | 12160 */ |
| 12163 void set annotations(List<UnlinkedExprBuilder> value) { | 12161 void set annotations(List<UnlinkedExprBuilder> value) { |
| 12164 this._annotations = value; | 12162 this._annotations = value; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12313 EntityRefBuilder get type => _type; | 12311 EntityRefBuilder get type => _type; |
| 12314 | 12312 |
| 12315 /** | 12313 /** |
| 12316 * Declared type of the variable. Absent if the type is implicit. | 12314 * Declared type of the variable. Absent if the type is implicit. |
| 12317 */ | 12315 */ |
| 12318 void set type(EntityRefBuilder value) { | 12316 void set type(EntityRefBuilder value) { |
| 12319 this._type = value; | 12317 this._type = value; |
| 12320 } | 12318 } |
| 12321 | 12319 |
| 12322 @override | 12320 @override |
| 12323 int get visibleLength => _visibleLength ??= 0; | 12321 int get visibleLength => |
| 12324 | 12322 throw new UnimplementedError('attempt to access deprecated field'); |
| 12325 /** | |
| 12326 * If a local variable, the length of the visible range; zero otherwise. | |
| 12327 */ | |
| 12328 void set visibleLength(int value) { | |
| 12329 assert(value == null || value >= 0); | |
| 12330 this._visibleLength = value; | |
| 12331 } | |
| 12332 | 12323 |
| 12333 @override | 12324 @override |
| 12334 int get visibleOffset => _visibleOffset ??= 0; | 12325 int get visibleOffset => |
| 12335 | 12326 throw new UnimplementedError('attempt to access deprecated field'); |
| 12336 /** | |
| 12337 * If a local variable, the beginning of the visible range; zero otherwise. | |
| 12338 */ | |
| 12339 void set visibleOffset(int value) { | |
| 12340 assert(value == null || value >= 0); | |
| 12341 this._visibleOffset = value; | |
| 12342 } | |
| 12343 | 12327 |
| 12344 UnlinkedVariableBuilder( | 12328 UnlinkedVariableBuilder( |
| 12345 {List<UnlinkedExprBuilder> annotations, | 12329 {List<UnlinkedExprBuilder> annotations, |
| 12346 CodeRangeBuilder codeRange, | 12330 CodeRangeBuilder codeRange, |
| 12347 UnlinkedDocumentationCommentBuilder documentationComment, | 12331 UnlinkedDocumentationCommentBuilder documentationComment, |
| 12348 int inferredTypeSlot, | 12332 int inferredTypeSlot, |
| 12349 int inheritsCovariantSlot, | 12333 int inheritsCovariantSlot, |
| 12350 UnlinkedExecutableBuilder initializer, | 12334 UnlinkedExecutableBuilder initializer, |
| 12351 bool isConst, | 12335 bool isConst, |
| 12352 bool isCovariant, | 12336 bool isCovariant, |
| 12353 bool isFinal, | 12337 bool isFinal, |
| 12354 bool isStatic, | 12338 bool isStatic, |
| 12355 String name, | 12339 String name, |
| 12356 int nameOffset, | 12340 int nameOffset, |
| 12357 int propagatedTypeSlot, | 12341 int propagatedTypeSlot, |
| 12358 EntityRefBuilder type, | 12342 EntityRefBuilder type}) |
| 12359 int visibleLength, | |
| 12360 int visibleOffset}) | |
| 12361 : _annotations = annotations, | 12343 : _annotations = annotations, |
| 12362 _codeRange = codeRange, | 12344 _codeRange = codeRange, |
| 12363 _documentationComment = documentationComment, | 12345 _documentationComment = documentationComment, |
| 12364 _inferredTypeSlot = inferredTypeSlot, | 12346 _inferredTypeSlot = inferredTypeSlot, |
| 12365 _inheritsCovariantSlot = inheritsCovariantSlot, | 12347 _inheritsCovariantSlot = inheritsCovariantSlot, |
| 12366 _initializer = initializer, | 12348 _initializer = initializer, |
| 12367 _isConst = isConst, | 12349 _isConst = isConst, |
| 12368 _isCovariant = isCovariant, | 12350 _isCovariant = isCovariant, |
| 12369 _isFinal = isFinal, | 12351 _isFinal = isFinal, |
| 12370 _isStatic = isStatic, | 12352 _isStatic = isStatic, |
| 12371 _name = name, | 12353 _name = name, |
| 12372 _nameOffset = nameOffset, | 12354 _nameOffset = nameOffset, |
| 12373 _propagatedTypeSlot = propagatedTypeSlot, | 12355 _propagatedTypeSlot = propagatedTypeSlot, |
| 12374 _type = type, | 12356 _type = type; |
| 12375 _visibleLength = visibleLength, | |
| 12376 _visibleOffset = visibleOffset; | |
| 12377 | 12357 |
| 12378 /** | 12358 /** |
| 12379 * Flush [informative] data recursively. | 12359 * Flush [informative] data recursively. |
| 12380 */ | 12360 */ |
| 12381 void flushInformative() { | 12361 void flushInformative() { |
| 12382 _annotations?.forEach((b) => b.flushInformative()); | 12362 _annotations?.forEach((b) => b.flushInformative()); |
| 12383 _codeRange = null; | 12363 _codeRange = null; |
| 12384 _documentationComment = null; | 12364 _documentationComment = null; |
| 12385 _initializer?.flushInformative(); | 12365 _initializer?.flushInformative(); |
| 12386 _nameOffset = null; | 12366 _nameOffset = null; |
| 12387 _type?.flushInformative(); | 12367 _type?.flushInformative(); |
| 12388 _visibleLength = null; | |
| 12389 _visibleOffset = null; | |
| 12390 } | 12368 } |
| 12391 | 12369 |
| 12392 /** | 12370 /** |
| 12393 * Accumulate non-[informative] data into [signature]. | 12371 * Accumulate non-[informative] data into [signature]. |
| 12394 */ | 12372 */ |
| 12395 void collectApiSignature(api_sig.ApiSignature signature) { | 12373 void collectApiSignature(api_sig.ApiSignature signature) { |
| 12396 signature.addString(this._name ?? ''); | 12374 signature.addString(this._name ?? ''); |
| 12397 signature.addInt(this._propagatedTypeSlot ?? 0); | 12375 signature.addInt(this._propagatedTypeSlot ?? 0); |
| 12398 signature.addBool(this._type != null); | 12376 signature.addBool(this._type != null); |
| 12399 this._type?.collectApiSignature(signature); | 12377 this._type?.collectApiSignature(signature); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12477 } | 12455 } |
| 12478 if (_nameOffset != null && _nameOffset != 0) { | 12456 if (_nameOffset != null && _nameOffset != 0) { |
| 12479 fbBuilder.addUint32(1, _nameOffset); | 12457 fbBuilder.addUint32(1, _nameOffset); |
| 12480 } | 12458 } |
| 12481 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { | 12459 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { |
| 12482 fbBuilder.addUint32(2, _propagatedTypeSlot); | 12460 fbBuilder.addUint32(2, _propagatedTypeSlot); |
| 12483 } | 12461 } |
| 12484 if (offset_type != null) { | 12462 if (offset_type != null) { |
| 12485 fbBuilder.addOffset(3, offset_type); | 12463 fbBuilder.addOffset(3, offset_type); |
| 12486 } | 12464 } |
| 12487 if (_visibleLength != null && _visibleLength != 0) { | |
| 12488 fbBuilder.addUint32(11, _visibleLength); | |
| 12489 } | |
| 12490 if (_visibleOffset != null && _visibleOffset != 0) { | |
| 12491 fbBuilder.addUint32(12, _visibleOffset); | |
| 12492 } | |
| 12493 return fbBuilder.endTable(); | 12465 return fbBuilder.endTable(); |
| 12494 } | 12466 } |
| 12495 } | 12467 } |
| 12496 | 12468 |
| 12497 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { | 12469 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { |
| 12498 const _UnlinkedVariableReader(); | 12470 const _UnlinkedVariableReader(); |
| 12499 | 12471 |
| 12500 @override | 12472 @override |
| 12501 _UnlinkedVariableImpl createObject(fb.BufferContext bc, int offset) => | 12473 _UnlinkedVariableImpl createObject(fb.BufferContext bc, int offset) => |
| 12502 new _UnlinkedVariableImpl(bc, offset); | 12474 new _UnlinkedVariableImpl(bc, offset); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 12517 int _inheritsCovariantSlot; | 12489 int _inheritsCovariantSlot; |
| 12518 idl.UnlinkedExecutable _initializer; | 12490 idl.UnlinkedExecutable _initializer; |
| 12519 bool _isConst; | 12491 bool _isConst; |
| 12520 bool _isCovariant; | 12492 bool _isCovariant; |
| 12521 bool _isFinal; | 12493 bool _isFinal; |
| 12522 bool _isStatic; | 12494 bool _isStatic; |
| 12523 String _name; | 12495 String _name; |
| 12524 int _nameOffset; | 12496 int _nameOffset; |
| 12525 int _propagatedTypeSlot; | 12497 int _propagatedTypeSlot; |
| 12526 idl.EntityRef _type; | 12498 idl.EntityRef _type; |
| 12527 int _visibleLength; | |
| 12528 int _visibleOffset; | |
| 12529 | 12499 |
| 12530 @override | 12500 @override |
| 12531 List<idl.UnlinkedExpr> get annotations { | 12501 List<idl.UnlinkedExpr> get annotations { |
| 12532 _annotations ??= | 12502 _annotations ??= |
| 12533 const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprReader()) | 12503 const fb.ListReader<idl.UnlinkedExpr>(const _UnlinkedExprReader()) |
| 12534 .vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedExpr>[]); | 12504 .vTableGet(_bc, _bcOffset, 8, const <idl.UnlinkedExpr>[]); |
| 12535 return _annotations; | 12505 return _annotations; |
| 12536 } | 12506 } |
| 12537 | 12507 |
| 12538 @override | 12508 @override |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12612 return _propagatedTypeSlot; | 12582 return _propagatedTypeSlot; |
| 12613 } | 12583 } |
| 12614 | 12584 |
| 12615 @override | 12585 @override |
| 12616 idl.EntityRef get type { | 12586 idl.EntityRef get type { |
| 12617 _type ??= const _EntityRefReader().vTableGet(_bc, _bcOffset, 3, null); | 12587 _type ??= const _EntityRefReader().vTableGet(_bc, _bcOffset, 3, null); |
| 12618 return _type; | 12588 return _type; |
| 12619 } | 12589 } |
| 12620 | 12590 |
| 12621 @override | 12591 @override |
| 12622 int get visibleLength { | 12592 int get visibleLength => |
| 12623 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 11, 0); | 12593 throw new UnimplementedError('attempt to access deprecated field'); |
| 12624 return _visibleLength; | |
| 12625 } | |
| 12626 | 12594 |
| 12627 @override | 12595 @override |
| 12628 int get visibleOffset { | 12596 int get visibleOffset => |
| 12629 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 12, 0); | 12597 throw new UnimplementedError('attempt to access deprecated field'); |
| 12630 return _visibleOffset; | |
| 12631 } | |
| 12632 } | 12598 } |
| 12633 | 12599 |
| 12634 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { | 12600 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { |
| 12635 @override | 12601 @override |
| 12636 Map<String, Object> toJson() { | 12602 Map<String, Object> toJson() { |
| 12637 Map<String, Object> _result = <String, Object>{}; | 12603 Map<String, Object> _result = <String, Object>{}; |
| 12638 if (annotations.isNotEmpty) | 12604 if (annotations.isNotEmpty) |
| 12639 _result["annotations"] = | 12605 _result["annotations"] = |
| 12640 annotations.map((_value) => _value.toJson()).toList(); | 12606 annotations.map((_value) => _value.toJson()).toList(); |
| 12641 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); | 12607 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); |
| 12642 if (documentationComment != null) | 12608 if (documentationComment != null) |
| 12643 _result["documentationComment"] = documentationComment.toJson(); | 12609 _result["documentationComment"] = documentationComment.toJson(); |
| 12644 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; | 12610 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; |
| 12645 if (inheritsCovariantSlot != 0) | 12611 if (inheritsCovariantSlot != 0) |
| 12646 _result["inheritsCovariantSlot"] = inheritsCovariantSlot; | 12612 _result["inheritsCovariantSlot"] = inheritsCovariantSlot; |
| 12647 if (initializer != null) _result["initializer"] = initializer.toJson(); | 12613 if (initializer != null) _result["initializer"] = initializer.toJson(); |
| 12648 if (isConst != false) _result["isConst"] = isConst; | 12614 if (isConst != false) _result["isConst"] = isConst; |
| 12649 if (isCovariant != false) _result["isCovariant"] = isCovariant; | 12615 if (isCovariant != false) _result["isCovariant"] = isCovariant; |
| 12650 if (isFinal != false) _result["isFinal"] = isFinal; | 12616 if (isFinal != false) _result["isFinal"] = isFinal; |
| 12651 if (isStatic != false) _result["isStatic"] = isStatic; | 12617 if (isStatic != false) _result["isStatic"] = isStatic; |
| 12652 if (name != '') _result["name"] = name; | 12618 if (name != '') _result["name"] = name; |
| 12653 if (nameOffset != 0) _result["nameOffset"] = nameOffset; | 12619 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 12654 if (propagatedTypeSlot != 0) | 12620 if (propagatedTypeSlot != 0) |
| 12655 _result["propagatedTypeSlot"] = propagatedTypeSlot; | 12621 _result["propagatedTypeSlot"] = propagatedTypeSlot; |
| 12656 if (type != null) _result["type"] = type.toJson(); | 12622 if (type != null) _result["type"] = type.toJson(); |
| 12657 if (visibleLength != 0) _result["visibleLength"] = visibleLength; | |
| 12658 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; | |
| 12659 return _result; | 12623 return _result; |
| 12660 } | 12624 } |
| 12661 | 12625 |
| 12662 @override | 12626 @override |
| 12663 Map<String, Object> toMap() => { | 12627 Map<String, Object> toMap() => { |
| 12664 "annotations": annotations, | 12628 "annotations": annotations, |
| 12665 "codeRange": codeRange, | 12629 "codeRange": codeRange, |
| 12666 "documentationComment": documentationComment, | 12630 "documentationComment": documentationComment, |
| 12667 "inferredTypeSlot": inferredTypeSlot, | 12631 "inferredTypeSlot": inferredTypeSlot, |
| 12668 "inheritsCovariantSlot": inheritsCovariantSlot, | 12632 "inheritsCovariantSlot": inheritsCovariantSlot, |
| 12669 "initializer": initializer, | 12633 "initializer": initializer, |
| 12670 "isConst": isConst, | 12634 "isConst": isConst, |
| 12671 "isCovariant": isCovariant, | 12635 "isCovariant": isCovariant, |
| 12672 "isFinal": isFinal, | 12636 "isFinal": isFinal, |
| 12673 "isStatic": isStatic, | 12637 "isStatic": isStatic, |
| 12674 "name": name, | 12638 "name": name, |
| 12675 "nameOffset": nameOffset, | 12639 "nameOffset": nameOffset, |
| 12676 "propagatedTypeSlot": propagatedTypeSlot, | 12640 "propagatedTypeSlot": propagatedTypeSlot, |
| 12677 "type": type, | 12641 "type": type, |
| 12678 "visibleLength": visibleLength, | |
| 12679 "visibleOffset": visibleOffset, | |
| 12680 }; | 12642 }; |
| 12681 | 12643 |
| 12682 @override | 12644 @override |
| 12683 String toString() => convert.JSON.encode(toJson()); | 12645 String toString() => convert.JSON.encode(toJson()); |
| 12684 } | 12646 } |
| OLD | NEW |