| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 int _offset; | 150 int _offset; |
| 151 | 151 |
| 152 @override | 152 @override |
| 153 String get correction => _correction ??= ''; | 153 String get correction => _correction ??= ''; |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * The correction to be displayed for this error, or `null` if there is no | 156 * The correction to be displayed for this error, or `null` if there is no |
| 157 * correction information for this error. The correction should indicate how | 157 * correction information for this error. The correction should indicate how |
| 158 * the user can fix the error. | 158 * the user can fix the error. |
| 159 */ | 159 */ |
| 160 void set correction(String _value) { | 160 void set correction(String value) { |
| 161 _correction = _value; | 161 this._correction = value; |
| 162 } | 162 } |
| 163 | 163 |
| 164 @override | 164 @override |
| 165 String get errorCodeUniqueName => _errorCodeUniqueName ??= ''; | 165 String get errorCodeUniqueName => _errorCodeUniqueName ??= ''; |
| 166 | 166 |
| 167 /** | 167 /** |
| 168 * The unique name of the error code. | 168 * The unique name of the error code. |
| 169 */ | 169 */ |
| 170 void set errorCodeUniqueName(String _value) { | 170 void set errorCodeUniqueName(String value) { |
| 171 _errorCodeUniqueName = _value; | 171 this._errorCodeUniqueName = value; |
| 172 } | 172 } |
| 173 | 173 |
| 174 @override | 174 @override |
| 175 int get length => _length ??= 0; | 175 int get length => _length ??= 0; |
| 176 | 176 |
| 177 /** | 177 /** |
| 178 * Length of the error range. | 178 * Length of the error range. |
| 179 */ | 179 */ |
| 180 void set length(int _value) { | 180 void set length(int value) { |
| 181 assert(_value == null || _value >= 0); | 181 assert(value == null || value >= 0); |
| 182 _length = _value; | 182 this._length = value; |
| 183 } | 183 } |
| 184 | 184 |
| 185 @override | 185 @override |
| 186 String get message => _message ??= ''; | 186 String get message => _message ??= ''; |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * The message to be displayed for this error. The message should indicate | 189 * The message to be displayed for this error. The message should indicate |
| 190 * what is wrong and why it is wrong. | 190 * what is wrong and why it is wrong. |
| 191 */ | 191 */ |
| 192 void set message(String _value) { | 192 void set message(String value) { |
| 193 _message = _value; | 193 this._message = value; |
| 194 } | 194 } |
| 195 | 195 |
| 196 @override | 196 @override |
| 197 int get offset => _offset ??= 0; | 197 int get offset => _offset ??= 0; |
| 198 | 198 |
| 199 /** | 199 /** |
| 200 * Offset of the error range relative to the beginning of the file. | 200 * Offset of the error range relative to the beginning of the file. |
| 201 */ | 201 */ |
| 202 void set offset(int _value) { | 202 void set offset(int value) { |
| 203 assert(_value == null || _value >= 0); | 203 assert(value == null || value >= 0); |
| 204 _offset = _value; | 204 this._offset = value; |
| 205 } | 205 } |
| 206 | 206 |
| 207 CacheAnalysisErrorBuilder({String correction, String errorCodeUniqueName, int
length, String message, int offset}) | 207 CacheAnalysisErrorBuilder({String correction, String errorCodeUniqueName, int
length, String message, int offset}) |
| 208 : _correction = correction, | 208 : _correction = correction, |
| 209 _errorCodeUniqueName = errorCodeUniqueName, | 209 _errorCodeUniqueName = errorCodeUniqueName, |
| 210 _length = length, | 210 _length = length, |
| 211 _message = message, | 211 _message = message, |
| 212 _offset = offset; | 212 _offset = offset; |
| 213 | 213 |
| 214 /** | 214 /** |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 idl.CacheSourceKind _kind; | 342 idl.CacheSourceKind _kind; |
| 343 List<String> _partUris; | 343 List<String> _partUris; |
| 344 | 344 |
| 345 @override | 345 @override |
| 346 List<String> get exportedUris => _exportedUris ??= <String>[]; | 346 List<String> get exportedUris => _exportedUris ??= <String>[]; |
| 347 | 347 |
| 348 /** | 348 /** |
| 349 * The list of exported URIs, e.g. `dart:core`, or `foo/bar.dart`, | 349 * The list of exported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 350 * or `package:foo/bar.dart`. Empty if [kind] is [CacheSourceKind.part]. | 350 * or `package:foo/bar.dart`. Empty if [kind] is [CacheSourceKind.part]. |
| 351 */ | 351 */ |
| 352 void set exportedUris(List<String> _value) { | 352 void set exportedUris(List<String> value) { |
| 353 _exportedUris = _value; | 353 this._exportedUris = value; |
| 354 } | 354 } |
| 355 | 355 |
| 356 @override | 356 @override |
| 357 List<String> get importedUris => _importedUris ??= <String>[]; | 357 List<String> get importedUris => _importedUris ??= <String>[]; |
| 358 | 358 |
| 359 /** | 359 /** |
| 360 * The list of explicitly imported URIs, e.g. `dart:core`, or `foo/bar.dart`, | 360 * The list of explicitly imported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 361 * or `package:foo/bar.dart`. Empty if [kind] is [CacheSourceKind.part]. | 361 * or `package:foo/bar.dart`. Empty if [kind] is [CacheSourceKind.part]. |
| 362 */ | 362 */ |
| 363 void set importedUris(List<String> _value) { | 363 void set importedUris(List<String> value) { |
| 364 _importedUris = _value; | 364 this._importedUris = value; |
| 365 } | 365 } |
| 366 | 366 |
| 367 @override | 367 @override |
| 368 idl.CacheSourceKind get kind => _kind ??= idl.CacheSourceKind.library; | 368 idl.CacheSourceKind get kind => _kind ??= idl.CacheSourceKind.library; |
| 369 | 369 |
| 370 /** | 370 /** |
| 371 * The kind of the source. | 371 * The kind of the source. |
| 372 */ | 372 */ |
| 373 void set kind(idl.CacheSourceKind _value) { | 373 void set kind(idl.CacheSourceKind value) { |
| 374 _kind = _value; | 374 this._kind = value; |
| 375 } | 375 } |
| 376 | 376 |
| 377 @override | 377 @override |
| 378 List<String> get partUris => _partUris ??= <String>[]; | 378 List<String> get partUris => _partUris ??= <String>[]; |
| 379 | 379 |
| 380 /** | 380 /** |
| 381 * The list of part URIs, e.g. `foo/bar.dart`. Empty if [kind] is | 381 * The list of part URIs, e.g. `foo/bar.dart`. Empty if [kind] is |
| 382 * [CacheSourceKind.part]. | 382 * [CacheSourceKind.part]. |
| 383 */ | 383 */ |
| 384 void set partUris(List<String> _value) { | 384 void set partUris(List<String> value) { |
| 385 _partUris = _value; | 385 this._partUris = value; |
| 386 } | 386 } |
| 387 | 387 |
| 388 CacheSourceContentBuilder({List<String> exportedUris, List<String> importedUri
s, idl.CacheSourceKind kind, List<String> partUris}) | 388 CacheSourceContentBuilder({List<String> exportedUris, List<String> importedUri
s, idl.CacheSourceKind kind, List<String> partUris}) |
| 389 : _exportedUris = exportedUris, | 389 : _exportedUris = exportedUris, |
| 390 _importedUris = importedUris, | 390 _importedUris = importedUris, |
| 391 _kind = kind, | 391 _kind = kind, |
| 392 _partUris = partUris; | 392 _partUris = partUris; |
| 393 | 393 |
| 394 /** | 394 /** |
| 395 * Flush [informative] data recursively. | 395 * Flush [informative] data recursively. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 | 536 |
| 537 class CacheSourceErrorsInLibraryBuilder extends Object with _CacheSourceErrorsIn
LibraryMixin implements idl.CacheSourceErrorsInLibrary { | 537 class CacheSourceErrorsInLibraryBuilder extends Object with _CacheSourceErrorsIn
LibraryMixin implements idl.CacheSourceErrorsInLibrary { |
| 538 List<CacheAnalysisErrorBuilder> _errors; | 538 List<CacheAnalysisErrorBuilder> _errors; |
| 539 | 539 |
| 540 @override | 540 @override |
| 541 List<CacheAnalysisErrorBuilder> get errors => _errors ??= <CacheAnalysisErrorB
uilder>[]; | 541 List<CacheAnalysisErrorBuilder> get errors => _errors ??= <CacheAnalysisErrorB
uilder>[]; |
| 542 | 542 |
| 543 /** | 543 /** |
| 544 * The list of errors in the source in the library. | 544 * The list of errors in the source in the library. |
| 545 */ | 545 */ |
| 546 void set errors(List<CacheAnalysisErrorBuilder> _value) { | 546 void set errors(List<CacheAnalysisErrorBuilder> value) { |
| 547 _errors = _value; | 547 this._errors = value; |
| 548 } | 548 } |
| 549 | 549 |
| 550 CacheSourceErrorsInLibraryBuilder({List<CacheAnalysisErrorBuilder> errors}) | 550 CacheSourceErrorsInLibraryBuilder({List<CacheAnalysisErrorBuilder> errors}) |
| 551 : _errors = errors; | 551 : _errors = errors; |
| 552 | 552 |
| 553 /** | 553 /** |
| 554 * Flush [informative] data recursively. | 554 * Flush [informative] data recursively. |
| 555 */ | 555 */ |
| 556 void flushInformative() { | 556 void flushInformative() { |
| 557 _errors?.forEach((b) => b.flushInformative()); | 557 _errors?.forEach((b) => b.flushInformative()); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 class CodeRangeBuilder extends Object with _CodeRangeMixin implements idl.CodeRa
nge { | 636 class CodeRangeBuilder extends Object with _CodeRangeMixin implements idl.CodeRa
nge { |
| 637 int _length; | 637 int _length; |
| 638 int _offset; | 638 int _offset; |
| 639 | 639 |
| 640 @override | 640 @override |
| 641 int get length => _length ??= 0; | 641 int get length => _length ??= 0; |
| 642 | 642 |
| 643 /** | 643 /** |
| 644 * Length of the element code. | 644 * Length of the element code. |
| 645 */ | 645 */ |
| 646 void set length(int _value) { | 646 void set length(int value) { |
| 647 assert(_value == null || _value >= 0); | 647 assert(value == null || value >= 0); |
| 648 _length = _value; | 648 this._length = value; |
| 649 } | 649 } |
| 650 | 650 |
| 651 @override | 651 @override |
| 652 int get offset => _offset ??= 0; | 652 int get offset => _offset ??= 0; |
| 653 | 653 |
| 654 /** | 654 /** |
| 655 * Offset of the element code relative to the beginning of the file. | 655 * Offset of the element code relative to the beginning of the file. |
| 656 */ | 656 */ |
| 657 void set offset(int _value) { | 657 void set offset(int value) { |
| 658 assert(_value == null || _value >= 0); | 658 assert(value == null || value >= 0); |
| 659 _offset = _value; | 659 this._offset = value; |
| 660 } | 660 } |
| 661 | 661 |
| 662 CodeRangeBuilder({int length, int offset}) | 662 CodeRangeBuilder({int length, int offset}) |
| 663 : _length = length, | 663 : _length = length, |
| 664 _offset = offset; | 664 _offset = offset; |
| 665 | 665 |
| 666 /** | 666 /** |
| 667 * Flush [informative] data recursively. | 667 * Flush [informative] data recursively. |
| 668 */ | 668 */ |
| 669 void flushInformative() { | 669 void flushInformative() { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 * void f(x, void g(y, z, int h(String w))) { ... } | 764 * void f(x, void g(y, z, int h(String w))) { ... } |
| 765 * | 765 * |
| 766 * Then to refer to the function type implicitly defined by parameter `h` | 766 * Then to refer to the function type implicitly defined by parameter `h` |
| 767 * (which is parameter 2 of parameter 1 of `f`), then | 767 * (which is parameter 2 of parameter 1 of `f`), then |
| 768 * [implicitFunctionTypeIndices] should be [1, 2]. | 768 * [implicitFunctionTypeIndices] should be [1, 2]. |
| 769 * | 769 * |
| 770 * Note that if the entity being referred to is a generic method inside a | 770 * Note that if the entity being referred to is a generic method inside a |
| 771 * generic class, then the type arguments in [typeArguments] are applied | 771 * generic class, then the type arguments in [typeArguments] are applied |
| 772 * first to the class and then to the method. | 772 * first to the class and then to the method. |
| 773 */ | 773 */ |
| 774 void set implicitFunctionTypeIndices(List<int> _value) { | 774 void set implicitFunctionTypeIndices(List<int> value) { |
| 775 assert(_value == null || _value.every((e) => e >= 0)); | 775 assert(value == null || value.every((e) => e >= 0)); |
| 776 _implicitFunctionTypeIndices = _value; | 776 this._implicitFunctionTypeIndices = value; |
| 777 } | 777 } |
| 778 | 778 |
| 779 @override | 779 @override |
| 780 int get paramReference => _paramReference ??= 0; | 780 int get paramReference => _paramReference ??= 0; |
| 781 | 781 |
| 782 /** | 782 /** |
| 783 * If this is a reference to a type parameter, one-based index into the list | 783 * If this is a reference to a type parameter, one-based index into the list |
| 784 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De | 784 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De |
| 785 * Bruijn index conventions; that is, innermost parameters come first, and | 785 * Bruijn index conventions; that is, innermost parameters come first, and |
| 786 * if a class or method has multiple parameters, they are indexed from right | 786 * if a class or method has multiple parameters, they are indexed from right |
| 787 * to left. So for instance, if the enclosing declaration is | 787 * to left. So for instance, if the enclosing declaration is |
| 788 * | 788 * |
| 789 * class C<T,U> { | 789 * class C<T,U> { |
| 790 * m<V,W> { | 790 * m<V,W> { |
| 791 * ... | 791 * ... |
| 792 * } | 792 * } |
| 793 * } | 793 * } |
| 794 * | 794 * |
| 795 * Then [paramReference] values of 1, 2, 3, and 4 represent W, V, U, and T, | 795 * Then [paramReference] values of 1, 2, 3, and 4 represent W, V, U, and T, |
| 796 * respectively. | 796 * respectively. |
| 797 * | 797 * |
| 798 * If the type being referred to is not a type parameter, [paramReference] is | 798 * If the type being referred to is not a type parameter, [paramReference] is |
| 799 * zero. | 799 * zero. |
| 800 */ | 800 */ |
| 801 void set paramReference(int _value) { | 801 void set paramReference(int value) { |
| 802 assert(_value == null || _value >= 0); | 802 assert(value == null || value >= 0); |
| 803 _paramReference = _value; | 803 this._paramReference = value; |
| 804 } | 804 } |
| 805 | 805 |
| 806 @override | 806 @override |
| 807 int get reference => _reference ??= 0; | 807 int get reference => _reference ??= 0; |
| 808 | 808 |
| 809 /** | 809 /** |
| 810 * Index into [UnlinkedUnit.references] for the entity being referred to, or | 810 * Index into [UnlinkedUnit.references] for the entity being referred to, or |
| 811 * zero if this is a reference to a type parameter. | 811 * zero if this is a reference to a type parameter. |
| 812 */ | 812 */ |
| 813 void set reference(int _value) { | 813 void set reference(int value) { |
| 814 assert(_value == null || _value >= 0); | 814 assert(value == null || value >= 0); |
| 815 _reference = _value; | 815 this._reference = value; |
| 816 } | 816 } |
| 817 | 817 |
| 818 @override | 818 @override |
| 819 int get slot => _slot ??= 0; | 819 int get slot => _slot ??= 0; |
| 820 | 820 |
| 821 /** | 821 /** |
| 822 * If this [EntityRef] is contained within [LinkedUnit.types], slot id (which | 822 * If this [EntityRef] is contained within [LinkedUnit.types], slot id (which |
| 823 * is unique within the compilation unit) identifying the target of type | 823 * is unique within the compilation unit) identifying the target of type |
| 824 * propagation or type inference with which this [EntityRef] is associated. | 824 * propagation or type inference with which this [EntityRef] is associated. |
| 825 * | 825 * |
| 826 * Otherwise zero. | 826 * Otherwise zero. |
| 827 */ | 827 */ |
| 828 void set slot(int _value) { | 828 void set slot(int value) { |
| 829 assert(_value == null || _value >= 0); | 829 assert(value == null || value >= 0); |
| 830 _slot = _value; | 830 this._slot = value; |
| 831 } | 831 } |
| 832 | 832 |
| 833 @override | 833 @override |
| 834 List<UnlinkedParamBuilder> get syntheticParams => _syntheticParams ??= <Unlink
edParamBuilder>[]; | 834 List<UnlinkedParamBuilder> get syntheticParams => _syntheticParams ??= <Unlink
edParamBuilder>[]; |
| 835 | 835 |
| 836 /** | 836 /** |
| 837 * If this [EntityRef] is a reference to a function type whose | 837 * If this [EntityRef] is a reference to a function type whose |
| 838 * [FunctionElement] is not in any library (e.g. a function type that was | 838 * [FunctionElement] is not in any library (e.g. a function type that was |
| 839 * synthesized by a LUB computation), the function parameters. Otherwise | 839 * synthesized by a LUB computation), the function parameters. Otherwise |
| 840 * empty. | 840 * empty. |
| 841 */ | 841 */ |
| 842 void set syntheticParams(List<UnlinkedParamBuilder> _value) { | 842 void set syntheticParams(List<UnlinkedParamBuilder> value) { |
| 843 _syntheticParams = _value; | 843 this._syntheticParams = value; |
| 844 } | 844 } |
| 845 | 845 |
| 846 @override | 846 @override |
| 847 EntityRefBuilder get syntheticReturnType => _syntheticReturnType; | 847 EntityRefBuilder get syntheticReturnType => _syntheticReturnType; |
| 848 | 848 |
| 849 /** | 849 /** |
| 850 * If this [EntityRef] is a reference to a function type whose | 850 * If this [EntityRef] is a reference to a function type whose |
| 851 * [FunctionElement] is not in any library (e.g. a function type that was | 851 * [FunctionElement] is not in any library (e.g. a function type that was |
| 852 * synthesized by a LUB computation), the return type of the function. | 852 * synthesized by a LUB computation), the return type of the function. |
| 853 * Otherwise `null`. | 853 * Otherwise `null`. |
| 854 */ | 854 */ |
| 855 void set syntheticReturnType(EntityRefBuilder _value) { | 855 void set syntheticReturnType(EntityRefBuilder value) { |
| 856 _syntheticReturnType = _value; | 856 this._syntheticReturnType = value; |
| 857 } | 857 } |
| 858 | 858 |
| 859 @override | 859 @override |
| 860 List<EntityRefBuilder> get typeArguments => _typeArguments ??= <EntityRefBuild
er>[]; | 860 List<EntityRefBuilder> get typeArguments => _typeArguments ??= <EntityRefBuild
er>[]; |
| 861 | 861 |
| 862 /** | 862 /** |
| 863 * If this is an instantiation of a generic type or generic executable, the | 863 * If this is an instantiation of a generic type or generic executable, the |
| 864 * type arguments used to instantiate it (if any). | 864 * type arguments used to instantiate it (if any). |
| 865 */ | 865 */ |
| 866 void set typeArguments(List<EntityRefBuilder> _value) { | 866 void set typeArguments(List<EntityRefBuilder> value) { |
| 867 _typeArguments = _value; | 867 this._typeArguments = value; |
| 868 } | 868 } |
| 869 | 869 |
| 870 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<EntityRefBuilder> typeArguments}) | 870 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<EntityRefBuilder> typeArguments}) |
| 871 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, | 871 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, |
| 872 _paramReference = paramReference, | 872 _paramReference = paramReference, |
| 873 _reference = reference, | 873 _reference = reference, |
| 874 _slot = slot, | 874 _slot = slot, |
| 875 _syntheticParams = syntheticParams, | 875 _syntheticParams = syntheticParams, |
| 876 _syntheticReturnType = syntheticReturnType, | 876 _syntheticReturnType = syntheticReturnType, |
| 877 _typeArguments = typeArguments; | 877 _typeArguments = typeArguments; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 List<String> _parts; | 1060 List<String> _parts; |
| 1061 String _uri; | 1061 String _uri; |
| 1062 | 1062 |
| 1063 @override | 1063 @override |
| 1064 List<String> get parts => _parts ??= <String>[]; | 1064 List<String> get parts => _parts ??= <String>[]; |
| 1065 | 1065 |
| 1066 /** | 1066 /** |
| 1067 * URI for the compilation units listed in the library's `part` declarations. | 1067 * URI for the compilation units listed in the library's `part` declarations. |
| 1068 * These URIs are relative to the importing library. | 1068 * These URIs are relative to the importing library. |
| 1069 */ | 1069 */ |
| 1070 void set parts(List<String> _value) { | 1070 void set parts(List<String> value) { |
| 1071 _parts = _value; | 1071 this._parts = value; |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 @override | 1074 @override |
| 1075 String get uri => _uri ??= ''; | 1075 String get uri => _uri ??= ''; |
| 1076 | 1076 |
| 1077 /** | 1077 /** |
| 1078 * The relative URI of the dependent library. This URI is relative to the | 1078 * The relative URI of the dependent library. This URI is relative to the |
| 1079 * importing library, even if there are intervening `export` declarations. | 1079 * importing library, even if there are intervening `export` declarations. |
| 1080 * So, for example, if `a.dart` imports `b/c.dart` and `b/c.dart` exports | 1080 * So, for example, if `a.dart` imports `b/c.dart` and `b/c.dart` exports |
| 1081 * `d/e.dart`, the URI listed for `a.dart`'s dependency on `e.dart` will be | 1081 * `d/e.dart`, the URI listed for `a.dart`'s dependency on `e.dart` will be |
| 1082 * `b/d/e.dart`. | 1082 * `b/d/e.dart`. |
| 1083 */ | 1083 */ |
| 1084 void set uri(String _value) { | 1084 void set uri(String value) { |
| 1085 _uri = _value; | 1085 this._uri = value; |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 LinkedDependencyBuilder({List<String> parts, String uri}) | 1088 LinkedDependencyBuilder({List<String> parts, String uri}) |
| 1089 : _parts = parts, | 1089 : _parts = parts, |
| 1090 _uri = uri; | 1090 _uri = uri; |
| 1091 | 1091 |
| 1092 /** | 1092 /** |
| 1093 * Flush [informative] data recursively. | 1093 * Flush [informative] data recursively. |
| 1094 */ | 1094 */ |
| 1095 void flushInformative() { | 1095 void flushInformative() { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 String _name; | 1184 String _name; |
| 1185 int _unit; | 1185 int _unit; |
| 1186 | 1186 |
| 1187 @override | 1187 @override |
| 1188 int get dependency => _dependency ??= 0; | 1188 int get dependency => _dependency ??= 0; |
| 1189 | 1189 |
| 1190 /** | 1190 /** |
| 1191 * Index into [LinkedLibrary.dependencies] for the library in which the | 1191 * Index into [LinkedLibrary.dependencies] for the library in which the |
| 1192 * entity is defined. | 1192 * entity is defined. |
| 1193 */ | 1193 */ |
| 1194 void set dependency(int _value) { | 1194 void set dependency(int value) { |
| 1195 assert(_value == null || _value >= 0); | 1195 assert(value == null || value >= 0); |
| 1196 _dependency = _value; | 1196 this._dependency = value; |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 @override | 1199 @override |
| 1200 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; | 1200 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; |
| 1201 | 1201 |
| 1202 /** | 1202 /** |
| 1203 * The kind of the entity being referred to. | 1203 * The kind of the entity being referred to. |
| 1204 */ | 1204 */ |
| 1205 void set kind(idl.ReferenceKind _value) { | 1205 void set kind(idl.ReferenceKind value) { |
| 1206 _kind = _value; | 1206 this._kind = value; |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 @override | 1209 @override |
| 1210 String get name => _name ??= ''; | 1210 String get name => _name ??= ''; |
| 1211 | 1211 |
| 1212 /** | 1212 /** |
| 1213 * Name of the exported entity. For an exported setter, this name includes | 1213 * Name of the exported entity. For an exported setter, this name includes |
| 1214 * the trailing '='. | 1214 * the trailing '='. |
| 1215 */ | 1215 */ |
| 1216 void set name(String _value) { | 1216 void set name(String value) { |
| 1217 _name = _value; | 1217 this._name = value; |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 @override | 1220 @override |
| 1221 int get unit => _unit ??= 0; | 1221 int get unit => _unit ??= 0; |
| 1222 | 1222 |
| 1223 /** | 1223 /** |
| 1224 * Integer index indicating which unit in the exported library contains the | 1224 * Integer index indicating which unit in the exported library contains the |
| 1225 * definition of the entity. As with indices into [LinkedLibrary.units], | 1225 * definition of the entity. As with indices into [LinkedLibrary.units], |
| 1226 * zero represents the defining compilation unit, and nonzero values | 1226 * zero represents the defining compilation unit, and nonzero values |
| 1227 * represent parts in the order of the corresponding `part` declarations. | 1227 * represent parts in the order of the corresponding `part` declarations. |
| 1228 */ | 1228 */ |
| 1229 void set unit(int _value) { | 1229 void set unit(int value) { |
| 1230 assert(_value == null || _value >= 0); | 1230 assert(value == null || value >= 0); |
| 1231 _unit = _value; | 1231 this._unit = value; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 LinkedExportNameBuilder({int dependency, idl.ReferenceKind kind, String name,
int unit}) | 1234 LinkedExportNameBuilder({int dependency, idl.ReferenceKind kind, String name,
int unit}) |
| 1235 : _dependency = dependency, | 1235 : _dependency = dependency, |
| 1236 _kind = kind, | 1236 _kind = kind, |
| 1237 _name = name, | 1237 _name = name, |
| 1238 _unit = unit; | 1238 _unit = unit; |
| 1239 | 1239 |
| 1240 /** | 1240 /** |
| 1241 * Flush [informative] data recursively. | 1241 * Flush [informative] data recursively. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 * dependencies (direct imports and the transitive closure of exports). | 1362 * dependencies (direct imports and the transitive closure of exports). |
| 1363 * After the prelinked dependencies are elements representing "linked" | 1363 * After the prelinked dependencies are elements representing "linked" |
| 1364 * dependencies. | 1364 * dependencies. |
| 1365 * | 1365 * |
| 1366 * A library is only included as a "linked" dependency if it is a true | 1366 * A library is only included as a "linked" dependency if it is a true |
| 1367 * dependency (e.g. a propagated or inferred type or constant value | 1367 * dependency (e.g. a propagated or inferred type or constant value |
| 1368 * implicitly refers to an element declared in the library) or | 1368 * implicitly refers to an element declared in the library) or |
| 1369 * anti-dependency (e.g. the result of type propagation or type inference | 1369 * anti-dependency (e.g. the result of type propagation or type inference |
| 1370 * depends on the lack of a certain declaration in the library). | 1370 * depends on the lack of a certain declaration in the library). |
| 1371 */ | 1371 */ |
| 1372 void set dependencies(List<LinkedDependencyBuilder> _value) { | 1372 void set dependencies(List<LinkedDependencyBuilder> value) { |
| 1373 _dependencies = _value; | 1373 this._dependencies = value; |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 @override | 1376 @override |
| 1377 List<int> get exportDependencies => _exportDependencies ??= <int>[]; | 1377 List<int> get exportDependencies => _exportDependencies ??= <int>[]; |
| 1378 | 1378 |
| 1379 /** | 1379 /** |
| 1380 * For each export in [UnlinkedUnit.exports], an index into [dependencies] | 1380 * For each export in [UnlinkedUnit.exports], an index into [dependencies] |
| 1381 * of the library being exported. | 1381 * of the library being exported. |
| 1382 */ | 1382 */ |
| 1383 void set exportDependencies(List<int> _value) { | 1383 void set exportDependencies(List<int> value) { |
| 1384 assert(_value == null || _value.every((e) => e >= 0)); | 1384 assert(value == null || value.every((e) => e >= 0)); |
| 1385 _exportDependencies = _value; | 1385 this._exportDependencies = value; |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 @override | 1388 @override |
| 1389 List<LinkedExportNameBuilder> get exportNames => _exportNames ??= <LinkedExpor
tNameBuilder>[]; | 1389 List<LinkedExportNameBuilder> get exportNames => _exportNames ??= <LinkedExpor
tNameBuilder>[]; |
| 1390 | 1390 |
| 1391 /** | 1391 /** |
| 1392 * Information about entities in the export namespace of the library that are | 1392 * Information about entities in the export namespace of the library that are |
| 1393 * not in the public namespace of the library (that is, entities that are | 1393 * not in the public namespace of the library (that is, entities that are |
| 1394 * brought into the namespace via `export` directives). | 1394 * brought into the namespace via `export` directives). |
| 1395 * | 1395 * |
| 1396 * Sorted by name. | 1396 * Sorted by name. |
| 1397 */ | 1397 */ |
| 1398 void set exportNames(List<LinkedExportNameBuilder> _value) { | 1398 void set exportNames(List<LinkedExportNameBuilder> value) { |
| 1399 _exportNames = _value; | 1399 this._exportNames = value; |
| 1400 } | 1400 } |
| 1401 | 1401 |
| 1402 @override | 1402 @override |
| 1403 bool get fallbackMode => _fallbackMode ??= false; | 1403 bool get fallbackMode => _fallbackMode ??= false; |
| 1404 | 1404 |
| 1405 /** | 1405 /** |
| 1406 * Indicates whether this library was summarized in "fallback mode". If | 1406 * Indicates whether this library was summarized in "fallback mode". If |
| 1407 * true, all other fields in the data structure have their default values. | 1407 * true, all other fields in the data structure have their default values. |
| 1408 */ | 1408 */ |
| 1409 void set fallbackMode(bool _value) { | 1409 void set fallbackMode(bool value) { |
| 1410 _fallbackMode = _value; | 1410 this._fallbackMode = value; |
| 1411 } | 1411 } |
| 1412 | 1412 |
| 1413 @override | 1413 @override |
| 1414 List<int> get importDependencies => _importDependencies ??= <int>[]; | 1414 List<int> get importDependencies => _importDependencies ??= <int>[]; |
| 1415 | 1415 |
| 1416 /** | 1416 /** |
| 1417 * For each import in [UnlinkedUnit.imports], an index into [dependencies] | 1417 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
| 1418 * of the library being imported. | 1418 * of the library being imported. |
| 1419 */ | 1419 */ |
| 1420 void set importDependencies(List<int> _value) { | 1420 void set importDependencies(List<int> value) { |
| 1421 assert(_value == null || _value.every((e) => e >= 0)); | 1421 assert(value == null || value.every((e) => e >= 0)); |
| 1422 _importDependencies = _value; | 1422 this._importDependencies = value; |
| 1423 } | 1423 } |
| 1424 | 1424 |
| 1425 @override | 1425 @override |
| 1426 int get numPrelinkedDependencies => _numPrelinkedDependencies ??= 0; | 1426 int get numPrelinkedDependencies => _numPrelinkedDependencies ??= 0; |
| 1427 | 1427 |
| 1428 /** | 1428 /** |
| 1429 * The number of elements in [dependencies] which are not "linked" | 1429 * The number of elements in [dependencies] which are not "linked" |
| 1430 * dependencies (that is, the number of libraries in the direct imports plus | 1430 * dependencies (that is, the number of libraries in the direct imports plus |
| 1431 * the transitive closure of exports, plus the library itself). | 1431 * the transitive closure of exports, plus the library itself). |
| 1432 */ | 1432 */ |
| 1433 void set numPrelinkedDependencies(int _value) { | 1433 void set numPrelinkedDependencies(int value) { |
| 1434 assert(_value == null || _value >= 0); | 1434 assert(value == null || value >= 0); |
| 1435 _numPrelinkedDependencies = _value; | 1435 this._numPrelinkedDependencies = value; |
| 1436 } | 1436 } |
| 1437 | 1437 |
| 1438 @override | 1438 @override |
| 1439 List<LinkedUnitBuilder> get units => _units ??= <LinkedUnitBuilder>[]; | 1439 List<LinkedUnitBuilder> get units => _units ??= <LinkedUnitBuilder>[]; |
| 1440 | 1440 |
| 1441 /** | 1441 /** |
| 1442 * The linked summary of all the compilation units constituting the | 1442 * The linked summary of all the compilation units constituting the |
| 1443 * library. The summary of the defining compilation unit is listed first, | 1443 * library. The summary of the defining compilation unit is listed first, |
| 1444 * followed by the summary of each part, in the order of the `part` | 1444 * followed by the summary of each part, in the order of the `part` |
| 1445 * declarations in the defining compilation unit. | 1445 * declarations in the defining compilation unit. |
| 1446 */ | 1446 */ |
| 1447 void set units(List<LinkedUnitBuilder> _value) { | 1447 void set units(List<LinkedUnitBuilder> value) { |
| 1448 _units = _value; | 1448 this._units = value; |
| 1449 } | 1449 } |
| 1450 | 1450 |
| 1451 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<int> ex
portDependencies, List<LinkedExportNameBuilder> exportNames, bool fallbackMode,
List<int> importDependencies, int numPrelinkedDependencies, List<LinkedUnitBuild
er> units}) | 1451 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<int> ex
portDependencies, List<LinkedExportNameBuilder> exportNames, bool fallbackMode,
List<int> importDependencies, int numPrelinkedDependencies, List<LinkedUnitBuild
er> units}) |
| 1452 : _dependencies = dependencies, | 1452 : _dependencies = dependencies, |
| 1453 _exportDependencies = exportDependencies, | 1453 _exportDependencies = exportDependencies, |
| 1454 _exportNames = exportNames, | 1454 _exportNames = exportNames, |
| 1455 _fallbackMode = fallbackMode, | 1455 _fallbackMode = fallbackMode, |
| 1456 _importDependencies = importDependencies, | 1456 _importDependencies = importDependencies, |
| 1457 _numPrelinkedDependencies = numPrelinkedDependencies, | 1457 _numPrelinkedDependencies = numPrelinkedDependencies, |
| 1458 _units = units; | 1458 _units = units; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], | 1680 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], |
| 1681 * and the entity being referred to is contained within another entity, index | 1681 * and the entity being referred to is contained within another entity, index |
| 1682 * of the containing entity. This behaves similarly to | 1682 * of the containing entity. This behaves similarly to |
| 1683 * [UnlinkedReference.prefixReference], however it is only used for class | 1683 * [UnlinkedReference.prefixReference], however it is only used for class |
| 1684 * members, not for prefixed imports. | 1684 * members, not for prefixed imports. |
| 1685 * | 1685 * |
| 1686 * Containing references must always point backward; that is, for all i, if | 1686 * Containing references must always point backward; that is, for all i, if |
| 1687 * LinkedUnit.references[i].containingReference != 0, then | 1687 * LinkedUnit.references[i].containingReference != 0, then |
| 1688 * LinkedUnit.references[i].containingReference < i. | 1688 * LinkedUnit.references[i].containingReference < i. |
| 1689 */ | 1689 */ |
| 1690 void set containingReference(int _value) { | 1690 void set containingReference(int value) { |
| 1691 assert(_value == null || _value >= 0); | 1691 assert(value == null || value >= 0); |
| 1692 _containingReference = _value; | 1692 this._containingReference = value; |
| 1693 } | 1693 } |
| 1694 | 1694 |
| 1695 @override | 1695 @override |
| 1696 int get dependency => _dependency ??= 0; | 1696 int get dependency => _dependency ??= 0; |
| 1697 | 1697 |
| 1698 /** | 1698 /** |
| 1699 * Index into [LinkedLibrary.dependencies] indicating which imported library | 1699 * Index into [LinkedLibrary.dependencies] indicating which imported library |
| 1700 * declares the entity being referred to. | 1700 * declares the entity being referred to. |
| 1701 * | 1701 * |
| 1702 * Zero if this entity is contained within another entity (e.g. a class | 1702 * Zero if this entity is contained within another entity (e.g. a class |
| 1703 * member), or if [kind] is [ReferenceKind.prefix]. | 1703 * member), or if [kind] is [ReferenceKind.prefix]. |
| 1704 */ | 1704 */ |
| 1705 void set dependency(int _value) { | 1705 void set dependency(int value) { |
| 1706 assert(_value == null || _value >= 0); | 1706 assert(value == null || value >= 0); |
| 1707 _dependency = _value; | 1707 this._dependency = value; |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 @override | 1710 @override |
| 1711 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; | 1711 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; |
| 1712 | 1712 |
| 1713 /** | 1713 /** |
| 1714 * The kind of the entity being referred to. For the pseudo-types `dynamic` | 1714 * The kind of the entity being referred to. For the pseudo-types `dynamic` |
| 1715 * and `void`, the kind is [ReferenceKind.classOrEnum]. | 1715 * and `void`, the kind is [ReferenceKind.classOrEnum]. |
| 1716 */ | 1716 */ |
| 1717 void set kind(idl.ReferenceKind _value) { | 1717 void set kind(idl.ReferenceKind value) { |
| 1718 _kind = _value; | 1718 this._kind = value; |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 @override | 1721 @override |
| 1722 int get localIndex => _localIndex ??= 0; | 1722 int get localIndex => _localIndex ??= 0; |
| 1723 | 1723 |
| 1724 /** | 1724 /** |
| 1725 * If [kind] is [ReferenceKind.function] (that is, the entity being referred | 1725 * If [kind] is [ReferenceKind.function] (that is, the entity being referred |
| 1726 * to is a local function), the index of the function within | 1726 * to is a local function), the index of the function within |
| 1727 * [UnlinkedExecutable.localFunctions]. If [kind] is | 1727 * [UnlinkedExecutable.localFunctions]. If [kind] is |
| 1728 * [ReferenceKind.variable], the index of the variable within | 1728 * [ReferenceKind.variable], the index of the variable within |
| 1729 * [UnlinkedExecutable.localVariables]. Otherwise zero. | 1729 * [UnlinkedExecutable.localVariables]. Otherwise zero. |
| 1730 */ | 1730 */ |
| 1731 void set localIndex(int _value) { | 1731 void set localIndex(int value) { |
| 1732 assert(_value == null || _value >= 0); | 1732 assert(value == null || value >= 0); |
| 1733 _localIndex = _value; | 1733 this._localIndex = value; |
| 1734 } | 1734 } |
| 1735 | 1735 |
| 1736 @override | 1736 @override |
| 1737 String get name => _name ??= ''; | 1737 String get name => _name ??= ''; |
| 1738 | 1738 |
| 1739 /** | 1739 /** |
| 1740 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], | 1740 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], |
| 1741 * name of the entity being referred to. For the pseudo-type `dynamic`, the | 1741 * name of the entity being referred to. For the pseudo-type `dynamic`, the |
| 1742 * string is "dynamic". For the pseudo-type `void`, the string is "void". | 1742 * string is "dynamic". For the pseudo-type `void`, the string is "void". |
| 1743 */ | 1743 */ |
| 1744 void set name(String _value) { | 1744 void set name(String value) { |
| 1745 _name = _value; | 1745 this._name = value; |
| 1746 } | 1746 } |
| 1747 | 1747 |
| 1748 @override | 1748 @override |
| 1749 int get numTypeParameters => _numTypeParameters ??= 0; | 1749 int get numTypeParameters => _numTypeParameters ??= 0; |
| 1750 | 1750 |
| 1751 /** | 1751 /** |
| 1752 * If the entity being referred to is generic, the number of type parameters | 1752 * If the entity being referred to is generic, the number of type parameters |
| 1753 * it declares (does not include type parameters of enclosing entities). | 1753 * it declares (does not include type parameters of enclosing entities). |
| 1754 * Otherwise zero. | 1754 * Otherwise zero. |
| 1755 */ | 1755 */ |
| 1756 void set numTypeParameters(int _value) { | 1756 void set numTypeParameters(int value) { |
| 1757 assert(_value == null || _value >= 0); | 1757 assert(value == null || value >= 0); |
| 1758 _numTypeParameters = _value; | 1758 this._numTypeParameters = value; |
| 1759 } | 1759 } |
| 1760 | 1760 |
| 1761 @override | 1761 @override |
| 1762 int get unit => _unit ??= 0; | 1762 int get unit => _unit ??= 0; |
| 1763 | 1763 |
| 1764 /** | 1764 /** |
| 1765 * Integer index indicating which unit in the imported library contains the | 1765 * Integer index indicating which unit in the imported library contains the |
| 1766 * definition of the entity. As with indices into [LinkedLibrary.units], | 1766 * definition of the entity. As with indices into [LinkedLibrary.units], |
| 1767 * zero represents the defining compilation unit, and nonzero values | 1767 * zero represents the defining compilation unit, and nonzero values |
| 1768 * represent parts in the order of the corresponding `part` declarations. | 1768 * represent parts in the order of the corresponding `part` declarations. |
| 1769 * | 1769 * |
| 1770 * Zero if this entity is contained within another entity (e.g. a class | 1770 * Zero if this entity is contained within another entity (e.g. a class |
| 1771 * member). | 1771 * member). |
| 1772 */ | 1772 */ |
| 1773 void set unit(int _value) { | 1773 void set unit(int value) { |
| 1774 assert(_value == null || _value >= 0); | 1774 assert(value == null || value >= 0); |
| 1775 _unit = _value; | 1775 this._unit = value; |
| 1776 } | 1776 } |
| 1777 | 1777 |
| 1778 LinkedReferenceBuilder({int containingReference, int dependency, idl.Reference
Kind kind, int localIndex, String name, int numTypeParameters, int unit}) | 1778 LinkedReferenceBuilder({int containingReference, int dependency, idl.Reference
Kind kind, int localIndex, String name, int numTypeParameters, int unit}) |
| 1779 : _containingReference = containingReference, | 1779 : _containingReference = containingReference, |
| 1780 _dependency = dependency, | 1780 _dependency = dependency, |
| 1781 _kind = kind, | 1781 _kind = kind, |
| 1782 _localIndex = localIndex, | 1782 _localIndex = localIndex, |
| 1783 _name = name, | 1783 _name = name, |
| 1784 _numTypeParameters = numTypeParameters, | 1784 _numTypeParameters = numTypeParameters, |
| 1785 _unit = unit; | 1785 _unit = unit; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1932 List<LinkedReferenceBuilder> _references; | 1932 List<LinkedReferenceBuilder> _references; |
| 1933 List<EntityRefBuilder> _types; | 1933 List<EntityRefBuilder> _types; |
| 1934 | 1934 |
| 1935 @override | 1935 @override |
| 1936 List<int> get constCycles => _constCycles ??= <int>[]; | 1936 List<int> get constCycles => _constCycles ??= <int>[]; |
| 1937 | 1937 |
| 1938 /** | 1938 /** |
| 1939 * List of slot ids (referring to [UnlinkedExecutable.constCycleSlot]) | 1939 * List of slot ids (referring to [UnlinkedExecutable.constCycleSlot]) |
| 1940 * corresponding to const constructors that are part of cycles. | 1940 * corresponding to const constructors that are part of cycles. |
| 1941 */ | 1941 */ |
| 1942 void set constCycles(List<int> _value) { | 1942 void set constCycles(List<int> value) { |
| 1943 assert(_value == null || _value.every((e) => e >= 0)); | 1943 assert(value == null || value.every((e) => e >= 0)); |
| 1944 _constCycles = _value; | 1944 this._constCycles = value; |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 @override | 1947 @override |
| 1948 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; | 1948 List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenc
eBuilder>[]; |
| 1949 | 1949 |
| 1950 /** | 1950 /** |
| 1951 * Information about the resolution of references within the compilation | 1951 * Information about the resolution of references within the compilation |
| 1952 * unit. Each element of [UnlinkedUnit.references] has a corresponding | 1952 * unit. Each element of [UnlinkedUnit.references] has a corresponding |
| 1953 * element in this list (at the same index). If this list has additional | 1953 * element in this list (at the same index). If this list has additional |
| 1954 * elements beyond the number of elements in [UnlinkedUnit.references], those | 1954 * elements beyond the number of elements in [UnlinkedUnit.references], those |
| 1955 * additional elements are references that are only referred to implicitly | 1955 * additional elements are references that are only referred to implicitly |
| 1956 * (e.g. elements involved in inferred or propagated types). | 1956 * (e.g. elements involved in inferred or propagated types). |
| 1957 */ | 1957 */ |
| 1958 void set references(List<LinkedReferenceBuilder> _value) { | 1958 void set references(List<LinkedReferenceBuilder> value) { |
| 1959 _references = _value; | 1959 this._references = value; |
| 1960 } | 1960 } |
| 1961 | 1961 |
| 1962 @override | 1962 @override |
| 1963 List<EntityRefBuilder> get types => _types ??= <EntityRefBuilder>[]; | 1963 List<EntityRefBuilder> get types => _types ??= <EntityRefBuilder>[]; |
| 1964 | 1964 |
| 1965 /** | 1965 /** |
| 1966 * List associating slot ids found inside the unlinked summary for the | 1966 * List associating slot ids found inside the unlinked summary for the |
| 1967 * compilation unit with propagated and inferred types. | 1967 * compilation unit with propagated and inferred types. |
| 1968 */ | 1968 */ |
| 1969 void set types(List<EntityRefBuilder> _value) { | 1969 void set types(List<EntityRefBuilder> value) { |
| 1970 _types = _value; | 1970 this._types = value; |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 LinkedUnitBuilder({List<int> constCycles, List<LinkedReferenceBuilder> referen
ces, List<EntityRefBuilder> types}) | 1973 LinkedUnitBuilder({List<int> constCycles, List<LinkedReferenceBuilder> referen
ces, List<EntityRefBuilder> types}) |
| 1974 : _constCycles = constCycles, | 1974 : _constCycles = constCycles, |
| 1975 _references = references, | 1975 _references = references, |
| 1976 _types = types; | 1976 _types = types; |
| 1977 | 1977 |
| 1978 /** | 1978 /** |
| 1979 * Flush [informative] data recursively. | 1979 * Flush [informative] data recursively. |
| 1980 */ | 1980 */ |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 List<String> _unlinkedUnitUris; | 2109 List<String> _unlinkedUnitUris; |
| 2110 | 2110 |
| 2111 @override | 2111 @override |
| 2112 String get apiSignature => _apiSignature ??= ''; | 2112 String get apiSignature => _apiSignature ??= ''; |
| 2113 | 2113 |
| 2114 /** | 2114 /** |
| 2115 * MD5 hash of the non-informative fields of the [PackageBundle] (not | 2115 * MD5 hash of the non-informative fields of the [PackageBundle] (not |
| 2116 * including this one). This can be used to identify when the API of a | 2116 * including this one). This can be used to identify when the API of a |
| 2117 * package may have changed. | 2117 * package may have changed. |
| 2118 */ | 2118 */ |
| 2119 void set apiSignature(String _value) { | 2119 void set apiSignature(String value) { |
| 2120 _apiSignature = _value; | 2120 this._apiSignature = value; |
| 2121 } | 2121 } |
| 2122 | 2122 |
| 2123 @override | 2123 @override |
| 2124 List<PackageDependencyInfoBuilder> get dependencies => _dependencies ??= <Pack
ageDependencyInfoBuilder>[]; | 2124 List<PackageDependencyInfoBuilder> get dependencies => _dependencies ??= <Pack
ageDependencyInfoBuilder>[]; |
| 2125 | 2125 |
| 2126 /** | 2126 /** |
| 2127 * Information about the packages this package depends on, if known. | 2127 * Information about the packages this package depends on, if known. |
| 2128 */ | 2128 */ |
| 2129 void set dependencies(List<PackageDependencyInfoBuilder> _value) { | 2129 void set dependencies(List<PackageDependencyInfoBuilder> value) { |
| 2130 _dependencies = _value; | 2130 this._dependencies = value; |
| 2131 } | 2131 } |
| 2132 | 2132 |
| 2133 @override | 2133 @override |
| 2134 List<LinkedLibraryBuilder> get linkedLibraries => _linkedLibraries ??= <Linked
LibraryBuilder>[]; | 2134 List<LinkedLibraryBuilder> get linkedLibraries => _linkedLibraries ??= <Linked
LibraryBuilder>[]; |
| 2135 | 2135 |
| 2136 /** | 2136 /** |
| 2137 * Linked libraries. | 2137 * Linked libraries. |
| 2138 */ | 2138 */ |
| 2139 void set linkedLibraries(List<LinkedLibraryBuilder> _value) { | 2139 void set linkedLibraries(List<LinkedLibraryBuilder> value) { |
| 2140 _linkedLibraries = _value; | 2140 this._linkedLibraries = value; |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 @override | 2143 @override |
| 2144 List<String> get linkedLibraryUris => _linkedLibraryUris ??= <String>[]; | 2144 List<String> get linkedLibraryUris => _linkedLibraryUris ??= <String>[]; |
| 2145 | 2145 |
| 2146 /** | 2146 /** |
| 2147 * The list of URIs of items in [linkedLibraries], e.g. `dart:core` or | 2147 * The list of URIs of items in [linkedLibraries], e.g. `dart:core` or |
| 2148 * `package:foo/bar.dart`. | 2148 * `package:foo/bar.dart`. |
| 2149 */ | 2149 */ |
| 2150 void set linkedLibraryUris(List<String> _value) { | 2150 void set linkedLibraryUris(List<String> value) { |
| 2151 _linkedLibraryUris = _value; | 2151 this._linkedLibraryUris = value; |
| 2152 } | 2152 } |
| 2153 | 2153 |
| 2154 @override | 2154 @override |
| 2155 int get majorVersion => _majorVersion ??= 0; | 2155 int get majorVersion => _majorVersion ??= 0; |
| 2156 | 2156 |
| 2157 /** | 2157 /** |
| 2158 * Major version of the summary format. See | 2158 * Major version of the summary format. See |
| 2159 * [PackageBundleAssembler.currentMajorVersion]. | 2159 * [PackageBundleAssembler.currentMajorVersion]. |
| 2160 */ | 2160 */ |
| 2161 void set majorVersion(int _value) { | 2161 void set majorVersion(int value) { |
| 2162 assert(_value == null || _value >= 0); | 2162 assert(value == null || value >= 0); |
| 2163 _majorVersion = _value; | 2163 this._majorVersion = value; |
| 2164 } | 2164 } |
| 2165 | 2165 |
| 2166 @override | 2166 @override |
| 2167 int get minorVersion => _minorVersion ??= 0; | 2167 int get minorVersion => _minorVersion ??= 0; |
| 2168 | 2168 |
| 2169 /** | 2169 /** |
| 2170 * Minor version of the summary format. See | 2170 * Minor version of the summary format. See |
| 2171 * [PackageBundleAssembler.currentMinorVersion]. | 2171 * [PackageBundleAssembler.currentMinorVersion]. |
| 2172 */ | 2172 */ |
| 2173 void set minorVersion(int _value) { | 2173 void set minorVersion(int value) { |
| 2174 assert(_value == null || _value >= 0); | 2174 assert(value == null || value >= 0); |
| 2175 _minorVersion = _value; | 2175 this._minorVersion = value; |
| 2176 } | 2176 } |
| 2177 | 2177 |
| 2178 @override | 2178 @override |
| 2179 List<String> get unlinkedUnitHashes => _unlinkedUnitHashes ??= <String>[]; | 2179 List<String> get unlinkedUnitHashes => _unlinkedUnitHashes ??= <String>[]; |
| 2180 | 2180 |
| 2181 /** | 2181 /** |
| 2182 * List of MD5 hashes of the files listed in [unlinkedUnitUris]. Each hash | 2182 * List of MD5 hashes of the files listed in [unlinkedUnitUris]. Each hash |
| 2183 * is encoded as a hexadecimal string using lower case letters. | 2183 * is encoded as a hexadecimal string using lower case letters. |
| 2184 */ | 2184 */ |
| 2185 void set unlinkedUnitHashes(List<String> _value) { | 2185 void set unlinkedUnitHashes(List<String> value) { |
| 2186 _unlinkedUnitHashes = _value; | 2186 this._unlinkedUnitHashes = value; |
| 2187 } | 2187 } |
| 2188 | 2188 |
| 2189 @override | 2189 @override |
| 2190 List<UnlinkedUnitBuilder> get unlinkedUnits => _unlinkedUnits ??= <UnlinkedUni
tBuilder>[]; | 2190 List<UnlinkedUnitBuilder> get unlinkedUnits => _unlinkedUnits ??= <UnlinkedUni
tBuilder>[]; |
| 2191 | 2191 |
| 2192 /** | 2192 /** |
| 2193 * Unlinked information for the compilation units constituting the package. | 2193 * Unlinked information for the compilation units constituting the package. |
| 2194 */ | 2194 */ |
| 2195 void set unlinkedUnits(List<UnlinkedUnitBuilder> _value) { | 2195 void set unlinkedUnits(List<UnlinkedUnitBuilder> value) { |
| 2196 _unlinkedUnits = _value; | 2196 this._unlinkedUnits = value; |
| 2197 } | 2197 } |
| 2198 | 2198 |
| 2199 @override | 2199 @override |
| 2200 List<String> get unlinkedUnitUris => _unlinkedUnitUris ??= <String>[]; | 2200 List<String> get unlinkedUnitUris => _unlinkedUnitUris ??= <String>[]; |
| 2201 | 2201 |
| 2202 /** | 2202 /** |
| 2203 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. | 2203 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. |
| 2204 */ | 2204 */ |
| 2205 void set unlinkedUnitUris(List<String> _value) { | 2205 void set unlinkedUnitUris(List<String> value) { |
| 2206 _unlinkedUnitUris = _value; | 2206 this._unlinkedUnitUris = value; |
| 2207 } | 2207 } |
| 2208 | 2208 |
| 2209 PackageBundleBuilder({String apiSignature, List<PackageDependencyInfoBuilder>
dependencies, List<LinkedLibraryBuilder> linkedLibraries, List<String> linkedLib
raryUris, int majorVersion, int minorVersion, List<String> unlinkedUnitHashes, L
ist<UnlinkedUnitBuilder> unlinkedUnits, List<String> unlinkedUnitUris}) | 2209 PackageBundleBuilder({String apiSignature, List<PackageDependencyInfoBuilder>
dependencies, List<LinkedLibraryBuilder> linkedLibraries, List<String> linkedLib
raryUris, int majorVersion, int minorVersion, List<String> unlinkedUnitHashes, L
ist<UnlinkedUnitBuilder> unlinkedUnits, List<String> unlinkedUnitUris}) |
| 2210 : _apiSignature = apiSignature, | 2210 : _apiSignature = apiSignature, |
| 2211 _dependencies = dependencies, | 2211 _dependencies = dependencies, |
| 2212 _linkedLibraries = linkedLibraries, | 2212 _linkedLibraries = linkedLibraries, |
| 2213 _linkedLibraryUris = linkedLibraryUris, | 2213 _linkedLibraryUris = linkedLibraryUris, |
| 2214 _majorVersion = majorVersion, | 2214 _majorVersion = majorVersion, |
| 2215 _minorVersion = minorVersion, | 2215 _minorVersion = minorVersion, |
| 2216 _unlinkedUnitHashes = unlinkedUnitHashes, | 2216 _unlinkedUnitHashes = unlinkedUnitHashes, |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2456 bool _includesDartUris; | 2456 bool _includesDartUris; |
| 2457 bool _includesFileUris; | 2457 bool _includesFileUris; |
| 2458 String _summaryPath; | 2458 String _summaryPath; |
| 2459 | 2459 |
| 2460 @override | 2460 @override |
| 2461 String get apiSignature => _apiSignature ??= ''; | 2461 String get apiSignature => _apiSignature ??= ''; |
| 2462 | 2462 |
| 2463 /** | 2463 /** |
| 2464 * API signature of this dependency. | 2464 * API signature of this dependency. |
| 2465 */ | 2465 */ |
| 2466 void set apiSignature(String _value) { | 2466 void set apiSignature(String value) { |
| 2467 _apiSignature = _value; | 2467 this._apiSignature = value; |
| 2468 } | 2468 } |
| 2469 | 2469 |
| 2470 @override | 2470 @override |
| 2471 List<String> get includedPackageNames => _includedPackageNames ??= <String>[]; | 2471 List<String> get includedPackageNames => _includedPackageNames ??= <String>[]; |
| 2472 | 2472 |
| 2473 /** | 2473 /** |
| 2474 * If this dependency summarizes any files whose URI takes the form | 2474 * If this dependency summarizes any files whose URI takes the form |
| 2475 * "package:<package_name>/...", a list of all such package names, sorted | 2475 * "package:<package_name>/...", a list of all such package names, sorted |
| 2476 * lexicographically. Otherwise empty. | 2476 * lexicographically. Otherwise empty. |
| 2477 */ | 2477 */ |
| 2478 void set includedPackageNames(List<String> _value) { | 2478 void set includedPackageNames(List<String> value) { |
| 2479 _includedPackageNames = _value; | 2479 this._includedPackageNames = value; |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 @override | 2482 @override |
| 2483 bool get includesDartUris => _includesDartUris ??= false; | 2483 bool get includesDartUris => _includesDartUris ??= false; |
| 2484 | 2484 |
| 2485 /** | 2485 /** |
| 2486 * Indicates whether this dependency summarizes any files whose URI takes the | 2486 * Indicates whether this dependency summarizes any files whose URI takes the |
| 2487 * form "dart:...". | 2487 * form "dart:...". |
| 2488 */ | 2488 */ |
| 2489 void set includesDartUris(bool _value) { | 2489 void set includesDartUris(bool value) { |
| 2490 _includesDartUris = _value; | 2490 this._includesDartUris = value; |
| 2491 } | 2491 } |
| 2492 | 2492 |
| 2493 @override | 2493 @override |
| 2494 bool get includesFileUris => _includesFileUris ??= false; | 2494 bool get includesFileUris => _includesFileUris ??= false; |
| 2495 | 2495 |
| 2496 /** | 2496 /** |
| 2497 * Indicates whether this dependency summarizes any files whose URI takes the | 2497 * Indicates whether this dependency summarizes any files whose URI takes the |
| 2498 * form "file:...". | 2498 * form "file:...". |
| 2499 */ | 2499 */ |
| 2500 void set includesFileUris(bool _value) { | 2500 void set includesFileUris(bool value) { |
| 2501 _includesFileUris = _value; | 2501 this._includesFileUris = value; |
| 2502 } | 2502 } |
| 2503 | 2503 |
| 2504 @override | 2504 @override |
| 2505 String get summaryPath => _summaryPath ??= ''; | 2505 String get summaryPath => _summaryPath ??= ''; |
| 2506 | 2506 |
| 2507 /** | 2507 /** |
| 2508 * Relative path to the summary file for this dependency. This is intended as | 2508 * Relative path to the summary file for this dependency. This is intended as |
| 2509 * a hint to help the analysis server locate summaries of dependencies. We | 2509 * a hint to help the analysis server locate summaries of dependencies. We |
| 2510 * don't specify precisely what this path is relative to, but we expect it to | 2510 * don't specify precisely what this path is relative to, but we expect it to |
| 2511 * be relative to a directory the analysis server can find (e.g. for projects | 2511 * be relative to a directory the analysis server can find (e.g. for projects |
| 2512 * built using Bazel, it would be relative to the "bazel-bin" directory). | 2512 * built using Bazel, it would be relative to the "bazel-bin" directory). |
| 2513 * | 2513 * |
| 2514 * Absent if the path is not known. | 2514 * Absent if the path is not known. |
| 2515 */ | 2515 */ |
| 2516 void set summaryPath(String _value) { | 2516 void set summaryPath(String value) { |
| 2517 _summaryPath = _value; | 2517 this._summaryPath = value; |
| 2518 } | 2518 } |
| 2519 | 2519 |
| 2520 PackageDependencyInfoBuilder({String apiSignature, List<String> includedPackag
eNames, bool includesDartUris, bool includesFileUris, String summaryPath}) | 2520 PackageDependencyInfoBuilder({String apiSignature, List<String> includedPackag
eNames, bool includesDartUris, bool includesFileUris, String summaryPath}) |
| 2521 : _apiSignature = apiSignature, | 2521 : _apiSignature = apiSignature, |
| 2522 _includedPackageNames = includedPackageNames, | 2522 _includedPackageNames = includedPackageNames, |
| 2523 _includesDartUris = includesDartUris, | 2523 _includesDartUris = includesDartUris, |
| 2524 _includesFileUris = includesFileUris, | 2524 _includesFileUris = includesFileUris, |
| 2525 _summaryPath = summaryPath; | 2525 _summaryPath = summaryPath; |
| 2526 | 2526 |
| 2527 /** | 2527 /** |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2667 List<UnitIndexBuilder> _units; | 2667 List<UnitIndexBuilder> _units; |
| 2668 List<int> _unitUnitUris; | 2668 List<int> _unitUnitUris; |
| 2669 | 2669 |
| 2670 @override | 2670 @override |
| 2671 List<idl.IndexSyntheticElementKind> get elementKinds => _elementKinds ??= <idl
.IndexSyntheticElementKind>[]; | 2671 List<idl.IndexSyntheticElementKind> get elementKinds => _elementKinds ??= <idl
.IndexSyntheticElementKind>[]; |
| 2672 | 2672 |
| 2673 /** | 2673 /** |
| 2674 * Each item of this list corresponds to a unique referenced element. It is | 2674 * Each item of this list corresponds to a unique referenced element. It is |
| 2675 * the kind of the synthetic element. | 2675 * the kind of the synthetic element. |
| 2676 */ | 2676 */ |
| 2677 void set elementKinds(List<idl.IndexSyntheticElementKind> _value) { | 2677 void set elementKinds(List<idl.IndexSyntheticElementKind> value) { |
| 2678 _elementKinds = _value; | 2678 this._elementKinds = value; |
| 2679 } | 2679 } |
| 2680 | 2680 |
| 2681 @override | 2681 @override |
| 2682 List<int> get elementNameClassMemberIds => _elementNameClassMemberIds ??= <int
>[]; | 2682 List<int> get elementNameClassMemberIds => _elementNameClassMemberIds ??= <int
>[]; |
| 2683 | 2683 |
| 2684 /** | 2684 /** |
| 2685 * Each item of this list corresponds to a unique referenced element. It is | 2685 * Each item of this list corresponds to a unique referenced element. It is |
| 2686 * the identifier of the class member element name, or `null` if the element i
s | 2686 * the identifier of the class member element name, or `null` if the element i
s |
| 2687 * a top-level element. The list is sorted in ascending order, so that the | 2687 * a top-level element. The list is sorted in ascending order, so that the |
| 2688 * client can quickly check whether an element is referenced in this | 2688 * client can quickly check whether an element is referenced in this |
| 2689 * [PackageIndex]. | 2689 * [PackageIndex]. |
| 2690 */ | 2690 */ |
| 2691 void set elementNameClassMemberIds(List<int> _value) { | 2691 void set elementNameClassMemberIds(List<int> value) { |
| 2692 assert(_value == null || _value.every((e) => e >= 0)); | 2692 assert(value == null || value.every((e) => e >= 0)); |
| 2693 _elementNameClassMemberIds = _value; | 2693 this._elementNameClassMemberIds = value; |
| 2694 } | 2694 } |
| 2695 | 2695 |
| 2696 @override | 2696 @override |
| 2697 List<int> get elementNameParameterIds => _elementNameParameterIds ??= <int>[]; | 2697 List<int> get elementNameParameterIds => _elementNameParameterIds ??= <int>[]; |
| 2698 | 2698 |
| 2699 /** | 2699 /** |
| 2700 * Each item of this list corresponds to a unique referenced element. It is | 2700 * Each item of this list corresponds to a unique referenced element. It is |
| 2701 * the identifier of the named parameter name, or `null` if the element is not | 2701 * the identifier of the named parameter name, or `null` if the element is not |
| 2702 * a named parameter. The list is sorted in ascending order, so that the | 2702 * a named parameter. The list is sorted in ascending order, so that the |
| 2703 * client can quickly check whether an element is referenced in this | 2703 * client can quickly check whether an element is referenced in this |
| 2704 * [PackageIndex]. | 2704 * [PackageIndex]. |
| 2705 */ | 2705 */ |
| 2706 void set elementNameParameterIds(List<int> _value) { | 2706 void set elementNameParameterIds(List<int> value) { |
| 2707 assert(_value == null || _value.every((e) => e >= 0)); | 2707 assert(value == null || value.every((e) => e >= 0)); |
| 2708 _elementNameParameterIds = _value; | 2708 this._elementNameParameterIds = value; |
| 2709 } | 2709 } |
| 2710 | 2710 |
| 2711 @override | 2711 @override |
| 2712 List<int> get elementNameUnitMemberIds => _elementNameUnitMemberIds ??= <int>[
]; | 2712 List<int> get elementNameUnitMemberIds => _elementNameUnitMemberIds ??= <int>[
]; |
| 2713 | 2713 |
| 2714 /** | 2714 /** |
| 2715 * Each item of this list corresponds to a unique referenced element. It is | 2715 * Each item of this list corresponds to a unique referenced element. It is |
| 2716 * the identifier of the top-level element name, or `null` if the element is | 2716 * the identifier of the top-level element name, or `null` if the element is |
| 2717 * the unit. The list is sorted in ascending order, so that the client can | 2717 * the unit. The list is sorted in ascending order, so that the client can |
| 2718 * quickly check whether an element is referenced in this [PackageIndex]. | 2718 * quickly check whether an element is referenced in this [PackageIndex]. |
| 2719 */ | 2719 */ |
| 2720 void set elementNameUnitMemberIds(List<int> _value) { | 2720 void set elementNameUnitMemberIds(List<int> value) { |
| 2721 assert(_value == null || _value.every((e) => e >= 0)); | 2721 assert(value == null || value.every((e) => e >= 0)); |
| 2722 _elementNameUnitMemberIds = _value; | 2722 this._elementNameUnitMemberIds = value; |
| 2723 } | 2723 } |
| 2724 | 2724 |
| 2725 @override | 2725 @override |
| 2726 List<int> get elementUnits => _elementUnits ??= <int>[]; | 2726 List<int> get elementUnits => _elementUnits ??= <int>[]; |
| 2727 | 2727 |
| 2728 /** | 2728 /** |
| 2729 * Each item of this list corresponds to a unique referenced element. It is | 2729 * Each item of this list corresponds to a unique referenced element. It is |
| 2730 * the index into [unitLibraryUris] and [unitUnitUris] for the library | 2730 * the index into [unitLibraryUris] and [unitUnitUris] for the library |
| 2731 * specific unit where the element is declared. | 2731 * specific unit where the element is declared. |
| 2732 */ | 2732 */ |
| 2733 void set elementUnits(List<int> _value) { | 2733 void set elementUnits(List<int> value) { |
| 2734 assert(_value == null || _value.every((e) => e >= 0)); | 2734 assert(value == null || value.every((e) => e >= 0)); |
| 2735 _elementUnits = _value; | 2735 this._elementUnits = value; |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 @override | 2738 @override |
| 2739 List<String> get strings => _strings ??= <String>[]; | 2739 List<String> get strings => _strings ??= <String>[]; |
| 2740 | 2740 |
| 2741 /** | 2741 /** |
| 2742 * List of unique element strings used in this [PackageIndex]. The list is | 2742 * List of unique element strings used in this [PackageIndex]. The list is |
| 2743 * sorted in ascending order, so that the client can quickly check the | 2743 * sorted in ascending order, so that the client can quickly check the |
| 2744 * presence of a string in this [PackageIndex]. | 2744 * presence of a string in this [PackageIndex]. |
| 2745 */ | 2745 */ |
| 2746 void set strings(List<String> _value) { | 2746 void set strings(List<String> value) { |
| 2747 _strings = _value; | 2747 this._strings = value; |
| 2748 } | 2748 } |
| 2749 | 2749 |
| 2750 @override | 2750 @override |
| 2751 List<int> get unitLibraryUris => _unitLibraryUris ??= <int>[]; | 2751 List<int> get unitLibraryUris => _unitLibraryUris ??= <int>[]; |
| 2752 | 2752 |
| 2753 /** | 2753 /** |
| 2754 * Each item of this list corresponds to the library URI of a unique library | 2754 * Each item of this list corresponds to the library URI of a unique library |
| 2755 * specific unit referenced in the [PackageIndex]. It is an index into | 2755 * specific unit referenced in the [PackageIndex]. It is an index into |
| 2756 * [strings] list. | 2756 * [strings] list. |
| 2757 */ | 2757 */ |
| 2758 void set unitLibraryUris(List<int> _value) { | 2758 void set unitLibraryUris(List<int> value) { |
| 2759 assert(_value == null || _value.every((e) => e >= 0)); | 2759 assert(value == null || value.every((e) => e >= 0)); |
| 2760 _unitLibraryUris = _value; | 2760 this._unitLibraryUris = value; |
| 2761 } | 2761 } |
| 2762 | 2762 |
| 2763 @override | 2763 @override |
| 2764 List<UnitIndexBuilder> get units => _units ??= <UnitIndexBuilder>[]; | 2764 List<UnitIndexBuilder> get units => _units ??= <UnitIndexBuilder>[]; |
| 2765 | 2765 |
| 2766 /** | 2766 /** |
| 2767 * List of indexes of each unit in this [PackageIndex]. | 2767 * List of indexes of each unit in this [PackageIndex]. |
| 2768 */ | 2768 */ |
| 2769 void set units(List<UnitIndexBuilder> _value) { | 2769 void set units(List<UnitIndexBuilder> value) { |
| 2770 _units = _value; | 2770 this._units = value; |
| 2771 } | 2771 } |
| 2772 | 2772 |
| 2773 @override | 2773 @override |
| 2774 List<int> get unitUnitUris => _unitUnitUris ??= <int>[]; | 2774 List<int> get unitUnitUris => _unitUnitUris ??= <int>[]; |
| 2775 | 2775 |
| 2776 /** | 2776 /** |
| 2777 * Each item of this list corresponds to the unit URI of a unique library | 2777 * Each item of this list corresponds to the unit URI of a unique library |
| 2778 * specific unit referenced in the [PackageIndex]. It is an index into | 2778 * specific unit referenced in the [PackageIndex]. It is an index into |
| 2779 * [strings] list. | 2779 * [strings] list. |
| 2780 */ | 2780 */ |
| 2781 void set unitUnitUris(List<int> _value) { | 2781 void set unitUnitUris(List<int> value) { |
| 2782 assert(_value == null || _value.every((e) => e >= 0)); | 2782 assert(value == null || value.every((e) => e >= 0)); |
| 2783 _unitUnitUris = _value; | 2783 this._unitUnitUris = value; |
| 2784 } | 2784 } |
| 2785 | 2785 |
| 2786 PackageIndexBuilder({List<idl.IndexSyntheticElementKind> elementKinds, List<in
t> elementNameClassMemberIds, List<int> elementNameParameterIds, List<int> eleme
ntNameUnitMemberIds, List<int> elementUnits, List<String> strings, List<int> uni
tLibraryUris, List<UnitIndexBuilder> units, List<int> unitUnitUris}) | 2786 PackageIndexBuilder({List<idl.IndexSyntheticElementKind> elementKinds, List<in
t> elementNameClassMemberIds, List<int> elementNameParameterIds, List<int> eleme
ntNameUnitMemberIds, List<int> elementUnits, List<String> strings, List<int> uni
tLibraryUris, List<UnitIndexBuilder> units, List<int> unitUnitUris}) |
| 2787 : _elementKinds = elementKinds, | 2787 : _elementKinds = elementKinds, |
| 2788 _elementNameClassMemberIds = elementNameClassMemberIds, | 2788 _elementNameClassMemberIds = elementNameClassMemberIds, |
| 2789 _elementNameParameterIds = elementNameParameterIds, | 2789 _elementNameParameterIds = elementNameParameterIds, |
| 2790 _elementNameUnitMemberIds = elementNameUnitMemberIds, | 2790 _elementNameUnitMemberIds = elementNameUnitMemberIds, |
| 2791 _elementUnits = elementUnits, | 2791 _elementUnits = elementUnits, |
| 2792 _strings = strings, | 2792 _strings = strings, |
| 2793 _unitLibraryUris = unitLibraryUris, | 2793 _unitLibraryUris = unitLibraryUris, |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3083 List<idl.IndexRelationKind> _usedNameKinds; | 3083 List<idl.IndexRelationKind> _usedNameKinds; |
| 3084 List<int> _usedNameOffsets; | 3084 List<int> _usedNameOffsets; |
| 3085 List<int> _usedNames; | 3085 List<int> _usedNames; |
| 3086 | 3086 |
| 3087 @override | 3087 @override |
| 3088 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; | 3088 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; |
| 3089 | 3089 |
| 3090 /** | 3090 /** |
| 3091 * Each item of this list is the kind of an element defined in this unit. | 3091 * Each item of this list is the kind of an element defined in this unit. |
| 3092 */ | 3092 */ |
| 3093 void set definedNameKinds(List<idl.IndexNameKind> _value) { | 3093 void set definedNameKinds(List<idl.IndexNameKind> value) { |
| 3094 _definedNameKinds = _value; | 3094 this._definedNameKinds = value; |
| 3095 } | 3095 } |
| 3096 | 3096 |
| 3097 @override | 3097 @override |
| 3098 List<int> get definedNameOffsets => _definedNameOffsets ??= <int>[]; | 3098 List<int> get definedNameOffsets => _definedNameOffsets ??= <int>[]; |
| 3099 | 3099 |
| 3100 /** | 3100 /** |
| 3101 * Each item of this list is the name offset of an element defined in this | 3101 * Each item of this list is the name offset of an element defined in this |
| 3102 * unit relative to the beginning of the file. | 3102 * unit relative to the beginning of the file. |
| 3103 */ | 3103 */ |
| 3104 void set definedNameOffsets(List<int> _value) { | 3104 void set definedNameOffsets(List<int> value) { |
| 3105 assert(_value == null || _value.every((e) => e >= 0)); | 3105 assert(value == null || value.every((e) => e >= 0)); |
| 3106 _definedNameOffsets = _value; | 3106 this._definedNameOffsets = value; |
| 3107 } | 3107 } |
| 3108 | 3108 |
| 3109 @override | 3109 @override |
| 3110 List<int> get definedNames => _definedNames ??= <int>[]; | 3110 List<int> get definedNames => _definedNames ??= <int>[]; |
| 3111 | 3111 |
| 3112 /** | 3112 /** |
| 3113 * Each item of this list corresponds to an element defined in this unit. It | 3113 * Each item of this list corresponds to an element defined in this unit. It |
| 3114 * is an index into [PackageIndex.strings] list. The list is sorted in | 3114 * is an index into [PackageIndex.strings] list. The list is sorted in |
| 3115 * ascending order, so that the client can quickly find name definitions in | 3115 * ascending order, so that the client can quickly find name definitions in |
| 3116 * this [UnitIndex]. | 3116 * this [UnitIndex]. |
| 3117 */ | 3117 */ |
| 3118 void set definedNames(List<int> _value) { | 3118 void set definedNames(List<int> value) { |
| 3119 assert(_value == null || _value.every((e) => e >= 0)); | 3119 assert(value == null || value.every((e) => e >= 0)); |
| 3120 _definedNames = _value; | 3120 this._definedNames = value; |
| 3121 } | 3121 } |
| 3122 | 3122 |
| 3123 @override | 3123 @override |
| 3124 int get unit => _unit ??= 0; | 3124 int get unit => _unit ??= 0; |
| 3125 | 3125 |
| 3126 /** | 3126 /** |
| 3127 * Index into [PackageIndex.unitLibraryUris] and [PackageIndex.unitUnitUris] | 3127 * Index into [PackageIndex.unitLibraryUris] and [PackageIndex.unitUnitUris] |
| 3128 * for the library specific unit that corresponds to this [UnitIndex]. | 3128 * for the library specific unit that corresponds to this [UnitIndex]. |
| 3129 */ | 3129 */ |
| 3130 void set unit(int _value) { | 3130 void set unit(int value) { |
| 3131 assert(_value == null || _value >= 0); | 3131 assert(value == null || value >= 0); |
| 3132 _unit = _value; | 3132 this._unit = value; |
| 3133 } | 3133 } |
| 3134 | 3134 |
| 3135 @override | 3135 @override |
| 3136 List<bool> get usedElementIsQualifiedFlags => _usedElementIsQualifiedFlags ??=
<bool>[]; | 3136 List<bool> get usedElementIsQualifiedFlags => _usedElementIsQualifiedFlags ??=
<bool>[]; |
| 3137 | 3137 |
| 3138 /** | 3138 /** |
| 3139 * Each item of this list is the `true` if the corresponding element usage | 3139 * Each item of this list is the `true` if the corresponding element usage |
| 3140 * is qualified with some prefix. | 3140 * is qualified with some prefix. |
| 3141 */ | 3141 */ |
| 3142 void set usedElementIsQualifiedFlags(List<bool> _value) { | 3142 void set usedElementIsQualifiedFlags(List<bool> value) { |
| 3143 _usedElementIsQualifiedFlags = _value; | 3143 this._usedElementIsQualifiedFlags = value; |
| 3144 } | 3144 } |
| 3145 | 3145 |
| 3146 @override | 3146 @override |
| 3147 List<idl.IndexRelationKind> get usedElementKinds => _usedElementKinds ??= <idl
.IndexRelationKind>[]; | 3147 List<idl.IndexRelationKind> get usedElementKinds => _usedElementKinds ??= <idl
.IndexRelationKind>[]; |
| 3148 | 3148 |
| 3149 /** | 3149 /** |
| 3150 * Each item of this list is the kind of the element usage. | 3150 * Each item of this list is the kind of the element usage. |
| 3151 */ | 3151 */ |
| 3152 void set usedElementKinds(List<idl.IndexRelationKind> _value) { | 3152 void set usedElementKinds(List<idl.IndexRelationKind> value) { |
| 3153 _usedElementKinds = _value; | 3153 this._usedElementKinds = value; |
| 3154 } | 3154 } |
| 3155 | 3155 |
| 3156 @override | 3156 @override |
| 3157 List<int> get usedElementLengths => _usedElementLengths ??= <int>[]; | 3157 List<int> get usedElementLengths => _usedElementLengths ??= <int>[]; |
| 3158 | 3158 |
| 3159 /** | 3159 /** |
| 3160 * Each item of this list is the length of the element usage. | 3160 * Each item of this list is the length of the element usage. |
| 3161 */ | 3161 */ |
| 3162 void set usedElementLengths(List<int> _value) { | 3162 void set usedElementLengths(List<int> value) { |
| 3163 assert(_value == null || _value.every((e) => e >= 0)); | 3163 assert(value == null || value.every((e) => e >= 0)); |
| 3164 _usedElementLengths = _value; | 3164 this._usedElementLengths = value; |
| 3165 } | 3165 } |
| 3166 | 3166 |
| 3167 @override | 3167 @override |
| 3168 List<int> get usedElementOffsets => _usedElementOffsets ??= <int>[]; | 3168 List<int> get usedElementOffsets => _usedElementOffsets ??= <int>[]; |
| 3169 | 3169 |
| 3170 /** | 3170 /** |
| 3171 * Each item of this list is the offset of the element usage relative to the | 3171 * Each item of this list is the offset of the element usage relative to the |
| 3172 * beginning of the file. | 3172 * beginning of the file. |
| 3173 */ | 3173 */ |
| 3174 void set usedElementOffsets(List<int> _value) { | 3174 void set usedElementOffsets(List<int> value) { |
| 3175 assert(_value == null || _value.every((e) => e >= 0)); | 3175 assert(value == null || value.every((e) => e >= 0)); |
| 3176 _usedElementOffsets = _value; | 3176 this._usedElementOffsets = value; |
| 3177 } | 3177 } |
| 3178 | 3178 |
| 3179 @override | 3179 @override |
| 3180 List<int> get usedElements => _usedElements ??= <int>[]; | 3180 List<int> get usedElements => _usedElements ??= <int>[]; |
| 3181 | 3181 |
| 3182 /** | 3182 /** |
| 3183 * Each item of this list is the index into [PackageIndex.elementUnits] and | 3183 * Each item of this list is the index into [PackageIndex.elementUnits] and |
| 3184 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so | 3184 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so |
| 3185 * that the client can quickly find element references in this [UnitIndex]. | 3185 * that the client can quickly find element references in this [UnitIndex]. |
| 3186 */ | 3186 */ |
| 3187 void set usedElements(List<int> _value) { | 3187 void set usedElements(List<int> value) { |
| 3188 assert(_value == null || _value.every((e) => e >= 0)); | 3188 assert(value == null || value.every((e) => e >= 0)); |
| 3189 _usedElements = _value; | 3189 this._usedElements = value; |
| 3190 } | 3190 } |
| 3191 | 3191 |
| 3192 @override | 3192 @override |
| 3193 List<bool> get usedNameIsQualifiedFlags => _usedNameIsQualifiedFlags ??= <bool
>[]; | 3193 List<bool> get usedNameIsQualifiedFlags => _usedNameIsQualifiedFlags ??= <bool
>[]; |
| 3194 | 3194 |
| 3195 /** | 3195 /** |
| 3196 * Each item of this list is the `true` if the corresponding name usage | 3196 * Each item of this list is the `true` if the corresponding name usage |
| 3197 * is qualified with some prefix. | 3197 * is qualified with some prefix. |
| 3198 */ | 3198 */ |
| 3199 void set usedNameIsQualifiedFlags(List<bool> _value) { | 3199 void set usedNameIsQualifiedFlags(List<bool> value) { |
| 3200 _usedNameIsQualifiedFlags = _value; | 3200 this._usedNameIsQualifiedFlags = value; |
| 3201 } | 3201 } |
| 3202 | 3202 |
| 3203 @override | 3203 @override |
| 3204 List<idl.IndexRelationKind> get usedNameKinds => _usedNameKinds ??= <idl.Index
RelationKind>[]; | 3204 List<idl.IndexRelationKind> get usedNameKinds => _usedNameKinds ??= <idl.Index
RelationKind>[]; |
| 3205 | 3205 |
| 3206 /** | 3206 /** |
| 3207 * Each item of this list is the kind of the name usage. | 3207 * Each item of this list is the kind of the name usage. |
| 3208 */ | 3208 */ |
| 3209 void set usedNameKinds(List<idl.IndexRelationKind> _value) { | 3209 void set usedNameKinds(List<idl.IndexRelationKind> value) { |
| 3210 _usedNameKinds = _value; | 3210 this._usedNameKinds = value; |
| 3211 } | 3211 } |
| 3212 | 3212 |
| 3213 @override | 3213 @override |
| 3214 List<int> get usedNameOffsets => _usedNameOffsets ??= <int>[]; | 3214 List<int> get usedNameOffsets => _usedNameOffsets ??= <int>[]; |
| 3215 | 3215 |
| 3216 /** | 3216 /** |
| 3217 * Each item of this list is the offset of the name usage relative to the | 3217 * Each item of this list is the offset of the name usage relative to the |
| 3218 * beginning of the file. | 3218 * beginning of the file. |
| 3219 */ | 3219 */ |
| 3220 void set usedNameOffsets(List<int> _value) { | 3220 void set usedNameOffsets(List<int> value) { |
| 3221 assert(_value == null || _value.every((e) => e >= 0)); | 3221 assert(value == null || value.every((e) => e >= 0)); |
| 3222 _usedNameOffsets = _value; | 3222 this._usedNameOffsets = value; |
| 3223 } | 3223 } |
| 3224 | 3224 |
| 3225 @override | 3225 @override |
| 3226 List<int> get usedNames => _usedNames ??= <int>[]; | 3226 List<int> get usedNames => _usedNames ??= <int>[]; |
| 3227 | 3227 |
| 3228 /** | 3228 /** |
| 3229 * Each item of this list is the index into [PackageIndex.strings] for a | 3229 * Each item of this list is the index into [PackageIndex.strings] for a |
| 3230 * used name. The list is sorted in ascending order, so that the client can | 3230 * used name. The list is sorted in ascending order, so that the client can |
| 3231 * quickly find name uses in this [UnitIndex]. | 3231 * quickly find name uses in this [UnitIndex]. |
| 3232 */ | 3232 */ |
| 3233 void set usedNames(List<int> _value) { | 3233 void set usedNames(List<int> value) { |
| 3234 assert(_value == null || _value.every((e) => e >= 0)); | 3234 assert(value == null || value.every((e) => e >= 0)); |
| 3235 _usedNames = _value; | 3235 this._usedNames = value; |
| 3236 } | 3236 } |
| 3237 | 3237 |
| 3238 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<bool> usedElementIsQualifiedF
lags, List<idl.IndexRelationKind> usedElementKinds, List<int> usedElementLengths
, List<int> usedElementOffsets, List<int> usedElements, List<bool> usedNameIsQua
lifiedFlags, List<idl.IndexRelationKind> usedNameKinds, List<int> usedNameOffset
s, List<int> usedNames}) | 3238 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<bool> usedElementIsQualifiedF
lags, List<idl.IndexRelationKind> usedElementKinds, List<int> usedElementLengths
, List<int> usedElementOffsets, List<int> usedElements, List<bool> usedNameIsQua
lifiedFlags, List<idl.IndexRelationKind> usedNameKinds, List<int> usedNameOffset
s, List<int> usedNames}) |
| 3239 : _definedNameKinds = definedNameKinds, | 3239 : _definedNameKinds = definedNameKinds, |
| 3240 _definedNameOffsets = definedNameOffsets, | 3240 _definedNameOffsets = definedNameOffsets, |
| 3241 _definedNames = definedNames, | 3241 _definedNames = definedNames, |
| 3242 _unit = unit, | 3242 _unit = unit, |
| 3243 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, | 3243 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, |
| 3244 _usedElementKinds = usedElementKinds, | 3244 _usedElementKinds = usedElementKinds, |
| 3245 _usedElementLengths = usedElementLengths, | 3245 _usedElementLengths = usedElementLengths, |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3614 int _nameOffset; | 3614 int _nameOffset; |
| 3615 EntityRefBuilder _supertype; | 3615 EntityRefBuilder _supertype; |
| 3616 List<UnlinkedTypeParamBuilder> _typeParameters; | 3616 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 3617 | 3617 |
| 3618 @override | 3618 @override |
| 3619 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 3619 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 3620 | 3620 |
| 3621 /** | 3621 /** |
| 3622 * Annotations for this class. | 3622 * Annotations for this class. |
| 3623 */ | 3623 */ |
| 3624 void set annotations(List<UnlinkedConstBuilder> _value) { | 3624 void set annotations(List<UnlinkedConstBuilder> value) { |
| 3625 _annotations = _value; | 3625 this._annotations = value; |
| 3626 } | 3626 } |
| 3627 | 3627 |
| 3628 @override | 3628 @override |
| 3629 CodeRangeBuilder get codeRange => _codeRange; | 3629 CodeRangeBuilder get codeRange => _codeRange; |
| 3630 | 3630 |
| 3631 /** | 3631 /** |
| 3632 * Code range of the class. | 3632 * Code range of the class. |
| 3633 */ | 3633 */ |
| 3634 void set codeRange(CodeRangeBuilder _value) { | 3634 void set codeRange(CodeRangeBuilder value) { |
| 3635 _codeRange = _value; | 3635 this._codeRange = value; |
| 3636 } | 3636 } |
| 3637 | 3637 |
| 3638 @override | 3638 @override |
| 3639 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 3639 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 3640 | 3640 |
| 3641 /** | 3641 /** |
| 3642 * Documentation comment for the class, or `null` if there is no | 3642 * Documentation comment for the class, or `null` if there is no |
| 3643 * documentation comment. | 3643 * documentation comment. |
| 3644 */ | 3644 */ |
| 3645 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 3645 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 3646 _documentationComment = _value; | 3646 this._documentationComment = value; |
| 3647 } | 3647 } |
| 3648 | 3648 |
| 3649 @override | 3649 @override |
| 3650 List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedE
xecutableBuilder>[]; | 3650 List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedE
xecutableBuilder>[]; |
| 3651 | 3651 |
| 3652 /** | 3652 /** |
| 3653 * Executable objects (methods, getters, and setters) contained in the class. | 3653 * Executable objects (methods, getters, and setters) contained in the class. |
| 3654 */ | 3654 */ |
| 3655 void set executables(List<UnlinkedExecutableBuilder> _value) { | 3655 void set executables(List<UnlinkedExecutableBuilder> value) { |
| 3656 _executables = _value; | 3656 this._executables = value; |
| 3657 } | 3657 } |
| 3658 | 3658 |
| 3659 @override | 3659 @override |
| 3660 List<UnlinkedVariableBuilder> get fields => _fields ??= <UnlinkedVariableBuild
er>[]; | 3660 List<UnlinkedVariableBuilder> get fields => _fields ??= <UnlinkedVariableBuild
er>[]; |
| 3661 | 3661 |
| 3662 /** | 3662 /** |
| 3663 * Field declarations contained in the class. | 3663 * Field declarations contained in the class. |
| 3664 */ | 3664 */ |
| 3665 void set fields(List<UnlinkedVariableBuilder> _value) { | 3665 void set fields(List<UnlinkedVariableBuilder> value) { |
| 3666 _fields = _value; | 3666 this._fields = value; |
| 3667 } | 3667 } |
| 3668 | 3668 |
| 3669 @override | 3669 @override |
| 3670 bool get hasNoSupertype => _hasNoSupertype ??= false; | 3670 bool get hasNoSupertype => _hasNoSupertype ??= false; |
| 3671 | 3671 |
| 3672 /** | 3672 /** |
| 3673 * Indicates whether this class is the core "Object" class (and hence has no | 3673 * Indicates whether this class is the core "Object" class (and hence has no |
| 3674 * supertype) | 3674 * supertype) |
| 3675 */ | 3675 */ |
| 3676 void set hasNoSupertype(bool _value) { | 3676 void set hasNoSupertype(bool value) { |
| 3677 _hasNoSupertype = _value; | 3677 this._hasNoSupertype = value; |
| 3678 } | 3678 } |
| 3679 | 3679 |
| 3680 @override | 3680 @override |
| 3681 List<EntityRefBuilder> get interfaces => _interfaces ??= <EntityRefBuilder>[]; | 3681 List<EntityRefBuilder> get interfaces => _interfaces ??= <EntityRefBuilder>[]; |
| 3682 | 3682 |
| 3683 /** | 3683 /** |
| 3684 * Interfaces appearing in an `implements` clause, if any. | 3684 * Interfaces appearing in an `implements` clause, if any. |
| 3685 */ | 3685 */ |
| 3686 void set interfaces(List<EntityRefBuilder> _value) { | 3686 void set interfaces(List<EntityRefBuilder> value) { |
| 3687 _interfaces = _value; | 3687 this._interfaces = value; |
| 3688 } | 3688 } |
| 3689 | 3689 |
| 3690 @override | 3690 @override |
| 3691 bool get isAbstract => _isAbstract ??= false; | 3691 bool get isAbstract => _isAbstract ??= false; |
| 3692 | 3692 |
| 3693 /** | 3693 /** |
| 3694 * Indicates whether the class is declared with the `abstract` keyword. | 3694 * Indicates whether the class is declared with the `abstract` keyword. |
| 3695 */ | 3695 */ |
| 3696 void set isAbstract(bool _value) { | 3696 void set isAbstract(bool value) { |
| 3697 _isAbstract = _value; | 3697 this._isAbstract = value; |
| 3698 } | 3698 } |
| 3699 | 3699 |
| 3700 @override | 3700 @override |
| 3701 bool get isMixinApplication => _isMixinApplication ??= false; | 3701 bool get isMixinApplication => _isMixinApplication ??= false; |
| 3702 | 3702 |
| 3703 /** | 3703 /** |
| 3704 * Indicates whether the class is declared using mixin application syntax. | 3704 * Indicates whether the class is declared using mixin application syntax. |
| 3705 */ | 3705 */ |
| 3706 void set isMixinApplication(bool _value) { | 3706 void set isMixinApplication(bool value) { |
| 3707 _isMixinApplication = _value; | 3707 this._isMixinApplication = value; |
| 3708 } | 3708 } |
| 3709 | 3709 |
| 3710 @override | 3710 @override |
| 3711 List<EntityRefBuilder> get mixins => _mixins ??= <EntityRefBuilder>[]; | 3711 List<EntityRefBuilder> get mixins => _mixins ??= <EntityRefBuilder>[]; |
| 3712 | 3712 |
| 3713 /** | 3713 /** |
| 3714 * Mixins appearing in a `with` clause, if any. | 3714 * Mixins appearing in a `with` clause, if any. |
| 3715 */ | 3715 */ |
| 3716 void set mixins(List<EntityRefBuilder> _value) { | 3716 void set mixins(List<EntityRefBuilder> value) { |
| 3717 _mixins = _value; | 3717 this._mixins = value; |
| 3718 } | 3718 } |
| 3719 | 3719 |
| 3720 @override | 3720 @override |
| 3721 String get name => _name ??= ''; | 3721 String get name => _name ??= ''; |
| 3722 | 3722 |
| 3723 /** | 3723 /** |
| 3724 * Name of the class. | 3724 * Name of the class. |
| 3725 */ | 3725 */ |
| 3726 void set name(String _value) { | 3726 void set name(String value) { |
| 3727 _name = _value; | 3727 this._name = value; |
| 3728 } | 3728 } |
| 3729 | 3729 |
| 3730 @override | 3730 @override |
| 3731 int get nameOffset => _nameOffset ??= 0; | 3731 int get nameOffset => _nameOffset ??= 0; |
| 3732 | 3732 |
| 3733 /** | 3733 /** |
| 3734 * Offset of the class name relative to the beginning of the file. | 3734 * Offset of the class name relative to the beginning of the file. |
| 3735 */ | 3735 */ |
| 3736 void set nameOffset(int _value) { | 3736 void set nameOffset(int value) { |
| 3737 assert(_value == null || _value >= 0); | 3737 assert(value == null || value >= 0); |
| 3738 _nameOffset = _value; | 3738 this._nameOffset = value; |
| 3739 } | 3739 } |
| 3740 | 3740 |
| 3741 @override | 3741 @override |
| 3742 EntityRefBuilder get supertype => _supertype; | 3742 EntityRefBuilder get supertype => _supertype; |
| 3743 | 3743 |
| 3744 /** | 3744 /** |
| 3745 * Supertype of the class, or `null` if either (a) the class doesn't | 3745 * Supertype of the class, or `null` if either (a) the class doesn't |
| 3746 * explicitly declare a supertype (and hence has supertype `Object`), or (b) | 3746 * explicitly declare a supertype (and hence has supertype `Object`), or (b) |
| 3747 * the class *is* `Object` (and hence has no supertype). | 3747 * the class *is* `Object` (and hence has no supertype). |
| 3748 */ | 3748 */ |
| 3749 void set supertype(EntityRefBuilder _value) { | 3749 void set supertype(EntityRefBuilder value) { |
| 3750 _supertype = _value; | 3750 this._supertype = value; |
| 3751 } | 3751 } |
| 3752 | 3752 |
| 3753 @override | 3753 @override |
| 3754 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 3754 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 3755 | 3755 |
| 3756 /** | 3756 /** |
| 3757 * Type parameters of the class, if any. | 3757 * Type parameters of the class, if any. |
| 3758 */ | 3758 */ |
| 3759 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 3759 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
| 3760 _typeParameters = _value; | 3760 this._typeParameters = value; |
| 3761 } | 3761 } |
| 3762 | 3762 |
| 3763 UnlinkedClassBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, List<Unlin
kedExecutableBuilder> executables, List<UnlinkedVariableBuilder> fields, bool ha
sNoSupertype, List<EntityRefBuilder> interfaces, bool isAbstract, bool isMixinAp
plication, List<EntityRefBuilder> mixins, String name, int nameOffset, EntityRef
Builder supertype, List<UnlinkedTypeParamBuilder> typeParameters}) | 3763 UnlinkedClassBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, List<Unlin
kedExecutableBuilder> executables, List<UnlinkedVariableBuilder> fields, bool ha
sNoSupertype, List<EntityRefBuilder> interfaces, bool isAbstract, bool isMixinAp
plication, List<EntityRefBuilder> mixins, String name, int nameOffset, EntityRef
Builder supertype, List<UnlinkedTypeParamBuilder> typeParameters}) |
| 3764 : _annotations = annotations, | 3764 : _annotations = annotations, |
| 3765 _codeRange = codeRange, | 3765 _codeRange = codeRange, |
| 3766 _documentationComment = documentationComment, | 3766 _documentationComment = documentationComment, |
| 3767 _executables = executables, | 3767 _executables = executables, |
| 3768 _fields = fields, | 3768 _fields = fields, |
| 3769 _hasNoSupertype = hasNoSupertype, | 3769 _hasNoSupertype = hasNoSupertype, |
| 3770 _interfaces = interfaces, | 3770 _interfaces = interfaces, |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4102 int _offset; | 4102 int _offset; |
| 4103 List<String> _shows; | 4103 List<String> _shows; |
| 4104 | 4104 |
| 4105 @override | 4105 @override |
| 4106 int get end => _end ??= 0; | 4106 int get end => _end ??= 0; |
| 4107 | 4107 |
| 4108 /** | 4108 /** |
| 4109 * If this is a `show` combinator, offset of the end of the list of shown | 4109 * If this is a `show` combinator, offset of the end of the list of shown |
| 4110 * names. Otherwise zero. | 4110 * names. Otherwise zero. |
| 4111 */ | 4111 */ |
| 4112 void set end(int _value) { | 4112 void set end(int value) { |
| 4113 assert(_value == null || _value >= 0); | 4113 assert(value == null || value >= 0); |
| 4114 _end = _value; | 4114 this._end = value; |
| 4115 } | 4115 } |
| 4116 | 4116 |
| 4117 @override | 4117 @override |
| 4118 List<String> get hides => _hides ??= <String>[]; | 4118 List<String> get hides => _hides ??= <String>[]; |
| 4119 | 4119 |
| 4120 /** | 4120 /** |
| 4121 * List of names which are hidden. Empty if this is a `show` combinator. | 4121 * List of names which are hidden. Empty if this is a `show` combinator. |
| 4122 */ | 4122 */ |
| 4123 void set hides(List<String> _value) { | 4123 void set hides(List<String> value) { |
| 4124 _hides = _value; | 4124 this._hides = value; |
| 4125 } | 4125 } |
| 4126 | 4126 |
| 4127 @override | 4127 @override |
| 4128 int get offset => _offset ??= 0; | 4128 int get offset => _offset ??= 0; |
| 4129 | 4129 |
| 4130 /** | 4130 /** |
| 4131 * If this is a `show` combinator, offset of the `show` keyword. Otherwise | 4131 * If this is a `show` combinator, offset of the `show` keyword. Otherwise |
| 4132 * zero. | 4132 * zero. |
| 4133 */ | 4133 */ |
| 4134 void set offset(int _value) { | 4134 void set offset(int value) { |
| 4135 assert(_value == null || _value >= 0); | 4135 assert(value == null || value >= 0); |
| 4136 _offset = _value; | 4136 this._offset = value; |
| 4137 } | 4137 } |
| 4138 | 4138 |
| 4139 @override | 4139 @override |
| 4140 List<String> get shows => _shows ??= <String>[]; | 4140 List<String> get shows => _shows ??= <String>[]; |
| 4141 | 4141 |
| 4142 /** | 4142 /** |
| 4143 * List of names which are shown. Empty if this is a `hide` combinator. | 4143 * List of names which are shown. Empty if this is a `hide` combinator. |
| 4144 */ | 4144 */ |
| 4145 void set shows(List<String> _value) { | 4145 void set shows(List<String> value) { |
| 4146 _shows = _value; | 4146 this._shows = value; |
| 4147 } | 4147 } |
| 4148 | 4148 |
| 4149 UnlinkedCombinatorBuilder({int end, List<String> hides, int offset, List<Strin
g> shows}) | 4149 UnlinkedCombinatorBuilder({int end, List<String> hides, int offset, List<Strin
g> shows}) |
| 4150 : _end = end, | 4150 : _end = end, |
| 4151 _hides = hides, | 4151 _hides = hides, |
| 4152 _offset = offset, | 4152 _offset = offset, |
| 4153 _shows = shows; | 4153 _shows = shows; |
| 4154 | 4154 |
| 4155 /** | 4155 /** |
| 4156 * Flush [informative] data recursively. | 4156 * Flush [informative] data recursively. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4282 List<idl.UnlinkedConstOperation> _operations; | 4282 List<idl.UnlinkedConstOperation> _operations; |
| 4283 List<EntityRefBuilder> _references; | 4283 List<EntityRefBuilder> _references; |
| 4284 List<String> _strings; | 4284 List<String> _strings; |
| 4285 | 4285 |
| 4286 @override | 4286 @override |
| 4287 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; | 4287 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; |
| 4288 | 4288 |
| 4289 /** | 4289 /** |
| 4290 * Sequence of operators used by assignment operations. | 4290 * Sequence of operators used by assignment operations. |
| 4291 */ | 4291 */ |
| 4292 void set assignmentOperators(List<idl.UnlinkedExprAssignOperator> _value) { | 4292 void set assignmentOperators(List<idl.UnlinkedExprAssignOperator> value) { |
| 4293 _assignmentOperators = _value; | 4293 this._assignmentOperators = value; |
| 4294 } | 4294 } |
| 4295 | 4295 |
| 4296 @override | 4296 @override |
| 4297 List<double> get doubles => _doubles ??= <double>[]; | 4297 List<double> get doubles => _doubles ??= <double>[]; |
| 4298 | 4298 |
| 4299 /** | 4299 /** |
| 4300 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. | 4300 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. |
| 4301 */ | 4301 */ |
| 4302 void set doubles(List<double> _value) { | 4302 void set doubles(List<double> value) { |
| 4303 _doubles = _value; | 4303 this._doubles = value; |
| 4304 } | 4304 } |
| 4305 | 4305 |
| 4306 @override | 4306 @override |
| 4307 List<int> get ints => _ints ??= <int>[]; | 4307 List<int> get ints => _ints ??= <int>[]; |
| 4308 | 4308 |
| 4309 /** | 4309 /** |
| 4310 * Sequence of unsigned 32-bit integers consumed by the operations | 4310 * Sequence of unsigned 32-bit integers consumed by the operations |
| 4311 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, | 4311 * `pushArgument`, `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, |
| 4312 * `makeList`, and `makeMap`. | 4312 * `makeList`, and `makeMap`. |
| 4313 */ | 4313 */ |
| 4314 void set ints(List<int> _value) { | 4314 void set ints(List<int> value) { |
| 4315 assert(_value == null || _value.every((e) => e >= 0)); | 4315 assert(value == null || value.every((e) => e >= 0)); |
| 4316 _ints = _value; | 4316 this._ints = value; |
| 4317 } | 4317 } |
| 4318 | 4318 |
| 4319 @override | 4319 @override |
| 4320 bool get isValidConst => _isValidConst ??= false; | 4320 bool get isValidConst => _isValidConst ??= false; |
| 4321 | 4321 |
| 4322 /** | 4322 /** |
| 4323 * Indicates whether the expression is a valid potentially constant | 4323 * Indicates whether the expression is a valid potentially constant |
| 4324 * expression. | 4324 * expression. |
| 4325 */ | 4325 */ |
| 4326 void set isValidConst(bool _value) { | 4326 void set isValidConst(bool value) { |
| 4327 _isValidConst = _value; | 4327 this._isValidConst = value; |
| 4328 } | 4328 } |
| 4329 | 4329 |
| 4330 @override | 4330 @override |
| 4331 List<idl.UnlinkedConstOperation> get operations => _operations ??= <idl.Unlink
edConstOperation>[]; | 4331 List<idl.UnlinkedConstOperation> get operations => _operations ??= <idl.Unlink
edConstOperation>[]; |
| 4332 | 4332 |
| 4333 /** | 4333 /** |
| 4334 * Sequence of operations to execute (starting with an empty stack) to form | 4334 * Sequence of operations to execute (starting with an empty stack) to form |
| 4335 * the constant value. | 4335 * the constant value. |
| 4336 */ | 4336 */ |
| 4337 void set operations(List<idl.UnlinkedConstOperation> _value) { | 4337 void set operations(List<idl.UnlinkedConstOperation> value) { |
| 4338 _operations = _value; | 4338 this._operations = value; |
| 4339 } | 4339 } |
| 4340 | 4340 |
| 4341 @override | 4341 @override |
| 4342 List<EntityRefBuilder> get references => _references ??= <EntityRefBuilder>[]; | 4342 List<EntityRefBuilder> get references => _references ??= <EntityRefBuilder>[]; |
| 4343 | 4343 |
| 4344 /** | 4344 /** |
| 4345 * Sequence of language constructs consumed by the operations | 4345 * Sequence of language constructs consumed by the operations |
| 4346 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note | 4346 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note |
| 4347 * that in the case of `pushReference` (and sometimes `invokeConstructor` the | 4347 * that in the case of `pushReference` (and sometimes `invokeConstructor` the |
| 4348 * actual entity being referred to may be something other than a type. | 4348 * actual entity being referred to may be something other than a type. |
| 4349 */ | 4349 */ |
| 4350 void set references(List<EntityRefBuilder> _value) { | 4350 void set references(List<EntityRefBuilder> value) { |
| 4351 _references = _value; | 4351 this._references = value; |
| 4352 } | 4352 } |
| 4353 | 4353 |
| 4354 @override | 4354 @override |
| 4355 List<String> get strings => _strings ??= <String>[]; | 4355 List<String> get strings => _strings ??= <String>[]; |
| 4356 | 4356 |
| 4357 /** | 4357 /** |
| 4358 * Sequence of strings consumed by the operations `pushString` and | 4358 * Sequence of strings consumed by the operations `pushString` and |
| 4359 * `invokeConstructor`. | 4359 * `invokeConstructor`. |
| 4360 */ | 4360 */ |
| 4361 void set strings(List<String> _value) { | 4361 void set strings(List<String> value) { |
| 4362 _strings = _value; | 4362 this._strings = value; |
| 4363 } | 4363 } |
| 4364 | 4364 |
| 4365 UnlinkedConstBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators
, List<double> doubles, List<int> ints, bool isValidConst, List<idl.UnlinkedCons
tOperation> operations, List<EntityRefBuilder> references, List<String> strings}
) | 4365 UnlinkedConstBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators
, List<double> doubles, List<int> ints, bool isValidConst, List<idl.UnlinkedCons
tOperation> operations, List<EntityRefBuilder> references, List<String> strings}
) |
| 4366 : _assignmentOperators = assignmentOperators, | 4366 : _assignmentOperators = assignmentOperators, |
| 4367 _doubles = doubles, | 4367 _doubles = doubles, |
| 4368 _ints = ints, | 4368 _ints = ints, |
| 4369 _isValidConst = isValidConst, | 4369 _isValidConst = isValidConst, |
| 4370 _operations = operations, | 4370 _operations = operations, |
| 4371 _references = references, | 4371 _references = references, |
| 4372 _strings = strings; | 4372 _strings = strings; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4585 String _name; | 4585 String _name; |
| 4586 | 4586 |
| 4587 @override | 4587 @override |
| 4588 List<String> get argumentNames => _argumentNames ??= <String>[]; | 4588 List<String> get argumentNames => _argumentNames ??= <String>[]; |
| 4589 | 4589 |
| 4590 /** | 4590 /** |
| 4591 * If there are `m` [arguments] and `n` [argumentNames], then each argument | 4591 * If there are `m` [arguments] and `n` [argumentNames], then each argument |
| 4592 * from [arguments] with index `i` such that `n + i - m >= 0`, should be used | 4592 * from [arguments] with index `i` such that `n + i - m >= 0`, should be used |
| 4593 * with the name at `n + i - m`. | 4593 * with the name at `n + i - m`. |
| 4594 */ | 4594 */ |
| 4595 void set argumentNames(List<String> _value) { | 4595 void set argumentNames(List<String> value) { |
| 4596 _argumentNames = _value; | 4596 this._argumentNames = value; |
| 4597 } | 4597 } |
| 4598 | 4598 |
| 4599 @override | 4599 @override |
| 4600 List<UnlinkedConstBuilder> get arguments => _arguments ??= <UnlinkedConstBuild
er>[]; | 4600 List<UnlinkedConstBuilder> get arguments => _arguments ??= <UnlinkedConstBuild
er>[]; |
| 4601 | 4601 |
| 4602 /** | 4602 /** |
| 4603 * If [kind] is `thisInvocation` or `superInvocation`, the arguments of the | 4603 * If [kind] is `thisInvocation` or `superInvocation`, the arguments of the |
| 4604 * invocation. Otherwise empty. | 4604 * invocation. Otherwise empty. |
| 4605 */ | 4605 */ |
| 4606 void set arguments(List<UnlinkedConstBuilder> _value) { | 4606 void set arguments(List<UnlinkedConstBuilder> value) { |
| 4607 _arguments = _value; | 4607 this._arguments = value; |
| 4608 } | 4608 } |
| 4609 | 4609 |
| 4610 @override | 4610 @override |
| 4611 UnlinkedConstBuilder get expression => _expression; | 4611 UnlinkedConstBuilder get expression => _expression; |
| 4612 | 4612 |
| 4613 /** | 4613 /** |
| 4614 * If [kind] is `field`, the expression of the field initializer. | 4614 * If [kind] is `field`, the expression of the field initializer. |
| 4615 * Otherwise `null`. | 4615 * Otherwise `null`. |
| 4616 */ | 4616 */ |
| 4617 void set expression(UnlinkedConstBuilder _value) { | 4617 void set expression(UnlinkedConstBuilder value) { |
| 4618 _expression = _value; | 4618 this._expression = value; |
| 4619 } | 4619 } |
| 4620 | 4620 |
| 4621 @override | 4621 @override |
| 4622 idl.UnlinkedConstructorInitializerKind get kind => _kind ??= idl.UnlinkedConst
ructorInitializerKind.field; | 4622 idl.UnlinkedConstructorInitializerKind get kind => _kind ??= idl.UnlinkedConst
ructorInitializerKind.field; |
| 4623 | 4623 |
| 4624 /** | 4624 /** |
| 4625 * The kind of the constructor initializer (field, redirect, super). | 4625 * The kind of the constructor initializer (field, redirect, super). |
| 4626 */ | 4626 */ |
| 4627 void set kind(idl.UnlinkedConstructorInitializerKind _value) { | 4627 void set kind(idl.UnlinkedConstructorInitializerKind value) { |
| 4628 _kind = _value; | 4628 this._kind = value; |
| 4629 } | 4629 } |
| 4630 | 4630 |
| 4631 @override | 4631 @override |
| 4632 String get name => _name ??= ''; | 4632 String get name => _name ??= ''; |
| 4633 | 4633 |
| 4634 /** | 4634 /** |
| 4635 * If [kind] is `field`, the name of the field declared in the class. If | 4635 * If [kind] is `field`, the name of the field declared in the class. If |
| 4636 * [kind] is `thisInvocation`, the name of the constructor, declared in this | 4636 * [kind] is `thisInvocation`, the name of the constructor, declared in this |
| 4637 * class, to redirect to. If [kind] is `superInvocation`, the name of the | 4637 * class, to redirect to. If [kind] is `superInvocation`, the name of the |
| 4638 * constructor, declared in the superclass, to invoke. | 4638 * constructor, declared in the superclass, to invoke. |
| 4639 */ | 4639 */ |
| 4640 void set name(String _value) { | 4640 void set name(String value) { |
| 4641 _name = _value; | 4641 this._name = value; |
| 4642 } | 4642 } |
| 4643 | 4643 |
| 4644 UnlinkedConstructorInitializerBuilder({List<String> argumentNames, List<Unlink
edConstBuilder> arguments, UnlinkedConstBuilder expression, idl.UnlinkedConstruc
torInitializerKind kind, String name}) | 4644 UnlinkedConstructorInitializerBuilder({List<String> argumentNames, List<Unlink
edConstBuilder> arguments, UnlinkedConstBuilder expression, idl.UnlinkedConstruc
torInitializerKind kind, String name}) |
| 4645 : _argumentNames = argumentNames, | 4645 : _argumentNames = argumentNames, |
| 4646 _arguments = arguments, | 4646 _arguments = arguments, |
| 4647 _expression = expression, | 4647 _expression = expression, |
| 4648 _kind = kind, | 4648 _kind = kind, |
| 4649 _name = name; | 4649 _name = name; |
| 4650 | 4650 |
| 4651 /** | 4651 /** |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4805 | 4805 |
| 4806 @override | 4806 @override |
| 4807 String get text => _text ??= ''; | 4807 String get text => _text ??= ''; |
| 4808 | 4808 |
| 4809 /** | 4809 /** |
| 4810 * Text of the documentation comment, with '\r\n' replaced by '\n'. | 4810 * Text of the documentation comment, with '\r\n' replaced by '\n'. |
| 4811 * | 4811 * |
| 4812 * References appearing within the doc comment in square brackets are not | 4812 * References appearing within the doc comment in square brackets are not |
| 4813 * specially encoded. | 4813 * specially encoded. |
| 4814 */ | 4814 */ |
| 4815 void set text(String _value) { | 4815 void set text(String value) { |
| 4816 _text = _value; | 4816 this._text = value; |
| 4817 } | 4817 } |
| 4818 | 4818 |
| 4819 UnlinkedDocumentationCommentBuilder({String text}) | 4819 UnlinkedDocumentationCommentBuilder({String text}) |
| 4820 : _text = text; | 4820 : _text = text; |
| 4821 | 4821 |
| 4822 /** | 4822 /** |
| 4823 * Flush [informative] data recursively. | 4823 * Flush [informative] data recursively. |
| 4824 */ | 4824 */ |
| 4825 void flushInformative() { | 4825 void flushInformative() { |
| 4826 } | 4826 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4897 String _name; | 4897 String _name; |
| 4898 int _nameOffset; | 4898 int _nameOffset; |
| 4899 List<UnlinkedEnumValueBuilder> _values; | 4899 List<UnlinkedEnumValueBuilder> _values; |
| 4900 | 4900 |
| 4901 @override | 4901 @override |
| 4902 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 4902 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 4903 | 4903 |
| 4904 /** | 4904 /** |
| 4905 * Annotations for this enum. | 4905 * Annotations for this enum. |
| 4906 */ | 4906 */ |
| 4907 void set annotations(List<UnlinkedConstBuilder> _value) { | 4907 void set annotations(List<UnlinkedConstBuilder> value) { |
| 4908 _annotations = _value; | 4908 this._annotations = value; |
| 4909 } | 4909 } |
| 4910 | 4910 |
| 4911 @override | 4911 @override |
| 4912 CodeRangeBuilder get codeRange => _codeRange; | 4912 CodeRangeBuilder get codeRange => _codeRange; |
| 4913 | 4913 |
| 4914 /** | 4914 /** |
| 4915 * Code range of the enum. | 4915 * Code range of the enum. |
| 4916 */ | 4916 */ |
| 4917 void set codeRange(CodeRangeBuilder _value) { | 4917 void set codeRange(CodeRangeBuilder value) { |
| 4918 _codeRange = _value; | 4918 this._codeRange = value; |
| 4919 } | 4919 } |
| 4920 | 4920 |
| 4921 @override | 4921 @override |
| 4922 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 4922 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 4923 | 4923 |
| 4924 /** | 4924 /** |
| 4925 * Documentation comment for the enum, or `null` if there is no documentation | 4925 * Documentation comment for the enum, or `null` if there is no documentation |
| 4926 * comment. | 4926 * comment. |
| 4927 */ | 4927 */ |
| 4928 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 4928 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 4929 _documentationComment = _value; | 4929 this._documentationComment = value; |
| 4930 } | 4930 } |
| 4931 | 4931 |
| 4932 @override | 4932 @override |
| 4933 String get name => _name ??= ''; | 4933 String get name => _name ??= ''; |
| 4934 | 4934 |
| 4935 /** | 4935 /** |
| 4936 * Name of the enum type. | 4936 * Name of the enum type. |
| 4937 */ | 4937 */ |
| 4938 void set name(String _value) { | 4938 void set name(String value) { |
| 4939 _name = _value; | 4939 this._name = value; |
| 4940 } | 4940 } |
| 4941 | 4941 |
| 4942 @override | 4942 @override |
| 4943 int get nameOffset => _nameOffset ??= 0; | 4943 int get nameOffset => _nameOffset ??= 0; |
| 4944 | 4944 |
| 4945 /** | 4945 /** |
| 4946 * Offset of the enum name relative to the beginning of the file. | 4946 * Offset of the enum name relative to the beginning of the file. |
| 4947 */ | 4947 */ |
| 4948 void set nameOffset(int _value) { | 4948 void set nameOffset(int value) { |
| 4949 assert(_value == null || _value >= 0); | 4949 assert(value == null || value >= 0); |
| 4950 _nameOffset = _value; | 4950 this._nameOffset = value; |
| 4951 } | 4951 } |
| 4952 | 4952 |
| 4953 @override | 4953 @override |
| 4954 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; | 4954 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; |
| 4955 | 4955 |
| 4956 /** | 4956 /** |
| 4957 * Values listed in the enum declaration, in declaration order. | 4957 * Values listed in the enum declaration, in declaration order. |
| 4958 */ | 4958 */ |
| 4959 void set values(List<UnlinkedEnumValueBuilder> _value) { | 4959 void set values(List<UnlinkedEnumValueBuilder> value) { |
| 4960 _values = _value; | 4960 this._values = value; |
| 4961 } | 4961 } |
| 4962 | 4962 |
| 4963 UnlinkedEnumBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name
, int nameOffset, List<UnlinkedEnumValueBuilder> values}) | 4963 UnlinkedEnumBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String name
, int nameOffset, List<UnlinkedEnumValueBuilder> values}) |
| 4964 : _annotations = annotations, | 4964 : _annotations = annotations, |
| 4965 _codeRange = codeRange, | 4965 _codeRange = codeRange, |
| 4966 _documentationComment = documentationComment, | 4966 _documentationComment = documentationComment, |
| 4967 _name = name, | 4967 _name = name, |
| 4968 _nameOffset = nameOffset, | 4968 _nameOffset = nameOffset, |
| 4969 _values = values; | 4969 _values = values; |
| 4970 | 4970 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5135 String _name; | 5135 String _name; |
| 5136 int _nameOffset; | 5136 int _nameOffset; |
| 5137 | 5137 |
| 5138 @override | 5138 @override |
| 5139 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 5139 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 5140 | 5140 |
| 5141 /** | 5141 /** |
| 5142 * Documentation comment for the enum value, or `null` if there is no | 5142 * Documentation comment for the enum value, or `null` if there is no |
| 5143 * documentation comment. | 5143 * documentation comment. |
| 5144 */ | 5144 */ |
| 5145 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 5145 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 5146 _documentationComment = _value; | 5146 this._documentationComment = value; |
| 5147 } | 5147 } |
| 5148 | 5148 |
| 5149 @override | 5149 @override |
| 5150 String get name => _name ??= ''; | 5150 String get name => _name ??= ''; |
| 5151 | 5151 |
| 5152 /** | 5152 /** |
| 5153 * Name of the enumerated value. | 5153 * Name of the enumerated value. |
| 5154 */ | 5154 */ |
| 5155 void set name(String _value) { | 5155 void set name(String value) { |
| 5156 _name = _value; | 5156 this._name = value; |
| 5157 } | 5157 } |
| 5158 | 5158 |
| 5159 @override | 5159 @override |
| 5160 int get nameOffset => _nameOffset ??= 0; | 5160 int get nameOffset => _nameOffset ??= 0; |
| 5161 | 5161 |
| 5162 /** | 5162 /** |
| 5163 * Offset of the enum value name relative to the beginning of the file. | 5163 * Offset of the enum value name relative to the beginning of the file. |
| 5164 */ | 5164 */ |
| 5165 void set nameOffset(int _value) { | 5165 void set nameOffset(int value) { |
| 5166 assert(_value == null || _value >= 0); | 5166 assert(value == null || value >= 0); |
| 5167 _nameOffset = _value; | 5167 this._nameOffset = value; |
| 5168 } | 5168 } |
| 5169 | 5169 |
| 5170 UnlinkedEnumValueBuilder({UnlinkedDocumentationCommentBuilder documentationCom
ment, String name, int nameOffset}) | 5170 UnlinkedEnumValueBuilder({UnlinkedDocumentationCommentBuilder documentationCom
ment, String name, int nameOffset}) |
| 5171 : _documentationComment = documentationComment, | 5171 : _documentationComment = documentationComment, |
| 5172 _name = name, | 5172 _name = name, |
| 5173 _nameOffset = nameOffset; | 5173 _nameOffset = nameOffset; |
| 5174 | 5174 |
| 5175 /** | 5175 /** |
| 5176 * Flush [informative] data recursively. | 5176 * Flush [informative] data recursively. |
| 5177 */ | 5177 */ |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5298 List<UnlinkedTypeParamBuilder> _typeParameters; | 5298 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 5299 int _visibleLength; | 5299 int _visibleLength; |
| 5300 int _visibleOffset; | 5300 int _visibleOffset; |
| 5301 | 5301 |
| 5302 @override | 5302 @override |
| 5303 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 5303 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 5304 | 5304 |
| 5305 /** | 5305 /** |
| 5306 * Annotations for this executable. | 5306 * Annotations for this executable. |
| 5307 */ | 5307 */ |
| 5308 void set annotations(List<UnlinkedConstBuilder> _value) { | 5308 void set annotations(List<UnlinkedConstBuilder> value) { |
| 5309 _annotations = _value; | 5309 this._annotations = value; |
| 5310 } | 5310 } |
| 5311 | 5311 |
| 5312 @override | 5312 @override |
| 5313 UnlinkedConstBuilder get bodyExpr => _bodyExpr; | 5313 UnlinkedConstBuilder get bodyExpr => _bodyExpr; |
| 5314 | 5314 |
| 5315 /** | 5315 /** |
| 5316 * If this executable's function body is declared using `=>`, the expression | 5316 * If this executable's function body is declared using `=>`, the expression |
| 5317 * to the right of the `=>`. May be omitted if neither type inference nor | 5317 * to the right of the `=>`. May be omitted if neither type inference nor |
| 5318 * constant evaluation depends on the function body. | 5318 * constant evaluation depends on the function body. |
| 5319 */ | 5319 */ |
| 5320 void set bodyExpr(UnlinkedConstBuilder _value) { | 5320 void set bodyExpr(UnlinkedConstBuilder value) { |
| 5321 _bodyExpr = _value; | 5321 this._bodyExpr = value; |
| 5322 } | 5322 } |
| 5323 | 5323 |
| 5324 @override | 5324 @override |
| 5325 CodeRangeBuilder get codeRange => _codeRange; | 5325 CodeRangeBuilder get codeRange => _codeRange; |
| 5326 | 5326 |
| 5327 /** | 5327 /** |
| 5328 * Code range of the executable. | 5328 * Code range of the executable. |
| 5329 */ | 5329 */ |
| 5330 void set codeRange(CodeRangeBuilder _value) { | 5330 void set codeRange(CodeRangeBuilder value) { |
| 5331 _codeRange = _value; | 5331 this._codeRange = value; |
| 5332 } | 5332 } |
| 5333 | 5333 |
| 5334 @override | 5334 @override |
| 5335 List<UnlinkedConstructorInitializerBuilder> get constantInitializers => _const
antInitializers ??= <UnlinkedConstructorInitializerBuilder>[]; | 5335 List<UnlinkedConstructorInitializerBuilder> get constantInitializers => _const
antInitializers ??= <UnlinkedConstructorInitializerBuilder>[]; |
| 5336 | 5336 |
| 5337 /** | 5337 /** |
| 5338 * If a constant [UnlinkedExecutableKind.constructor], the constructor | 5338 * If a constant [UnlinkedExecutableKind.constructor], the constructor |
| 5339 * initializers. Otherwise empty. | 5339 * initializers. Otherwise empty. |
| 5340 */ | 5340 */ |
| 5341 void set constantInitializers(List<UnlinkedConstructorInitializerBuilder> _val
ue) { | 5341 void set constantInitializers(List<UnlinkedConstructorInitializerBuilder> valu
e) { |
| 5342 _constantInitializers = _value; | 5342 this._constantInitializers = value; |
| 5343 } | 5343 } |
| 5344 | 5344 |
| 5345 @override | 5345 @override |
| 5346 int get constCycleSlot => _constCycleSlot ??= 0; | 5346 int get constCycleSlot => _constCycleSlot ??= 0; |
| 5347 | 5347 |
| 5348 /** | 5348 /** |
| 5349 * If [kind] is [UnlinkedExecutableKind.constructor] and [isConst] is `true`, | 5349 * If [kind] is [UnlinkedExecutableKind.constructor] and [isConst] is `true`, |
| 5350 * a nonzero slot id which is unique within this compilation unit. If this id | 5350 * a nonzero slot id which is unique within this compilation unit. If this id |
| 5351 * is found in [LinkedUnit.constCycles], then this constructor is part of a | 5351 * is found in [LinkedUnit.constCycles], then this constructor is part of a |
| 5352 * cycle. | 5352 * cycle. |
| 5353 * | 5353 * |
| 5354 * Otherwise, zero. | 5354 * Otherwise, zero. |
| 5355 */ | 5355 */ |
| 5356 void set constCycleSlot(int _value) { | 5356 void set constCycleSlot(int value) { |
| 5357 assert(_value == null || _value >= 0); | 5357 assert(value == null || value >= 0); |
| 5358 _constCycleSlot = _value; | 5358 this._constCycleSlot = value; |
| 5359 } | 5359 } |
| 5360 | 5360 |
| 5361 @override | 5361 @override |
| 5362 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 5362 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 5363 | 5363 |
| 5364 /** | 5364 /** |
| 5365 * Documentation comment for the executable, or `null` if there is no | 5365 * Documentation comment for the executable, or `null` if there is no |
| 5366 * documentation comment. | 5366 * documentation comment. |
| 5367 */ | 5367 */ |
| 5368 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 5368 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 5369 _documentationComment = _value; | 5369 this._documentationComment = value; |
| 5370 } | 5370 } |
| 5371 | 5371 |
| 5372 @override | 5372 @override |
| 5373 int get inferredReturnTypeSlot => _inferredReturnTypeSlot ??= 0; | 5373 int get inferredReturnTypeSlot => _inferredReturnTypeSlot ??= 0; |
| 5374 | 5374 |
| 5375 /** | 5375 /** |
| 5376 * If this executable's return type is inferable, nonzero slot id | 5376 * If this executable's return type is inferable, nonzero slot id |
| 5377 * identifying which entry in [LinkedUnit.types] contains the inferred | 5377 * identifying which entry in [LinkedUnit.types] contains the inferred |
| 5378 * return type. If there is no matching entry in [LinkedUnit.types], then | 5378 * return type. If there is no matching entry in [LinkedUnit.types], then |
| 5379 * no return type was inferred for this variable, so its static type is | 5379 * no return type was inferred for this variable, so its static type is |
| 5380 * `dynamic`. | 5380 * `dynamic`. |
| 5381 */ | 5381 */ |
| 5382 void set inferredReturnTypeSlot(int _value) { | 5382 void set inferredReturnTypeSlot(int value) { |
| 5383 assert(_value == null || _value >= 0); | 5383 assert(value == null || value >= 0); |
| 5384 _inferredReturnTypeSlot = _value; | 5384 this._inferredReturnTypeSlot = value; |
| 5385 } | 5385 } |
| 5386 | 5386 |
| 5387 @override | 5387 @override |
| 5388 bool get isAbstract => _isAbstract ??= false; | 5388 bool get isAbstract => _isAbstract ??= false; |
| 5389 | 5389 |
| 5390 /** | 5390 /** |
| 5391 * Indicates whether the executable is declared using the `abstract` keyword. | 5391 * Indicates whether the executable is declared using the `abstract` keyword. |
| 5392 */ | 5392 */ |
| 5393 void set isAbstract(bool _value) { | 5393 void set isAbstract(bool value) { |
| 5394 _isAbstract = _value; | 5394 this._isAbstract = value; |
| 5395 } | 5395 } |
| 5396 | 5396 |
| 5397 @override | 5397 @override |
| 5398 bool get isAsynchronous => _isAsynchronous ??= false; | 5398 bool get isAsynchronous => _isAsynchronous ??= false; |
| 5399 | 5399 |
| 5400 /** | 5400 /** |
| 5401 * Indicates whether the executable has body marked as being asynchronous. | 5401 * Indicates whether the executable has body marked as being asynchronous. |
| 5402 */ | 5402 */ |
| 5403 void set isAsynchronous(bool _value) { | 5403 void set isAsynchronous(bool value) { |
| 5404 _isAsynchronous = _value; | 5404 this._isAsynchronous = value; |
| 5405 } | 5405 } |
| 5406 | 5406 |
| 5407 @override | 5407 @override |
| 5408 bool get isConst => _isConst ??= false; | 5408 bool get isConst => _isConst ??= false; |
| 5409 | 5409 |
| 5410 /** | 5410 /** |
| 5411 * Indicates whether the executable is declared using the `const` keyword. | 5411 * Indicates whether the executable is declared using the `const` keyword. |
| 5412 */ | 5412 */ |
| 5413 void set isConst(bool _value) { | 5413 void set isConst(bool value) { |
| 5414 _isConst = _value; | 5414 this._isConst = value; |
| 5415 } | 5415 } |
| 5416 | 5416 |
| 5417 @override | 5417 @override |
| 5418 bool get isExternal => _isExternal ??= false; | 5418 bool get isExternal => _isExternal ??= false; |
| 5419 | 5419 |
| 5420 /** | 5420 /** |
| 5421 * Indicates whether the executable is declared using the `external` keyword. | 5421 * Indicates whether the executable is declared using the `external` keyword. |
| 5422 */ | 5422 */ |
| 5423 void set isExternal(bool _value) { | 5423 void set isExternal(bool value) { |
| 5424 _isExternal = _value; | 5424 this._isExternal = value; |
| 5425 } | 5425 } |
| 5426 | 5426 |
| 5427 @override | 5427 @override |
| 5428 bool get isFactory => _isFactory ??= false; | 5428 bool get isFactory => _isFactory ??= false; |
| 5429 | 5429 |
| 5430 /** | 5430 /** |
| 5431 * Indicates whether the executable is declared using the `factory` keyword. | 5431 * Indicates whether the executable is declared using the `factory` keyword. |
| 5432 */ | 5432 */ |
| 5433 void set isFactory(bool _value) { | 5433 void set isFactory(bool value) { |
| 5434 _isFactory = _value; | 5434 this._isFactory = value; |
| 5435 } | 5435 } |
| 5436 | 5436 |
| 5437 @override | 5437 @override |
| 5438 bool get isGenerator => _isGenerator ??= false; | 5438 bool get isGenerator => _isGenerator ??= false; |
| 5439 | 5439 |
| 5440 /** | 5440 /** |
| 5441 * Indicates whether the executable has body marked as being a generator. | 5441 * Indicates whether the executable has body marked as being a generator. |
| 5442 */ | 5442 */ |
| 5443 void set isGenerator(bool _value) { | 5443 void set isGenerator(bool value) { |
| 5444 _isGenerator = _value; | 5444 this._isGenerator = value; |
| 5445 } | 5445 } |
| 5446 | 5446 |
| 5447 @override | 5447 @override |
| 5448 bool get isRedirectedConstructor => _isRedirectedConstructor ??= false; | 5448 bool get isRedirectedConstructor => _isRedirectedConstructor ??= false; |
| 5449 | 5449 |
| 5450 /** | 5450 /** |
| 5451 * Indicates whether the executable is a redirected constructor. | 5451 * Indicates whether the executable is a redirected constructor. |
| 5452 */ | 5452 */ |
| 5453 void set isRedirectedConstructor(bool _value) { | 5453 void set isRedirectedConstructor(bool value) { |
| 5454 _isRedirectedConstructor = _value; | 5454 this._isRedirectedConstructor = value; |
| 5455 } | 5455 } |
| 5456 | 5456 |
| 5457 @override | 5457 @override |
| 5458 bool get isStatic => _isStatic ??= false; | 5458 bool get isStatic => _isStatic ??= false; |
| 5459 | 5459 |
| 5460 /** | 5460 /** |
| 5461 * Indicates whether the executable is declared using the `static` keyword. | 5461 * Indicates whether the executable is declared using the `static` keyword. |
| 5462 * | 5462 * |
| 5463 * Note that for top level executables, this flag is false, since they are | 5463 * Note that for top level executables, this flag is false, since they are |
| 5464 * not declared using the `static` keyword (even though they are considered | 5464 * not declared using the `static` keyword (even though they are considered |
| 5465 * static for semantic purposes). | 5465 * static for semantic purposes). |
| 5466 */ | 5466 */ |
| 5467 void set isStatic(bool _value) { | 5467 void set isStatic(bool value) { |
| 5468 _isStatic = _value; | 5468 this._isStatic = value; |
| 5469 } | 5469 } |
| 5470 | 5470 |
| 5471 @override | 5471 @override |
| 5472 idl.UnlinkedExecutableKind get kind => _kind ??= idl.UnlinkedExecutableKind.fu
nctionOrMethod; | 5472 idl.UnlinkedExecutableKind get kind => _kind ??= idl.UnlinkedExecutableKind.fu
nctionOrMethod; |
| 5473 | 5473 |
| 5474 /** | 5474 /** |
| 5475 * The kind of the executable (function/method, getter, setter, or | 5475 * The kind of the executable (function/method, getter, setter, or |
| 5476 * constructor). | 5476 * constructor). |
| 5477 */ | 5477 */ |
| 5478 void set kind(idl.UnlinkedExecutableKind _value) { | 5478 void set kind(idl.UnlinkedExecutableKind value) { |
| 5479 _kind = _value; | 5479 this._kind = value; |
| 5480 } | 5480 } |
| 5481 | 5481 |
| 5482 @override | 5482 @override |
| 5483 List<UnlinkedExecutableBuilder> get localFunctions => _localFunctions ??= <Unl
inkedExecutableBuilder>[]; | 5483 List<UnlinkedExecutableBuilder> get localFunctions => _localFunctions ??= <Unl
inkedExecutableBuilder>[]; |
| 5484 | 5484 |
| 5485 /** | 5485 /** |
| 5486 * The list of local functions. | 5486 * The list of local functions. |
| 5487 */ | 5487 */ |
| 5488 void set localFunctions(List<UnlinkedExecutableBuilder> _value) { | 5488 void set localFunctions(List<UnlinkedExecutableBuilder> value) { |
| 5489 _localFunctions = _value; | 5489 this._localFunctions = value; |
| 5490 } | 5490 } |
| 5491 | 5491 |
| 5492 @override | 5492 @override |
| 5493 List<UnlinkedLabelBuilder> get localLabels => _localLabels ??= <UnlinkedLabelB
uilder>[]; | 5493 List<UnlinkedLabelBuilder> get localLabels => _localLabels ??= <UnlinkedLabelB
uilder>[]; |
| 5494 | 5494 |
| 5495 /** | 5495 /** |
| 5496 * The list of local labels. | 5496 * The list of local labels. |
| 5497 */ | 5497 */ |
| 5498 void set localLabels(List<UnlinkedLabelBuilder> _value) { | 5498 void set localLabels(List<UnlinkedLabelBuilder> value) { |
| 5499 _localLabels = _value; | 5499 this._localLabels = value; |
| 5500 } | 5500 } |
| 5501 | 5501 |
| 5502 @override | 5502 @override |
| 5503 List<UnlinkedVariableBuilder> get localVariables => _localVariables ??= <Unlin
kedVariableBuilder>[]; | 5503 List<UnlinkedVariableBuilder> get localVariables => _localVariables ??= <Unlin
kedVariableBuilder>[]; |
| 5504 | 5504 |
| 5505 /** | 5505 /** |
| 5506 * The list of local variables. | 5506 * The list of local variables. |
| 5507 */ | 5507 */ |
| 5508 void set localVariables(List<UnlinkedVariableBuilder> _value) { | 5508 void set localVariables(List<UnlinkedVariableBuilder> value) { |
| 5509 _localVariables = _value; | 5509 this._localVariables = value; |
| 5510 } | 5510 } |
| 5511 | 5511 |
| 5512 @override | 5512 @override |
| 5513 String get name => _name ??= ''; | 5513 String get name => _name ??= ''; |
| 5514 | 5514 |
| 5515 /** | 5515 /** |
| 5516 * Name of the executable. For setters, this includes the trailing "=". For | 5516 * Name of the executable. For setters, this includes the trailing "=". For |
| 5517 * named constructors, this excludes the class name and excludes the ".". | 5517 * named constructors, this excludes the class name and excludes the ".". |
| 5518 * For unnamed constructors, this is the empty string. | 5518 * For unnamed constructors, this is the empty string. |
| 5519 */ | 5519 */ |
| 5520 void set name(String _value) { | 5520 void set name(String value) { |
| 5521 _name = _value; | 5521 this._name = value; |
| 5522 } | 5522 } |
| 5523 | 5523 |
| 5524 @override | 5524 @override |
| 5525 int get nameEnd => _nameEnd ??= 0; | 5525 int get nameEnd => _nameEnd ??= 0; |
| 5526 | 5526 |
| 5527 /** | 5527 /** |
| 5528 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, | 5528 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, |
| 5529 * the offset of the end of the constructor name. Otherwise zero. | 5529 * the offset of the end of the constructor name. Otherwise zero. |
| 5530 */ | 5530 */ |
| 5531 void set nameEnd(int _value) { | 5531 void set nameEnd(int value) { |
| 5532 assert(_value == null || _value >= 0); | 5532 assert(value == null || value >= 0); |
| 5533 _nameEnd = _value; | 5533 this._nameEnd = value; |
| 5534 } | 5534 } |
| 5535 | 5535 |
| 5536 @override | 5536 @override |
| 5537 int get nameOffset => _nameOffset ??= 0; | 5537 int get nameOffset => _nameOffset ??= 0; |
| 5538 | 5538 |
| 5539 /** | 5539 /** |
| 5540 * Offset of the executable name relative to the beginning of the file. For | 5540 * Offset of the executable name relative to the beginning of the file. For |
| 5541 * named constructors, this excludes the class name and excludes the ".". | 5541 * named constructors, this excludes the class name and excludes the ".". |
| 5542 * For unnamed constructors, this is the offset of the class name (i.e. the | 5542 * For unnamed constructors, this is the offset of the class name (i.e. the |
| 5543 * offset of the second "C" in "class C { C(); }"). | 5543 * offset of the second "C" in "class C { C(); }"). |
| 5544 */ | 5544 */ |
| 5545 void set nameOffset(int _value) { | 5545 void set nameOffset(int value) { |
| 5546 assert(_value == null || _value >= 0); | 5546 assert(value == null || value >= 0); |
| 5547 _nameOffset = _value; | 5547 this._nameOffset = value; |
| 5548 } | 5548 } |
| 5549 | 5549 |
| 5550 @override | 5550 @override |
| 5551 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 5551 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 5552 | 5552 |
| 5553 /** | 5553 /** |
| 5554 * Parameters of the executable, if any. Note that getters have no | 5554 * Parameters of the executable, if any. Note that getters have no |
| 5555 * parameters (hence this will be the empty list), and setters have a single | 5555 * parameters (hence this will be the empty list), and setters have a single |
| 5556 * parameter. | 5556 * parameter. |
| 5557 */ | 5557 */ |
| 5558 void set parameters(List<UnlinkedParamBuilder> _value) { | 5558 void set parameters(List<UnlinkedParamBuilder> value) { |
| 5559 _parameters = _value; | 5559 this._parameters = value; |
| 5560 } | 5560 } |
| 5561 | 5561 |
| 5562 @override | 5562 @override |
| 5563 int get periodOffset => _periodOffset ??= 0; | 5563 int get periodOffset => _periodOffset ??= 0; |
| 5564 | 5564 |
| 5565 /** | 5565 /** |
| 5566 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, | 5566 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, |
| 5567 * the offset of the period before the constructor name. Otherwise zero. | 5567 * the offset of the period before the constructor name. Otherwise zero. |
| 5568 */ | 5568 */ |
| 5569 void set periodOffset(int _value) { | 5569 void set periodOffset(int value) { |
| 5570 assert(_value == null || _value >= 0); | 5570 assert(value == null || value >= 0); |
| 5571 _periodOffset = _value; | 5571 this._periodOffset = value; |
| 5572 } | 5572 } |
| 5573 | 5573 |
| 5574 @override | 5574 @override |
| 5575 EntityRefBuilder get redirectedConstructor => _redirectedConstructor; | 5575 EntityRefBuilder get redirectedConstructor => _redirectedConstructor; |
| 5576 | 5576 |
| 5577 /** | 5577 /** |
| 5578 * If [isRedirectedConstructor] and [isFactory] are both `true`, the | 5578 * If [isRedirectedConstructor] and [isFactory] are both `true`, the |
| 5579 * constructor to which this constructor redirects; otherwise empty. | 5579 * constructor to which this constructor redirects; otherwise empty. |
| 5580 */ | 5580 */ |
| 5581 void set redirectedConstructor(EntityRefBuilder _value) { | 5581 void set redirectedConstructor(EntityRefBuilder value) { |
| 5582 _redirectedConstructor = _value; | 5582 this._redirectedConstructor = value; |
| 5583 } | 5583 } |
| 5584 | 5584 |
| 5585 @override | 5585 @override |
| 5586 String get redirectedConstructorName => _redirectedConstructorName ??= ''; | 5586 String get redirectedConstructorName => _redirectedConstructorName ??= ''; |
| 5587 | 5587 |
| 5588 /** | 5588 /** |
| 5589 * If [isRedirectedConstructor] is `true` and [isFactory] is `false`, the | 5589 * If [isRedirectedConstructor] is `true` and [isFactory] is `false`, the |
| 5590 * name of the constructor that this constructor redirects to; otherwise | 5590 * name of the constructor that this constructor redirects to; otherwise |
| 5591 * empty. | 5591 * empty. |
| 5592 */ | 5592 */ |
| 5593 void set redirectedConstructorName(String _value) { | 5593 void set redirectedConstructorName(String value) { |
| 5594 _redirectedConstructorName = _value; | 5594 this._redirectedConstructorName = value; |
| 5595 } | 5595 } |
| 5596 | 5596 |
| 5597 @override | 5597 @override |
| 5598 EntityRefBuilder get returnType => _returnType; | 5598 EntityRefBuilder get returnType => _returnType; |
| 5599 | 5599 |
| 5600 /** | 5600 /** |
| 5601 * Declared return type of the executable. Absent if the executable is a | 5601 * Declared return type of the executable. Absent if the executable is a |
| 5602 * constructor or the return type is implicit. Absent for executables | 5602 * constructor or the return type is implicit. Absent for executables |
| 5603 * associated with variable initializers and closures, since these | 5603 * associated with variable initializers and closures, since these |
| 5604 * executables may have return types that are not accessible via direct | 5604 * executables may have return types that are not accessible via direct |
| 5605 * imports. | 5605 * imports. |
| 5606 */ | 5606 */ |
| 5607 void set returnType(EntityRefBuilder _value) { | 5607 void set returnType(EntityRefBuilder value) { |
| 5608 _returnType = _value; | 5608 this._returnType = value; |
| 5609 } | 5609 } |
| 5610 | 5610 |
| 5611 @override | 5611 @override |
| 5612 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 5612 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 5613 | 5613 |
| 5614 /** | 5614 /** |
| 5615 * Type parameters of the executable, if any. Empty if support for generic | 5615 * Type parameters of the executable, if any. Empty if support for generic |
| 5616 * method syntax is disabled. | 5616 * method syntax is disabled. |
| 5617 */ | 5617 */ |
| 5618 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 5618 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
| 5619 _typeParameters = _value; | 5619 this._typeParameters = value; |
| 5620 } | 5620 } |
| 5621 | 5621 |
| 5622 @override | 5622 @override |
| 5623 int get visibleLength => _visibleLength ??= 0; | 5623 int get visibleLength => _visibleLength ??= 0; |
| 5624 | 5624 |
| 5625 /** | 5625 /** |
| 5626 * If a local function, the length of the visible range; zero otherwise. | 5626 * If a local function, the length of the visible range; zero otherwise. |
| 5627 */ | 5627 */ |
| 5628 void set visibleLength(int _value) { | 5628 void set visibleLength(int value) { |
| 5629 assert(_value == null || _value >= 0); | 5629 assert(value == null || value >= 0); |
| 5630 _visibleLength = _value; | 5630 this._visibleLength = value; |
| 5631 } | 5631 } |
| 5632 | 5632 |
| 5633 @override | 5633 @override |
| 5634 int get visibleOffset => _visibleOffset ??= 0; | 5634 int get visibleOffset => _visibleOffset ??= 0; |
| 5635 | 5635 |
| 5636 /** | 5636 /** |
| 5637 * If a local function, the beginning of the visible range; zero otherwise. | 5637 * If a local function, the beginning of the visible range; zero otherwise. |
| 5638 */ | 5638 */ |
| 5639 void set visibleOffset(int _value) { | 5639 void set visibleOffset(int value) { |
| 5640 assert(_value == null || _value >= 0); | 5640 assert(value == null || value >= 0); |
| 5641 _visibleOffset = _value; | 5641 this._visibleOffset = value; |
| 5642 } | 5642 } |
| 5643 | 5643 |
| 5644 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedCon
stBuilder bodyExpr, CodeRangeBuilder codeRange, List<UnlinkedConstructorInitiali
zerBuilder> constantInitializers, int constCycleSlot, UnlinkedDocumentationComme
ntBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, boo
l isAsynchronous, bool isConst, bool isExternal, bool isFactory, bool isGenerato
r, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind,
List<UnlinkedExecutableBuilder> localFunctions, List<UnlinkedLabelBuilder> loca
lLabels, List<UnlinkedVariableBuilder> localVariables, String name, int nameEnd,
int nameOffset, List<UnlinkedParamBuilder> parameters, int periodOffset, Entity
RefBuilder redirectedConstructor, String redirectedConstructorName, EntityRefBui
lder returnType, List<UnlinkedTypeParamBuilder> typeParameters, int visibleLengt
h, int visibleOffset}) | 5644 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedCon
stBuilder bodyExpr, CodeRangeBuilder codeRange, List<UnlinkedConstructorInitiali
zerBuilder> constantInitializers, int constCycleSlot, UnlinkedDocumentationComme
ntBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, boo
l isAsynchronous, bool isConst, bool isExternal, bool isFactory, bool isGenerato
r, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind,
List<UnlinkedExecutableBuilder> localFunctions, List<UnlinkedLabelBuilder> loca
lLabels, List<UnlinkedVariableBuilder> localVariables, String name, int nameEnd,
int nameOffset, List<UnlinkedParamBuilder> parameters, int periodOffset, Entity
RefBuilder redirectedConstructor, String redirectedConstructorName, EntityRefBui
lder returnType, List<UnlinkedTypeParamBuilder> typeParameters, int visibleLengt
h, int visibleOffset}) |
| 5645 : _annotations = annotations, | 5645 : _annotations = annotations, |
| 5646 _bodyExpr = bodyExpr, | 5646 _bodyExpr = bodyExpr, |
| 5647 _codeRange = codeRange, | 5647 _codeRange = codeRange, |
| 5648 _constantInitializers = constantInitializers, | 5648 _constantInitializers = constantInitializers, |
| 5649 _constCycleSlot = constCycleSlot, | 5649 _constCycleSlot = constCycleSlot, |
| 5650 _documentationComment = documentationComment, | 5650 _documentationComment = documentationComment, |
| 5651 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 5651 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6218 int _offset; | 6218 int _offset; |
| 6219 int _uriEnd; | 6219 int _uriEnd; |
| 6220 int _uriOffset; | 6220 int _uriOffset; |
| 6221 | 6221 |
| 6222 @override | 6222 @override |
| 6223 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 6223 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 6224 | 6224 |
| 6225 /** | 6225 /** |
| 6226 * Annotations for this export directive. | 6226 * Annotations for this export directive. |
| 6227 */ | 6227 */ |
| 6228 void set annotations(List<UnlinkedConstBuilder> _value) { | 6228 void set annotations(List<UnlinkedConstBuilder> value) { |
| 6229 _annotations = _value; | 6229 this._annotations = value; |
| 6230 } | 6230 } |
| 6231 | 6231 |
| 6232 @override | 6232 @override |
| 6233 int get offset => _offset ??= 0; | 6233 int get offset => _offset ??= 0; |
| 6234 | 6234 |
| 6235 /** | 6235 /** |
| 6236 * Offset of the "export" keyword. | 6236 * Offset of the "export" keyword. |
| 6237 */ | 6237 */ |
| 6238 void set offset(int _value) { | 6238 void set offset(int value) { |
| 6239 assert(_value == null || _value >= 0); | 6239 assert(value == null || value >= 0); |
| 6240 _offset = _value; | 6240 this._offset = value; |
| 6241 } | 6241 } |
| 6242 | 6242 |
| 6243 @override | 6243 @override |
| 6244 int get uriEnd => _uriEnd ??= 0; | 6244 int get uriEnd => _uriEnd ??= 0; |
| 6245 | 6245 |
| 6246 /** | 6246 /** |
| 6247 * End of the URI string (including quotes) relative to the beginning of the | 6247 * End of the URI string (including quotes) relative to the beginning of the |
| 6248 * file. | 6248 * file. |
| 6249 */ | 6249 */ |
| 6250 void set uriEnd(int _value) { | 6250 void set uriEnd(int value) { |
| 6251 assert(_value == null || _value >= 0); | 6251 assert(value == null || value >= 0); |
| 6252 _uriEnd = _value; | 6252 this._uriEnd = value; |
| 6253 } | 6253 } |
| 6254 | 6254 |
| 6255 @override | 6255 @override |
| 6256 int get uriOffset => _uriOffset ??= 0; | 6256 int get uriOffset => _uriOffset ??= 0; |
| 6257 | 6257 |
| 6258 /** | 6258 /** |
| 6259 * Offset of the URI string (including quotes) relative to the beginning of | 6259 * Offset of the URI string (including quotes) relative to the beginning of |
| 6260 * the file. | 6260 * the file. |
| 6261 */ | 6261 */ |
| 6262 void set uriOffset(int _value) { | 6262 void set uriOffset(int value) { |
| 6263 assert(_value == null || _value >= 0); | 6263 assert(value == null || value >= 0); |
| 6264 _uriOffset = _value; | 6264 this._uriOffset = value; |
| 6265 } | 6265 } |
| 6266 | 6266 |
| 6267 UnlinkedExportNonPublicBuilder({List<UnlinkedConstBuilder> annotations, int of
fset, int uriEnd, int uriOffset}) | 6267 UnlinkedExportNonPublicBuilder({List<UnlinkedConstBuilder> annotations, int of
fset, int uriEnd, int uriOffset}) |
| 6268 : _annotations = annotations, | 6268 : _annotations = annotations, |
| 6269 _offset = offset, | 6269 _offset = offset, |
| 6270 _uriEnd = uriEnd, | 6270 _uriEnd = uriEnd, |
| 6271 _uriOffset = uriOffset; | 6271 _uriOffset = uriOffset; |
| 6272 | 6272 |
| 6273 /** | 6273 /** |
| 6274 * Flush [informative] data recursively. | 6274 * Flush [informative] data recursively. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6385 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { | 6385 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { |
| 6386 List<UnlinkedCombinatorBuilder> _combinators; | 6386 List<UnlinkedCombinatorBuilder> _combinators; |
| 6387 String _uri; | 6387 String _uri; |
| 6388 | 6388 |
| 6389 @override | 6389 @override |
| 6390 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; | 6390 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; |
| 6391 | 6391 |
| 6392 /** | 6392 /** |
| 6393 * Combinators contained in this import declaration. | 6393 * Combinators contained in this import declaration. |
| 6394 */ | 6394 */ |
| 6395 void set combinators(List<UnlinkedCombinatorBuilder> _value) { | 6395 void set combinators(List<UnlinkedCombinatorBuilder> value) { |
| 6396 _combinators = _value; | 6396 this._combinators = value; |
| 6397 } | 6397 } |
| 6398 | 6398 |
| 6399 @override | 6399 @override |
| 6400 String get uri => _uri ??= ''; | 6400 String get uri => _uri ??= ''; |
| 6401 | 6401 |
| 6402 /** | 6402 /** |
| 6403 * URI used in the source code to reference the exported library. | 6403 * URI used in the source code to reference the exported library. |
| 6404 */ | 6404 */ |
| 6405 void set uri(String _value) { | 6405 void set uri(String value) { |
| 6406 _uri = _value; | 6406 this._uri = value; |
| 6407 } | 6407 } |
| 6408 | 6408 |
| 6409 UnlinkedExportPublicBuilder({List<UnlinkedCombinatorBuilder> combinators, Stri
ng uri}) | 6409 UnlinkedExportPublicBuilder({List<UnlinkedCombinatorBuilder> combinators, Stri
ng uri}) |
| 6410 : _combinators = combinators, | 6410 : _combinators = combinators, |
| 6411 _uri = uri; | 6411 _uri = uri; |
| 6412 | 6412 |
| 6413 /** | 6413 /** |
| 6414 * Flush [informative] data recursively. | 6414 * Flush [informative] data recursively. |
| 6415 */ | 6415 */ |
| 6416 void flushInformative() { | 6416 void flushInformative() { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6511 String _uri; | 6511 String _uri; |
| 6512 int _uriEnd; | 6512 int _uriEnd; |
| 6513 int _uriOffset; | 6513 int _uriOffset; |
| 6514 | 6514 |
| 6515 @override | 6515 @override |
| 6516 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 6516 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 6517 | 6517 |
| 6518 /** | 6518 /** |
| 6519 * Annotations for this import declaration. | 6519 * Annotations for this import declaration. |
| 6520 */ | 6520 */ |
| 6521 void set annotations(List<UnlinkedConstBuilder> _value) { | 6521 void set annotations(List<UnlinkedConstBuilder> value) { |
| 6522 _annotations = _value; | 6522 this._annotations = value; |
| 6523 } | 6523 } |
| 6524 | 6524 |
| 6525 @override | 6525 @override |
| 6526 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; | 6526 List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedC
ombinatorBuilder>[]; |
| 6527 | 6527 |
| 6528 /** | 6528 /** |
| 6529 * Combinators contained in this import declaration. | 6529 * Combinators contained in this import declaration. |
| 6530 */ | 6530 */ |
| 6531 void set combinators(List<UnlinkedCombinatorBuilder> _value) { | 6531 void set combinators(List<UnlinkedCombinatorBuilder> value) { |
| 6532 _combinators = _value; | 6532 this._combinators = value; |
| 6533 } | 6533 } |
| 6534 | 6534 |
| 6535 @override | 6535 @override |
| 6536 bool get isDeferred => _isDeferred ??= false; | 6536 bool get isDeferred => _isDeferred ??= false; |
| 6537 | 6537 |
| 6538 /** | 6538 /** |
| 6539 * Indicates whether the import declaration uses the `deferred` keyword. | 6539 * Indicates whether the import declaration uses the `deferred` keyword. |
| 6540 */ | 6540 */ |
| 6541 void set isDeferred(bool _value) { | 6541 void set isDeferred(bool value) { |
| 6542 _isDeferred = _value; | 6542 this._isDeferred = value; |
| 6543 } | 6543 } |
| 6544 | 6544 |
| 6545 @override | 6545 @override |
| 6546 bool get isImplicit => _isImplicit ??= false; | 6546 bool get isImplicit => _isImplicit ??= false; |
| 6547 | 6547 |
| 6548 /** | 6548 /** |
| 6549 * Indicates whether the import declaration is implicit. | 6549 * Indicates whether the import declaration is implicit. |
| 6550 */ | 6550 */ |
| 6551 void set isImplicit(bool _value) { | 6551 void set isImplicit(bool value) { |
| 6552 _isImplicit = _value; | 6552 this._isImplicit = value; |
| 6553 } | 6553 } |
| 6554 | 6554 |
| 6555 @override | 6555 @override |
| 6556 int get offset => _offset ??= 0; | 6556 int get offset => _offset ??= 0; |
| 6557 | 6557 |
| 6558 /** | 6558 /** |
| 6559 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] | 6559 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] |
| 6560 * is true, zero. | 6560 * is true, zero. |
| 6561 */ | 6561 */ |
| 6562 void set offset(int _value) { | 6562 void set offset(int value) { |
| 6563 assert(_value == null || _value >= 0); | 6563 assert(value == null || value >= 0); |
| 6564 _offset = _value; | 6564 this._offset = value; |
| 6565 } | 6565 } |
| 6566 | 6566 |
| 6567 @override | 6567 @override |
| 6568 int get prefixOffset => _prefixOffset ??= 0; | 6568 int get prefixOffset => _prefixOffset ??= 0; |
| 6569 | 6569 |
| 6570 /** | 6570 /** |
| 6571 * Offset of the prefix name relative to the beginning of the file, or zero | 6571 * Offset of the prefix name relative to the beginning of the file, or zero |
| 6572 * if there is no prefix. | 6572 * if there is no prefix. |
| 6573 */ | 6573 */ |
| 6574 void set prefixOffset(int _value) { | 6574 void set prefixOffset(int value) { |
| 6575 assert(_value == null || _value >= 0); | 6575 assert(value == null || value >= 0); |
| 6576 _prefixOffset = _value; | 6576 this._prefixOffset = value; |
| 6577 } | 6577 } |
| 6578 | 6578 |
| 6579 @override | 6579 @override |
| 6580 int get prefixReference => _prefixReference ??= 0; | 6580 int get prefixReference => _prefixReference ??= 0; |
| 6581 | 6581 |
| 6582 /** | 6582 /** |
| 6583 * Index into [UnlinkedUnit.references] of the prefix declared by this | 6583 * Index into [UnlinkedUnit.references] of the prefix declared by this |
| 6584 * import declaration, or zero if this import declaration declares no prefix. | 6584 * import declaration, or zero if this import declaration declares no prefix. |
| 6585 * | 6585 * |
| 6586 * Note that multiple imports can declare the same prefix. | 6586 * Note that multiple imports can declare the same prefix. |
| 6587 */ | 6587 */ |
| 6588 void set prefixReference(int _value) { | 6588 void set prefixReference(int value) { |
| 6589 assert(_value == null || _value >= 0); | 6589 assert(value == null || value >= 0); |
| 6590 _prefixReference = _value; | 6590 this._prefixReference = value; |
| 6591 } | 6591 } |
| 6592 | 6592 |
| 6593 @override | 6593 @override |
| 6594 String get uri => _uri ??= ''; | 6594 String get uri => _uri ??= ''; |
| 6595 | 6595 |
| 6596 /** | 6596 /** |
| 6597 * URI used in the source code to reference the imported library. | 6597 * URI used in the source code to reference the imported library. |
| 6598 */ | 6598 */ |
| 6599 void set uri(String _value) { | 6599 void set uri(String value) { |
| 6600 _uri = _value; | 6600 this._uri = value; |
| 6601 } | 6601 } |
| 6602 | 6602 |
| 6603 @override | 6603 @override |
| 6604 int get uriEnd => _uriEnd ??= 0; | 6604 int get uriEnd => _uriEnd ??= 0; |
| 6605 | 6605 |
| 6606 /** | 6606 /** |
| 6607 * End of the URI string (including quotes) relative to the beginning of the | 6607 * End of the URI string (including quotes) relative to the beginning of the |
| 6608 * file. If [isImplicit] is true, zero. | 6608 * file. If [isImplicit] is true, zero. |
| 6609 */ | 6609 */ |
| 6610 void set uriEnd(int _value) { | 6610 void set uriEnd(int value) { |
| 6611 assert(_value == null || _value >= 0); | 6611 assert(value == null || value >= 0); |
| 6612 _uriEnd = _value; | 6612 this._uriEnd = value; |
| 6613 } | 6613 } |
| 6614 | 6614 |
| 6615 @override | 6615 @override |
| 6616 int get uriOffset => _uriOffset ??= 0; | 6616 int get uriOffset => _uriOffset ??= 0; |
| 6617 | 6617 |
| 6618 /** | 6618 /** |
| 6619 * Offset of the URI string (including quotes) relative to the beginning of | 6619 * Offset of the URI string (including quotes) relative to the beginning of |
| 6620 * the file. If [isImplicit] is true, zero. | 6620 * the file. If [isImplicit] is true, zero. |
| 6621 */ | 6621 */ |
| 6622 void set uriOffset(int _value) { | 6622 void set uriOffset(int value) { |
| 6623 assert(_value == null || _value >= 0); | 6623 assert(value == null || value >= 0); |
| 6624 _uriOffset = _value; | 6624 this._uriOffset = value; |
| 6625 } | 6625 } |
| 6626 | 6626 |
| 6627 UnlinkedImportBuilder({List<UnlinkedConstBuilder> annotations, List<UnlinkedCo
mbinatorBuilder> combinators, bool isDeferred, bool isImplicit, int offset, int
prefixOffset, int prefixReference, String uri, int uriEnd, int uriOffset}) | 6627 UnlinkedImportBuilder({List<UnlinkedConstBuilder> annotations, List<UnlinkedCo
mbinatorBuilder> combinators, bool isDeferred, bool isImplicit, int offset, int
prefixOffset, int prefixReference, String uri, int uriEnd, int uriOffset}) |
| 6628 : _annotations = annotations, | 6628 : _annotations = annotations, |
| 6629 _combinators = combinators, | 6629 _combinators = combinators, |
| 6630 _isDeferred = isDeferred, | 6630 _isDeferred = isDeferred, |
| 6631 _isImplicit = isImplicit, | 6631 _isImplicit = isImplicit, |
| 6632 _offset = offset, | 6632 _offset = offset, |
| 6633 _prefixOffset = prefixOffset, | 6633 _prefixOffset = prefixOffset, |
| 6634 _prefixReference = prefixReference, | 6634 _prefixReference = prefixReference, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6848 String _name; | 6848 String _name; |
| 6849 int _nameOffset; | 6849 int _nameOffset; |
| 6850 | 6850 |
| 6851 @override | 6851 @override |
| 6852 bool get isOnSwitchMember => _isOnSwitchMember ??= false; | 6852 bool get isOnSwitchMember => _isOnSwitchMember ??= false; |
| 6853 | 6853 |
| 6854 /** | 6854 /** |
| 6855 * Return `true` if this label is associated with a `switch` member (`case` or | 6855 * Return `true` if this label is associated with a `switch` member (`case` or |
| 6856 * `default`). | 6856 * `default`). |
| 6857 */ | 6857 */ |
| 6858 void set isOnSwitchMember(bool _value) { | 6858 void set isOnSwitchMember(bool value) { |
| 6859 _isOnSwitchMember = _value; | 6859 this._isOnSwitchMember = value; |
| 6860 } | 6860 } |
| 6861 | 6861 |
| 6862 @override | 6862 @override |
| 6863 bool get isOnSwitchStatement => _isOnSwitchStatement ??= false; | 6863 bool get isOnSwitchStatement => _isOnSwitchStatement ??= false; |
| 6864 | 6864 |
| 6865 /** | 6865 /** |
| 6866 * Return `true` if this label is associated with a `switch` statement. | 6866 * Return `true` if this label is associated with a `switch` statement. |
| 6867 */ | 6867 */ |
| 6868 void set isOnSwitchStatement(bool _value) { | 6868 void set isOnSwitchStatement(bool value) { |
| 6869 _isOnSwitchStatement = _value; | 6869 this._isOnSwitchStatement = value; |
| 6870 } | 6870 } |
| 6871 | 6871 |
| 6872 @override | 6872 @override |
| 6873 String get name => _name ??= ''; | 6873 String get name => _name ??= ''; |
| 6874 | 6874 |
| 6875 /** | 6875 /** |
| 6876 * Name of the label. | 6876 * Name of the label. |
| 6877 */ | 6877 */ |
| 6878 void set name(String _value) { | 6878 void set name(String value) { |
| 6879 _name = _value; | 6879 this._name = value; |
| 6880 } | 6880 } |
| 6881 | 6881 |
| 6882 @override | 6882 @override |
| 6883 int get nameOffset => _nameOffset ??= 0; | 6883 int get nameOffset => _nameOffset ??= 0; |
| 6884 | 6884 |
| 6885 /** | 6885 /** |
| 6886 * Offset of the label relative to the beginning of the file. | 6886 * Offset of the label relative to the beginning of the file. |
| 6887 */ | 6887 */ |
| 6888 void set nameOffset(int _value) { | 6888 void set nameOffset(int value) { |
| 6889 assert(_value == null || _value >= 0); | 6889 assert(value == null || value >= 0); |
| 6890 _nameOffset = _value; | 6890 this._nameOffset = value; |
| 6891 } | 6891 } |
| 6892 | 6892 |
| 6893 UnlinkedLabelBuilder({bool isOnSwitchMember, bool isOnSwitchStatement, String
name, int nameOffset}) | 6893 UnlinkedLabelBuilder({bool isOnSwitchMember, bool isOnSwitchStatement, String
name, int nameOffset}) |
| 6894 : _isOnSwitchMember = isOnSwitchMember, | 6894 : _isOnSwitchMember = isOnSwitchMember, |
| 6895 _isOnSwitchStatement = isOnSwitchStatement, | 6895 _isOnSwitchStatement = isOnSwitchStatement, |
| 6896 _name = name, | 6896 _name = name, |
| 6897 _nameOffset = nameOffset; | 6897 _nameOffset = nameOffset; |
| 6898 | 6898 |
| 6899 /** | 6899 /** |
| 6900 * Flush [informative] data recursively. | 6900 * Flush [informative] data recursively. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7015 EntityRefBuilder _type; | 7015 EntityRefBuilder _type; |
| 7016 int _visibleLength; | 7016 int _visibleLength; |
| 7017 int _visibleOffset; | 7017 int _visibleOffset; |
| 7018 | 7018 |
| 7019 @override | 7019 @override |
| 7020 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 7020 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 7021 | 7021 |
| 7022 /** | 7022 /** |
| 7023 * Annotations for this parameter. | 7023 * Annotations for this parameter. |
| 7024 */ | 7024 */ |
| 7025 void set annotations(List<UnlinkedConstBuilder> _value) { | 7025 void set annotations(List<UnlinkedConstBuilder> value) { |
| 7026 _annotations = _value; | 7026 this._annotations = value; |
| 7027 } | 7027 } |
| 7028 | 7028 |
| 7029 @override | 7029 @override |
| 7030 CodeRangeBuilder get codeRange => _codeRange; | 7030 CodeRangeBuilder get codeRange => _codeRange; |
| 7031 | 7031 |
| 7032 /** | 7032 /** |
| 7033 * Code range of the parameter. | 7033 * Code range of the parameter. |
| 7034 */ | 7034 */ |
| 7035 void set codeRange(CodeRangeBuilder _value) { | 7035 void set codeRange(CodeRangeBuilder value) { |
| 7036 _codeRange = _value; | 7036 this._codeRange = value; |
| 7037 } | 7037 } |
| 7038 | 7038 |
| 7039 @override | 7039 @override |
| 7040 String get defaultValueCode => _defaultValueCode ??= ''; | 7040 String get defaultValueCode => _defaultValueCode ??= ''; |
| 7041 | 7041 |
| 7042 /** | 7042 /** |
| 7043 * If the parameter has a default value, the source text of the constant | 7043 * If the parameter has a default value, the source text of the constant |
| 7044 * expression in the default value. Otherwise the empty string. | 7044 * expression in the default value. Otherwise the empty string. |
| 7045 */ | 7045 */ |
| 7046 void set defaultValueCode(String _value) { | 7046 void set defaultValueCode(String value) { |
| 7047 _defaultValueCode = _value; | 7047 this._defaultValueCode = value; |
| 7048 } | 7048 } |
| 7049 | 7049 |
| 7050 @override | 7050 @override |
| 7051 int get inferredTypeSlot => _inferredTypeSlot ??= 0; | 7051 int get inferredTypeSlot => _inferredTypeSlot ??= 0; |
| 7052 | 7052 |
| 7053 /** | 7053 /** |
| 7054 * If this parameter's type is inferable, nonzero slot id identifying which | 7054 * If this parameter's type is inferable, nonzero slot id identifying which |
| 7055 * entry in [LinkedLibrary.types] contains the inferred type. If there is no | 7055 * entry in [LinkedLibrary.types] contains the inferred type. If there is no |
| 7056 * matching entry in [LinkedLibrary.types], then no type was inferred for | 7056 * matching entry in [LinkedLibrary.types], then no type was inferred for |
| 7057 * this variable, so its static type is `dynamic`. | 7057 * this variable, so its static type is `dynamic`. |
| 7058 * | 7058 * |
| 7059 * Note that although strong mode considers initializing formals to be | 7059 * Note that although strong mode considers initializing formals to be |
| 7060 * inferable, they are not marked as such in the summary; if their type is | 7060 * inferable, they are not marked as such in the summary; if their type is |
| 7061 * not specified, they always inherit the static type of the corresponding | 7061 * not specified, they always inherit the static type of the corresponding |
| 7062 * field. | 7062 * field. |
| 7063 */ | 7063 */ |
| 7064 void set inferredTypeSlot(int _value) { | 7064 void set inferredTypeSlot(int value) { |
| 7065 assert(_value == null || _value >= 0); | 7065 assert(value == null || value >= 0); |
| 7066 _inferredTypeSlot = _value; | 7066 this._inferredTypeSlot = value; |
| 7067 } | 7067 } |
| 7068 | 7068 |
| 7069 @override | 7069 @override |
| 7070 UnlinkedExecutableBuilder get initializer => _initializer; | 7070 UnlinkedExecutableBuilder get initializer => _initializer; |
| 7071 | 7071 |
| 7072 /** | 7072 /** |
| 7073 * The synthetic initializer function of the parameter. Absent if the variabl
e | 7073 * The synthetic initializer function of the parameter. Absent if the variabl
e |
| 7074 * does not have an initializer. | 7074 * does not have an initializer. |
| 7075 */ | 7075 */ |
| 7076 void set initializer(UnlinkedExecutableBuilder _value) { | 7076 void set initializer(UnlinkedExecutableBuilder value) { |
| 7077 _initializer = _value; | 7077 this._initializer = value; |
| 7078 } | 7078 } |
| 7079 | 7079 |
| 7080 @override | 7080 @override |
| 7081 bool get isFunctionTyped => _isFunctionTyped ??= false; | 7081 bool get isFunctionTyped => _isFunctionTyped ??= false; |
| 7082 | 7082 |
| 7083 /** | 7083 /** |
| 7084 * Indicates whether this is a function-typed parameter. | 7084 * Indicates whether this is a function-typed parameter. |
| 7085 */ | 7085 */ |
| 7086 void set isFunctionTyped(bool _value) { | 7086 void set isFunctionTyped(bool value) { |
| 7087 _isFunctionTyped = _value; | 7087 this._isFunctionTyped = value; |
| 7088 } | 7088 } |
| 7089 | 7089 |
| 7090 @override | 7090 @override |
| 7091 bool get isInitializingFormal => _isInitializingFormal ??= false; | 7091 bool get isInitializingFormal => _isInitializingFormal ??= false; |
| 7092 | 7092 |
| 7093 /** | 7093 /** |
| 7094 * Indicates whether this is an initializing formal parameter (i.e. it is | 7094 * Indicates whether this is an initializing formal parameter (i.e. it is |
| 7095 * declared using `this.` syntax). | 7095 * declared using `this.` syntax). |
| 7096 */ | 7096 */ |
| 7097 void set isInitializingFormal(bool _value) { | 7097 void set isInitializingFormal(bool value) { |
| 7098 _isInitializingFormal = _value; | 7098 this._isInitializingFormal = value; |
| 7099 } | 7099 } |
| 7100 | 7100 |
| 7101 @override | 7101 @override |
| 7102 idl.UnlinkedParamKind get kind => _kind ??= idl.UnlinkedParamKind.required; | 7102 idl.UnlinkedParamKind get kind => _kind ??= idl.UnlinkedParamKind.required; |
| 7103 | 7103 |
| 7104 /** | 7104 /** |
| 7105 * Kind of the parameter. | 7105 * Kind of the parameter. |
| 7106 */ | 7106 */ |
| 7107 void set kind(idl.UnlinkedParamKind _value) { | 7107 void set kind(idl.UnlinkedParamKind value) { |
| 7108 _kind = _value; | 7108 this._kind = value; |
| 7109 } | 7109 } |
| 7110 | 7110 |
| 7111 @override | 7111 @override |
| 7112 String get name => _name ??= ''; | 7112 String get name => _name ??= ''; |
| 7113 | 7113 |
| 7114 /** | 7114 /** |
| 7115 * Name of the parameter. | 7115 * Name of the parameter. |
| 7116 */ | 7116 */ |
| 7117 void set name(String _value) { | 7117 void set name(String value) { |
| 7118 _name = _value; | 7118 this._name = value; |
| 7119 } | 7119 } |
| 7120 | 7120 |
| 7121 @override | 7121 @override |
| 7122 int get nameOffset => _nameOffset ??= 0; | 7122 int get nameOffset => _nameOffset ??= 0; |
| 7123 | 7123 |
| 7124 /** | 7124 /** |
| 7125 * Offset of the parameter name relative to the beginning of the file. | 7125 * Offset of the parameter name relative to the beginning of the file. |
| 7126 */ | 7126 */ |
| 7127 void set nameOffset(int _value) { | 7127 void set nameOffset(int value) { |
| 7128 assert(_value == null || _value >= 0); | 7128 assert(value == null || value >= 0); |
| 7129 _nameOffset = _value; | 7129 this._nameOffset = value; |
| 7130 } | 7130 } |
| 7131 | 7131 |
| 7132 @override | 7132 @override |
| 7133 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 7133 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 7134 | 7134 |
| 7135 /** | 7135 /** |
| 7136 * If [isFunctionTyped] is `true`, the parameters of the function type. | 7136 * If [isFunctionTyped] is `true`, the parameters of the function type. |
| 7137 */ | 7137 */ |
| 7138 void set parameters(List<UnlinkedParamBuilder> _value) { | 7138 void set parameters(List<UnlinkedParamBuilder> value) { |
| 7139 _parameters = _value; | 7139 this._parameters = value; |
| 7140 } | 7140 } |
| 7141 | 7141 |
| 7142 @override | 7142 @override |
| 7143 EntityRefBuilder get type => _type; | 7143 EntityRefBuilder get type => _type; |
| 7144 | 7144 |
| 7145 /** | 7145 /** |
| 7146 * If [isFunctionTyped] is `true`, the declared return type. If | 7146 * If [isFunctionTyped] is `true`, the declared return type. If |
| 7147 * [isFunctionTyped] is `false`, the declared type. Absent if the type is | 7147 * [isFunctionTyped] is `false`, the declared type. Absent if the type is |
| 7148 * implicit. | 7148 * implicit. |
| 7149 */ | 7149 */ |
| 7150 void set type(EntityRefBuilder _value) { | 7150 void set type(EntityRefBuilder value) { |
| 7151 _type = _value; | 7151 this._type = value; |
| 7152 } | 7152 } |
| 7153 | 7153 |
| 7154 @override | 7154 @override |
| 7155 int get visibleLength => _visibleLength ??= 0; | 7155 int get visibleLength => _visibleLength ??= 0; |
| 7156 | 7156 |
| 7157 /** | 7157 /** |
| 7158 * The length of the visible range. | 7158 * The length of the visible range. |
| 7159 */ | 7159 */ |
| 7160 void set visibleLength(int _value) { | 7160 void set visibleLength(int value) { |
| 7161 assert(_value == null || _value >= 0); | 7161 assert(value == null || value >= 0); |
| 7162 _visibleLength = _value; | 7162 this._visibleLength = value; |
| 7163 } | 7163 } |
| 7164 | 7164 |
| 7165 @override | 7165 @override |
| 7166 int get visibleOffset => _visibleOffset ??= 0; | 7166 int get visibleOffset => _visibleOffset ??= 0; |
| 7167 | 7167 |
| 7168 /** | 7168 /** |
| 7169 * The beginning of the visible range. | 7169 * The beginning of the visible range. |
| 7170 */ | 7170 */ |
| 7171 void set visibleOffset(int _value) { | 7171 void set visibleOffset(int value) { |
| 7172 assert(_value == null || _value >= 0); | 7172 assert(value == null || value >= 0); |
| 7173 _visibleOffset = _value; | 7173 this._visibleOffset = value; |
| 7174 } | 7174 } |
| 7175 | 7175 |
| 7176 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, String defaultValueCode, int inferredTypeSlot, UnlinkedExecutableBui
lder initializer, bool isFunctionTyped, bool isInitializingFormal, idl.UnlinkedP
aramKind kind, String name, int nameOffset, List<UnlinkedParamBuilder> parameter
s, EntityRefBuilder type, int visibleLength, int visibleOffset}) | 7176 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuilder
codeRange, String defaultValueCode, int inferredTypeSlot, UnlinkedExecutableBui
lder initializer, bool isFunctionTyped, bool isInitializingFormal, idl.UnlinkedP
aramKind kind, String name, int nameOffset, List<UnlinkedParamBuilder> parameter
s, EntityRefBuilder type, int visibleLength, int visibleOffset}) |
| 7177 : _annotations = annotations, | 7177 : _annotations = annotations, |
| 7178 _codeRange = codeRange, | 7178 _codeRange = codeRange, |
| 7179 _defaultValueCode = defaultValueCode, | 7179 _defaultValueCode = defaultValueCode, |
| 7180 _inferredTypeSlot = inferredTypeSlot, | 7180 _inferredTypeSlot = inferredTypeSlot, |
| 7181 _initializer = initializer, | 7181 _initializer = initializer, |
| 7182 _isFunctionTyped = isFunctionTyped, | 7182 _isFunctionTyped = isFunctionTyped, |
| 7183 _isInitializingFormal = isInitializingFormal, | 7183 _isInitializingFormal = isInitializingFormal, |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7471 List<UnlinkedConstBuilder> _annotations; | 7471 List<UnlinkedConstBuilder> _annotations; |
| 7472 int _uriEnd; | 7472 int _uriEnd; |
| 7473 int _uriOffset; | 7473 int _uriOffset; |
| 7474 | 7474 |
| 7475 @override | 7475 @override |
| 7476 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 7476 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 7477 | 7477 |
| 7478 /** | 7478 /** |
| 7479 * Annotations for this part declaration. | 7479 * Annotations for this part declaration. |
| 7480 */ | 7480 */ |
| 7481 void set annotations(List<UnlinkedConstBuilder> _value) { | 7481 void set annotations(List<UnlinkedConstBuilder> value) { |
| 7482 _annotations = _value; | 7482 this._annotations = value; |
| 7483 } | 7483 } |
| 7484 | 7484 |
| 7485 @override | 7485 @override |
| 7486 int get uriEnd => _uriEnd ??= 0; | 7486 int get uriEnd => _uriEnd ??= 0; |
| 7487 | 7487 |
| 7488 /** | 7488 /** |
| 7489 * End of the URI string (including quotes) relative to the beginning of the | 7489 * End of the URI string (including quotes) relative to the beginning of the |
| 7490 * file. | 7490 * file. |
| 7491 */ | 7491 */ |
| 7492 void set uriEnd(int _value) { | 7492 void set uriEnd(int value) { |
| 7493 assert(_value == null || _value >= 0); | 7493 assert(value == null || value >= 0); |
| 7494 _uriEnd = _value; | 7494 this._uriEnd = value; |
| 7495 } | 7495 } |
| 7496 | 7496 |
| 7497 @override | 7497 @override |
| 7498 int get uriOffset => _uriOffset ??= 0; | 7498 int get uriOffset => _uriOffset ??= 0; |
| 7499 | 7499 |
| 7500 /** | 7500 /** |
| 7501 * Offset of the URI string (including quotes) relative to the beginning of | 7501 * Offset of the URI string (including quotes) relative to the beginning of |
| 7502 * the file. | 7502 * the file. |
| 7503 */ | 7503 */ |
| 7504 void set uriOffset(int _value) { | 7504 void set uriOffset(int value) { |
| 7505 assert(_value == null || _value >= 0); | 7505 assert(value == null || value >= 0); |
| 7506 _uriOffset = _value; | 7506 this._uriOffset = value; |
| 7507 } | 7507 } |
| 7508 | 7508 |
| 7509 UnlinkedPartBuilder({List<UnlinkedConstBuilder> annotations, int uriEnd, int u
riOffset}) | 7509 UnlinkedPartBuilder({List<UnlinkedConstBuilder> annotations, int uriEnd, int u
riOffset}) |
| 7510 : _annotations = annotations, | 7510 : _annotations = annotations, |
| 7511 _uriEnd = uriEnd, | 7511 _uriEnd = uriEnd, |
| 7512 _uriOffset = uriOffset; | 7512 _uriOffset = uriOffset; |
| 7513 | 7513 |
| 7514 /** | 7514 /** |
| 7515 * Flush [informative] data recursively. | 7515 * Flush [informative] data recursively. |
| 7516 */ | 7516 */ |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7615 List<UnlinkedPublicNameBuilder> _members; | 7615 List<UnlinkedPublicNameBuilder> _members; |
| 7616 String _name; | 7616 String _name; |
| 7617 int _numTypeParameters; | 7617 int _numTypeParameters; |
| 7618 | 7618 |
| 7619 @override | 7619 @override |
| 7620 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; | 7620 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; |
| 7621 | 7621 |
| 7622 /** | 7622 /** |
| 7623 * The kind of object referred to by the name. | 7623 * The kind of object referred to by the name. |
| 7624 */ | 7624 */ |
| 7625 void set kind(idl.ReferenceKind _value) { | 7625 void set kind(idl.ReferenceKind value) { |
| 7626 _kind = _value; | 7626 this._kind = value; |
| 7627 } | 7627 } |
| 7628 | 7628 |
| 7629 @override | 7629 @override |
| 7630 List<UnlinkedPublicNameBuilder> get members => _members ??= <UnlinkedPublicNam
eBuilder>[]; | 7630 List<UnlinkedPublicNameBuilder> get members => _members ??= <UnlinkedPublicNam
eBuilder>[]; |
| 7631 | 7631 |
| 7632 /** | 7632 /** |
| 7633 * If this [UnlinkedPublicName] is a class, the list of members which can be | 7633 * If this [UnlinkedPublicName] is a class, the list of members which can be |
| 7634 * referenced statically - static fields, static methods, and constructors. | 7634 * referenced statically - static fields, static methods, and constructors. |
| 7635 * Otherwise empty. | 7635 * Otherwise empty. |
| 7636 * | 7636 * |
| 7637 * Unnamed constructors are not included since they do not constitute a | 7637 * Unnamed constructors are not included since they do not constitute a |
| 7638 * separate name added to any namespace. | 7638 * separate name added to any namespace. |
| 7639 */ | 7639 */ |
| 7640 void set members(List<UnlinkedPublicNameBuilder> _value) { | 7640 void set members(List<UnlinkedPublicNameBuilder> value) { |
| 7641 _members = _value; | 7641 this._members = value; |
| 7642 } | 7642 } |
| 7643 | 7643 |
| 7644 @override | 7644 @override |
| 7645 String get name => _name ??= ''; | 7645 String get name => _name ??= ''; |
| 7646 | 7646 |
| 7647 /** | 7647 /** |
| 7648 * The name itself. | 7648 * The name itself. |
| 7649 */ | 7649 */ |
| 7650 void set name(String _value) { | 7650 void set name(String value) { |
| 7651 _name = _value; | 7651 this._name = value; |
| 7652 } | 7652 } |
| 7653 | 7653 |
| 7654 @override | 7654 @override |
| 7655 int get numTypeParameters => _numTypeParameters ??= 0; | 7655 int get numTypeParameters => _numTypeParameters ??= 0; |
| 7656 | 7656 |
| 7657 /** | 7657 /** |
| 7658 * If the entity being referred to is generic, the number of type parameters | 7658 * If the entity being referred to is generic, the number of type parameters |
| 7659 * it accepts. Otherwise zero. | 7659 * it accepts. Otherwise zero. |
| 7660 */ | 7660 */ |
| 7661 void set numTypeParameters(int _value) { | 7661 void set numTypeParameters(int value) { |
| 7662 assert(_value == null || _value >= 0); | 7662 assert(value == null || value >= 0); |
| 7663 _numTypeParameters = _value; | 7663 this._numTypeParameters = value; |
| 7664 } | 7664 } |
| 7665 | 7665 |
| 7666 UnlinkedPublicNameBuilder({idl.ReferenceKind kind, List<UnlinkedPublicNameBuil
der> members, String name, int numTypeParameters}) | 7666 UnlinkedPublicNameBuilder({idl.ReferenceKind kind, List<UnlinkedPublicNameBuil
der> members, String name, int numTypeParameters}) |
| 7667 : _kind = kind, | 7667 : _kind = kind, |
| 7668 _members = members, | 7668 _members = members, |
| 7669 _name = name, | 7669 _name = name, |
| 7670 _numTypeParameters = numTypeParameters; | 7670 _numTypeParameters = numTypeParameters; |
| 7671 | 7671 |
| 7672 /** | 7672 /** |
| 7673 * Flush [informative] data recursively. | 7673 * Flush [informative] data recursively. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7789 List<UnlinkedExportPublicBuilder> _exports; | 7789 List<UnlinkedExportPublicBuilder> _exports; |
| 7790 List<UnlinkedPublicNameBuilder> _names; | 7790 List<UnlinkedPublicNameBuilder> _names; |
| 7791 List<String> _parts; | 7791 List<String> _parts; |
| 7792 | 7792 |
| 7793 @override | 7793 @override |
| 7794 List<UnlinkedExportPublicBuilder> get exports => _exports ??= <UnlinkedExportP
ublicBuilder>[]; | 7794 List<UnlinkedExportPublicBuilder> get exports => _exports ??= <UnlinkedExportP
ublicBuilder>[]; |
| 7795 | 7795 |
| 7796 /** | 7796 /** |
| 7797 * Export declarations in the compilation unit. | 7797 * Export declarations in the compilation unit. |
| 7798 */ | 7798 */ |
| 7799 void set exports(List<UnlinkedExportPublicBuilder> _value) { | 7799 void set exports(List<UnlinkedExportPublicBuilder> value) { |
| 7800 _exports = _value; | 7800 this._exports = value; |
| 7801 } | 7801 } |
| 7802 | 7802 |
| 7803 @override | 7803 @override |
| 7804 List<UnlinkedPublicNameBuilder> get names => _names ??= <UnlinkedPublicNameBui
lder>[]; | 7804 List<UnlinkedPublicNameBuilder> get names => _names ??= <UnlinkedPublicNameBui
lder>[]; |
| 7805 | 7805 |
| 7806 /** | 7806 /** |
| 7807 * Public names defined in the compilation unit. | 7807 * Public names defined in the compilation unit. |
| 7808 * | 7808 * |
| 7809 * TODO(paulberry): consider sorting these names to reduce unnecessary | 7809 * TODO(paulberry): consider sorting these names to reduce unnecessary |
| 7810 * relinking. | 7810 * relinking. |
| 7811 */ | 7811 */ |
| 7812 void set names(List<UnlinkedPublicNameBuilder> _value) { | 7812 void set names(List<UnlinkedPublicNameBuilder> value) { |
| 7813 _names = _value; | 7813 this._names = value; |
| 7814 } | 7814 } |
| 7815 | 7815 |
| 7816 @override | 7816 @override |
| 7817 List<String> get parts => _parts ??= <String>[]; | 7817 List<String> get parts => _parts ??= <String>[]; |
| 7818 | 7818 |
| 7819 /** | 7819 /** |
| 7820 * URIs referenced by part declarations in the compilation unit. | 7820 * URIs referenced by part declarations in the compilation unit. |
| 7821 */ | 7821 */ |
| 7822 void set parts(List<String> _value) { | 7822 void set parts(List<String> value) { |
| 7823 _parts = _value; | 7823 this._parts = value; |
| 7824 } | 7824 } |
| 7825 | 7825 |
| 7826 UnlinkedPublicNamespaceBuilder({List<UnlinkedExportPublicBuilder> exports, Lis
t<UnlinkedPublicNameBuilder> names, List<String> parts}) | 7826 UnlinkedPublicNamespaceBuilder({List<UnlinkedExportPublicBuilder> exports, Lis
t<UnlinkedPublicNameBuilder> names, List<String> parts}) |
| 7827 : _exports = exports, | 7827 : _exports = exports, |
| 7828 _names = names, | 7828 _names = names, |
| 7829 _parts = parts; | 7829 _parts = parts; |
| 7830 | 7830 |
| 7831 /** | 7831 /** |
| 7832 * Flush [informative] data recursively. | 7832 * Flush [informative] data recursively. |
| 7833 */ | 7833 */ |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7965 int _prefixReference; | 7965 int _prefixReference; |
| 7966 | 7966 |
| 7967 @override | 7967 @override |
| 7968 String get name => _name ??= ''; | 7968 String get name => _name ??= ''; |
| 7969 | 7969 |
| 7970 /** | 7970 /** |
| 7971 * Name of the entity being referred to. For the pseudo-type `dynamic`, the | 7971 * Name of the entity being referred to. For the pseudo-type `dynamic`, the |
| 7972 * string is "dynamic". For the pseudo-type `void`, the string is "void". | 7972 * string is "dynamic". For the pseudo-type `void`, the string is "void". |
| 7973 * For the pseudo-type `bottom`, the string is "*bottom*". | 7973 * For the pseudo-type `bottom`, the string is "*bottom*". |
| 7974 */ | 7974 */ |
| 7975 void set name(String _value) { | 7975 void set name(String value) { |
| 7976 _name = _value; | 7976 this._name = value; |
| 7977 } | 7977 } |
| 7978 | 7978 |
| 7979 @override | 7979 @override |
| 7980 int get prefixReference => _prefixReference ??= 0; | 7980 int get prefixReference => _prefixReference ??= 0; |
| 7981 | 7981 |
| 7982 /** | 7982 /** |
| 7983 * Prefix used to refer to the entity, or zero if no prefix is used. This is | 7983 * Prefix used to refer to the entity, or zero if no prefix is used. This is |
| 7984 * an index into [UnlinkedUnit.references]. | 7984 * an index into [UnlinkedUnit.references]. |
| 7985 * | 7985 * |
| 7986 * Prefix references must always point backward; that is, for all i, if | 7986 * Prefix references must always point backward; that is, for all i, if |
| 7987 * UnlinkedUnit.references[i].prefixReference != 0, then | 7987 * UnlinkedUnit.references[i].prefixReference != 0, then |
| 7988 * UnlinkedUnit.references[i].prefixReference < i. | 7988 * UnlinkedUnit.references[i].prefixReference < i. |
| 7989 */ | 7989 */ |
| 7990 void set prefixReference(int _value) { | 7990 void set prefixReference(int value) { |
| 7991 assert(_value == null || _value >= 0); | 7991 assert(value == null || value >= 0); |
| 7992 _prefixReference = _value; | 7992 this._prefixReference = value; |
| 7993 } | 7993 } |
| 7994 | 7994 |
| 7995 UnlinkedReferenceBuilder({String name, int prefixReference}) | 7995 UnlinkedReferenceBuilder({String name, int prefixReference}) |
| 7996 : _name = name, | 7996 : _name = name, |
| 7997 _prefixReference = prefixReference; | 7997 _prefixReference = prefixReference; |
| 7998 | 7998 |
| 7999 /** | 7999 /** |
| 8000 * Flush [informative] data recursively. | 8000 * Flush [informative] data recursively. |
| 8001 */ | 8001 */ |
| 8002 void flushInformative() { | 8002 void flushInformative() { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8083 List<UnlinkedParamBuilder> _parameters; | 8083 List<UnlinkedParamBuilder> _parameters; |
| 8084 EntityRefBuilder _returnType; | 8084 EntityRefBuilder _returnType; |
| 8085 List<UnlinkedTypeParamBuilder> _typeParameters; | 8085 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 8086 | 8086 |
| 8087 @override | 8087 @override |
| 8088 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 8088 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 8089 | 8089 |
| 8090 /** | 8090 /** |
| 8091 * Annotations for this typedef. | 8091 * Annotations for this typedef. |
| 8092 */ | 8092 */ |
| 8093 void set annotations(List<UnlinkedConstBuilder> _value) { | 8093 void set annotations(List<UnlinkedConstBuilder> value) { |
| 8094 _annotations = _value; | 8094 this._annotations = value; |
| 8095 } | 8095 } |
| 8096 | 8096 |
| 8097 @override | 8097 @override |
| 8098 CodeRangeBuilder get codeRange => _codeRange; | 8098 CodeRangeBuilder get codeRange => _codeRange; |
| 8099 | 8099 |
| 8100 /** | 8100 /** |
| 8101 * Code range of the typedef. | 8101 * Code range of the typedef. |
| 8102 */ | 8102 */ |
| 8103 void set codeRange(CodeRangeBuilder _value) { | 8103 void set codeRange(CodeRangeBuilder value) { |
| 8104 _codeRange = _value; | 8104 this._codeRange = value; |
| 8105 } | 8105 } |
| 8106 | 8106 |
| 8107 @override | 8107 @override |
| 8108 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 8108 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 8109 | 8109 |
| 8110 /** | 8110 /** |
| 8111 * Documentation comment for the typedef, or `null` if there is no | 8111 * Documentation comment for the typedef, or `null` if there is no |
| 8112 * documentation comment. | 8112 * documentation comment. |
| 8113 */ | 8113 */ |
| 8114 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 8114 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 8115 _documentationComment = _value; | 8115 this._documentationComment = value; |
| 8116 } | 8116 } |
| 8117 | 8117 |
| 8118 @override | 8118 @override |
| 8119 String get name => _name ??= ''; | 8119 String get name => _name ??= ''; |
| 8120 | 8120 |
| 8121 /** | 8121 /** |
| 8122 * Name of the typedef. | 8122 * Name of the typedef. |
| 8123 */ | 8123 */ |
| 8124 void set name(String _value) { | 8124 void set name(String value) { |
| 8125 _name = _value; | 8125 this._name = value; |
| 8126 } | 8126 } |
| 8127 | 8127 |
| 8128 @override | 8128 @override |
| 8129 int get nameOffset => _nameOffset ??= 0; | 8129 int get nameOffset => _nameOffset ??= 0; |
| 8130 | 8130 |
| 8131 /** | 8131 /** |
| 8132 * Offset of the typedef name relative to the beginning of the file. | 8132 * Offset of the typedef name relative to the beginning of the file. |
| 8133 */ | 8133 */ |
| 8134 void set nameOffset(int _value) { | 8134 void set nameOffset(int value) { |
| 8135 assert(_value == null || _value >= 0); | 8135 assert(value == null || value >= 0); |
| 8136 _nameOffset = _value; | 8136 this._nameOffset = value; |
| 8137 } | 8137 } |
| 8138 | 8138 |
| 8139 @override | 8139 @override |
| 8140 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 8140 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 8141 | 8141 |
| 8142 /** | 8142 /** |
| 8143 * Parameters of the executable, if any. | 8143 * Parameters of the executable, if any. |
| 8144 */ | 8144 */ |
| 8145 void set parameters(List<UnlinkedParamBuilder> _value) { | 8145 void set parameters(List<UnlinkedParamBuilder> value) { |
| 8146 _parameters = _value; | 8146 this._parameters = value; |
| 8147 } | 8147 } |
| 8148 | 8148 |
| 8149 @override | 8149 @override |
| 8150 EntityRefBuilder get returnType => _returnType; | 8150 EntityRefBuilder get returnType => _returnType; |
| 8151 | 8151 |
| 8152 /** | 8152 /** |
| 8153 * Return type of the typedef. | 8153 * Return type of the typedef. |
| 8154 */ | 8154 */ |
| 8155 void set returnType(EntityRefBuilder _value) { | 8155 void set returnType(EntityRefBuilder value) { |
| 8156 _returnType = _value; | 8156 this._returnType = value; |
| 8157 } | 8157 } |
| 8158 | 8158 |
| 8159 @override | 8159 @override |
| 8160 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 8160 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 8161 | 8161 |
| 8162 /** | 8162 /** |
| 8163 * Type parameters of the typedef, if any. | 8163 * Type parameters of the typedef, if any. |
| 8164 */ | 8164 */ |
| 8165 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 8165 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
| 8166 _typeParameters = _value; | 8166 this._typeParameters = value; |
| 8167 } | 8167 } |
| 8168 | 8168 |
| 8169 UnlinkedTypedefBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String n
ame, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder ret
urnType, List<UnlinkedTypeParamBuilder> typeParameters}) | 8169 UnlinkedTypedefBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuild
er codeRange, UnlinkedDocumentationCommentBuilder documentationComment, String n
ame, int nameOffset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder ret
urnType, List<UnlinkedTypeParamBuilder> typeParameters}) |
| 8170 : _annotations = annotations, | 8170 : _annotations = annotations, |
| 8171 _codeRange = codeRange, | 8171 _codeRange = codeRange, |
| 8172 _documentationComment = documentationComment, | 8172 _documentationComment = documentationComment, |
| 8173 _name = name, | 8173 _name = name, |
| 8174 _nameOffset = nameOffset, | 8174 _nameOffset = nameOffset, |
| 8175 _parameters = parameters, | 8175 _parameters = parameters, |
| 8176 _returnType = returnType, | 8176 _returnType = returnType, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8388 CodeRangeBuilder _codeRange; | 8388 CodeRangeBuilder _codeRange; |
| 8389 String _name; | 8389 String _name; |
| 8390 int _nameOffset; | 8390 int _nameOffset; |
| 8391 | 8391 |
| 8392 @override | 8392 @override |
| 8393 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 8393 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 8394 | 8394 |
| 8395 /** | 8395 /** |
| 8396 * Annotations for this type parameter. | 8396 * Annotations for this type parameter. |
| 8397 */ | 8397 */ |
| 8398 void set annotations(List<UnlinkedConstBuilder> _value) { | 8398 void set annotations(List<UnlinkedConstBuilder> value) { |
| 8399 _annotations = _value; | 8399 this._annotations = value; |
| 8400 } | 8400 } |
| 8401 | 8401 |
| 8402 @override | 8402 @override |
| 8403 EntityRefBuilder get bound => _bound; | 8403 EntityRefBuilder get bound => _bound; |
| 8404 | 8404 |
| 8405 /** | 8405 /** |
| 8406 * Bound of the type parameter, if a bound is explicitly declared. Otherwise | 8406 * Bound of the type parameter, if a bound is explicitly declared. Otherwise |
| 8407 * null. | 8407 * null. |
| 8408 */ | 8408 */ |
| 8409 void set bound(EntityRefBuilder _value) { | 8409 void set bound(EntityRefBuilder value) { |
| 8410 _bound = _value; | 8410 this._bound = value; |
| 8411 } | 8411 } |
| 8412 | 8412 |
| 8413 @override | 8413 @override |
| 8414 CodeRangeBuilder get codeRange => _codeRange; | 8414 CodeRangeBuilder get codeRange => _codeRange; |
| 8415 | 8415 |
| 8416 /** | 8416 /** |
| 8417 * Code range of the type parameter. | 8417 * Code range of the type parameter. |
| 8418 */ | 8418 */ |
| 8419 void set codeRange(CodeRangeBuilder _value) { | 8419 void set codeRange(CodeRangeBuilder value) { |
| 8420 _codeRange = _value; | 8420 this._codeRange = value; |
| 8421 } | 8421 } |
| 8422 | 8422 |
| 8423 @override | 8423 @override |
| 8424 String get name => _name ??= ''; | 8424 String get name => _name ??= ''; |
| 8425 | 8425 |
| 8426 /** | 8426 /** |
| 8427 * Name of the type parameter. | 8427 * Name of the type parameter. |
| 8428 */ | 8428 */ |
| 8429 void set name(String _value) { | 8429 void set name(String value) { |
| 8430 _name = _value; | 8430 this._name = value; |
| 8431 } | 8431 } |
| 8432 | 8432 |
| 8433 @override | 8433 @override |
| 8434 int get nameOffset => _nameOffset ??= 0; | 8434 int get nameOffset => _nameOffset ??= 0; |
| 8435 | 8435 |
| 8436 /** | 8436 /** |
| 8437 * Offset of the type parameter name relative to the beginning of the file. | 8437 * Offset of the type parameter name relative to the beginning of the file. |
| 8438 */ | 8438 */ |
| 8439 void set nameOffset(int _value) { | 8439 void set nameOffset(int value) { |
| 8440 assert(_value == null || _value >= 0); | 8440 assert(value == null || value >= 0); |
| 8441 _nameOffset = _value; | 8441 this._nameOffset = value; |
| 8442 } | 8442 } |
| 8443 | 8443 |
| 8444 UnlinkedTypeParamBuilder({List<UnlinkedConstBuilder> annotations, EntityRefBui
lder bound, CodeRangeBuilder codeRange, String name, int nameOffset}) | 8444 UnlinkedTypeParamBuilder({List<UnlinkedConstBuilder> annotations, EntityRefBui
lder bound, CodeRangeBuilder codeRange, String name, int nameOffset}) |
| 8445 : _annotations = annotations, | 8445 : _annotations = annotations, |
| 8446 _bound = bound, | 8446 _bound = bound, |
| 8447 _codeRange = codeRange, | 8447 _codeRange = codeRange, |
| 8448 _name = name, | 8448 _name = name, |
| 8449 _nameOffset = nameOffset; | 8449 _nameOffset = nameOffset; |
| 8450 | 8450 |
| 8451 /** | 8451 /** |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8606 List<UnlinkedReferenceBuilder> _references; | 8606 List<UnlinkedReferenceBuilder> _references; |
| 8607 List<UnlinkedTypedefBuilder> _typedefs; | 8607 List<UnlinkedTypedefBuilder> _typedefs; |
| 8608 List<UnlinkedVariableBuilder> _variables; | 8608 List<UnlinkedVariableBuilder> _variables; |
| 8609 | 8609 |
| 8610 @override | 8610 @override |
| 8611 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[
]; | 8611 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[
]; |
| 8612 | 8612 |
| 8613 /** | 8613 /** |
| 8614 * Classes declared in the compilation unit. | 8614 * Classes declared in the compilation unit. |
| 8615 */ | 8615 */ |
| 8616 void set classes(List<UnlinkedClassBuilder> _value) { | 8616 void set classes(List<UnlinkedClassBuilder> value) { |
| 8617 _classes = _value; | 8617 this._classes = value; |
| 8618 } | 8618 } |
| 8619 | 8619 |
| 8620 @override | 8620 @override |
| 8621 CodeRangeBuilder get codeRange => _codeRange; | 8621 CodeRangeBuilder get codeRange => _codeRange; |
| 8622 | 8622 |
| 8623 /** | 8623 /** |
| 8624 * Code range of the unit. | 8624 * Code range of the unit. |
| 8625 */ | 8625 */ |
| 8626 void set codeRange(CodeRangeBuilder _value) { | 8626 void set codeRange(CodeRangeBuilder value) { |
| 8627 _codeRange = _value; | 8627 this._codeRange = value; |
| 8628 } | 8628 } |
| 8629 | 8629 |
| 8630 @override | 8630 @override |
| 8631 List<UnlinkedEnumBuilder> get enums => _enums ??= <UnlinkedEnumBuilder>[]; | 8631 List<UnlinkedEnumBuilder> get enums => _enums ??= <UnlinkedEnumBuilder>[]; |
| 8632 | 8632 |
| 8633 /** | 8633 /** |
| 8634 * Enums declared in the compilation unit. | 8634 * Enums declared in the compilation unit. |
| 8635 */ | 8635 */ |
| 8636 void set enums(List<UnlinkedEnumBuilder> _value) { | 8636 void set enums(List<UnlinkedEnumBuilder> value) { |
| 8637 _enums = _value; | 8637 this._enums = value; |
| 8638 } | 8638 } |
| 8639 | 8639 |
| 8640 @override | 8640 @override |
| 8641 List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedE
xecutableBuilder>[]; | 8641 List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedE
xecutableBuilder>[]; |
| 8642 | 8642 |
| 8643 /** | 8643 /** |
| 8644 * Top level executable objects (functions, getters, and setters) declared in | 8644 * Top level executable objects (functions, getters, and setters) declared in |
| 8645 * the compilation unit. | 8645 * the compilation unit. |
| 8646 */ | 8646 */ |
| 8647 void set executables(List<UnlinkedExecutableBuilder> _value) { | 8647 void set executables(List<UnlinkedExecutableBuilder> value) { |
| 8648 _executables = _value; | 8648 this._executables = value; |
| 8649 } | 8649 } |
| 8650 | 8650 |
| 8651 @override | 8651 @override |
| 8652 List<UnlinkedExportNonPublicBuilder> get exports => _exports ??= <UnlinkedExpo
rtNonPublicBuilder>[]; | 8652 List<UnlinkedExportNonPublicBuilder> get exports => _exports ??= <UnlinkedExpo
rtNonPublicBuilder>[]; |
| 8653 | 8653 |
| 8654 /** | 8654 /** |
| 8655 * Export declarations in the compilation unit. | 8655 * Export declarations in the compilation unit. |
| 8656 */ | 8656 */ |
| 8657 void set exports(List<UnlinkedExportNonPublicBuilder> _value) { | 8657 void set exports(List<UnlinkedExportNonPublicBuilder> value) { |
| 8658 _exports = _value; | 8658 this._exports = value; |
| 8659 } | 8659 } |
| 8660 | 8660 |
| 8661 @override | 8661 @override |
| 8662 String get fallbackModePath => _fallbackModePath ??= ''; | 8662 String get fallbackModePath => _fallbackModePath ??= ''; |
| 8663 | 8663 |
| 8664 /** | 8664 /** |
| 8665 * If this compilation unit was summarized in fallback mode, the path where | 8665 * If this compilation unit was summarized in fallback mode, the path where |
| 8666 * the compilation unit may be found on disk. Otherwise empty. | 8666 * the compilation unit may be found on disk. Otherwise empty. |
| 8667 * | 8667 * |
| 8668 * When this field is non-empty, all other fields in the data structure have | 8668 * When this field is non-empty, all other fields in the data structure have |
| 8669 * their default values. | 8669 * their default values. |
| 8670 */ | 8670 */ |
| 8671 void set fallbackModePath(String _value) { | 8671 void set fallbackModePath(String value) { |
| 8672 _fallbackModePath = _value; | 8672 this._fallbackModePath = value; |
| 8673 } | 8673 } |
| 8674 | 8674 |
| 8675 @override | 8675 @override |
| 8676 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder
>[]; | 8676 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder
>[]; |
| 8677 | 8677 |
| 8678 /** | 8678 /** |
| 8679 * Import declarations in the compilation unit. | 8679 * Import declarations in the compilation unit. |
| 8680 */ | 8680 */ |
| 8681 void set imports(List<UnlinkedImportBuilder> _value) { | 8681 void set imports(List<UnlinkedImportBuilder> value) { |
| 8682 _imports = _value; | 8682 this._imports = value; |
| 8683 } | 8683 } |
| 8684 | 8684 |
| 8685 @override | 8685 @override |
| 8686 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= <
UnlinkedConstBuilder>[]; | 8686 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= <
UnlinkedConstBuilder>[]; |
| 8687 | 8687 |
| 8688 /** | 8688 /** |
| 8689 * Annotations for the library declaration, or the empty list if there is no | 8689 * Annotations for the library declaration, or the empty list if there is no |
| 8690 * library declaration. | 8690 * library declaration. |
| 8691 */ | 8691 */ |
| 8692 void set libraryAnnotations(List<UnlinkedConstBuilder> _value) { | 8692 void set libraryAnnotations(List<UnlinkedConstBuilder> value) { |
| 8693 _libraryAnnotations = _value; | 8693 this._libraryAnnotations = value; |
| 8694 } | 8694 } |
| 8695 | 8695 |
| 8696 @override | 8696 @override |
| 8697 UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _librar
yDocumentationComment; | 8697 UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _librar
yDocumentationComment; |
| 8698 | 8698 |
| 8699 /** | 8699 /** |
| 8700 * Documentation comment for the library, or `null` if there is no | 8700 * Documentation comment for the library, or `null` if there is no |
| 8701 * documentation comment. | 8701 * documentation comment. |
| 8702 */ | 8702 */ |
| 8703 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder _valu
e) { | 8703 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder value
) { |
| 8704 _libraryDocumentationComment = _value; | 8704 this._libraryDocumentationComment = value; |
| 8705 } | 8705 } |
| 8706 | 8706 |
| 8707 @override | 8707 @override |
| 8708 String get libraryName => _libraryName ??= ''; | 8708 String get libraryName => _libraryName ??= ''; |
| 8709 | 8709 |
| 8710 /** | 8710 /** |
| 8711 * Name of the library (from a "library" declaration, if present). | 8711 * Name of the library (from a "library" declaration, if present). |
| 8712 */ | 8712 */ |
| 8713 void set libraryName(String _value) { | 8713 void set libraryName(String value) { |
| 8714 _libraryName = _value; | 8714 this._libraryName = value; |
| 8715 } | 8715 } |
| 8716 | 8716 |
| 8717 @override | 8717 @override |
| 8718 int get libraryNameLength => _libraryNameLength ??= 0; | 8718 int get libraryNameLength => _libraryNameLength ??= 0; |
| 8719 | 8719 |
| 8720 /** | 8720 /** |
| 8721 * Length of the library name as it appears in the source code (or 0 if the | 8721 * Length of the library name as it appears in the source code (or 0 if the |
| 8722 * library has no name). | 8722 * library has no name). |
| 8723 */ | 8723 */ |
| 8724 void set libraryNameLength(int _value) { | 8724 void set libraryNameLength(int value) { |
| 8725 assert(_value == null || _value >= 0); | 8725 assert(value == null || value >= 0); |
| 8726 _libraryNameLength = _value; | 8726 this._libraryNameLength = value; |
| 8727 } | 8727 } |
| 8728 | 8728 |
| 8729 @override | 8729 @override |
| 8730 int get libraryNameOffset => _libraryNameOffset ??= 0; | 8730 int get libraryNameOffset => _libraryNameOffset ??= 0; |
| 8731 | 8731 |
| 8732 /** | 8732 /** |
| 8733 * Offset of the library name relative to the beginning of the file (or 0 if | 8733 * Offset of the library name relative to the beginning of the file (or 0 if |
| 8734 * the library has no name). | 8734 * the library has no name). |
| 8735 */ | 8735 */ |
| 8736 void set libraryNameOffset(int _value) { | 8736 void set libraryNameOffset(int value) { |
| 8737 assert(_value == null || _value >= 0); | 8737 assert(value == null || value >= 0); |
| 8738 _libraryNameOffset = _value; | 8738 this._libraryNameOffset = value; |
| 8739 } | 8739 } |
| 8740 | 8740 |
| 8741 @override | 8741 @override |
| 8742 List<int> get lineStarts => _lineStarts ??= <int>[]; | 8742 List<int> get lineStarts => _lineStarts ??= <int>[]; |
| 8743 | 8743 |
| 8744 /** | 8744 /** |
| 8745 * Offsets of the first character of each line in the source code. | 8745 * Offsets of the first character of each line in the source code. |
| 8746 */ | 8746 */ |
| 8747 void set lineStarts(List<int> _value) { | 8747 void set lineStarts(List<int> value) { |
| 8748 assert(_value == null || _value.every((e) => e >= 0)); | 8748 assert(value == null || value.every((e) => e >= 0)); |
| 8749 _lineStarts = _value; | 8749 this._lineStarts = value; |
| 8750 } | 8750 } |
| 8751 | 8751 |
| 8752 @override | 8752 @override |
| 8753 List<UnlinkedPartBuilder> get parts => _parts ??= <UnlinkedPartBuilder>[]; | 8753 List<UnlinkedPartBuilder> get parts => _parts ??= <UnlinkedPartBuilder>[]; |
| 8754 | 8754 |
| 8755 /** | 8755 /** |
| 8756 * Part declarations in the compilation unit. | 8756 * Part declarations in the compilation unit. |
| 8757 */ | 8757 */ |
| 8758 void set parts(List<UnlinkedPartBuilder> _value) { | 8758 void set parts(List<UnlinkedPartBuilder> value) { |
| 8759 _parts = _value; | 8759 this._parts = value; |
| 8760 } | 8760 } |
| 8761 | 8761 |
| 8762 @override | 8762 @override |
| 8763 UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace; | 8763 UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace; |
| 8764 | 8764 |
| 8765 /** | 8765 /** |
| 8766 * Unlinked public namespace of this compilation unit. | 8766 * Unlinked public namespace of this compilation unit. |
| 8767 */ | 8767 */ |
| 8768 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { | 8768 void set publicNamespace(UnlinkedPublicNamespaceBuilder value) { |
| 8769 _publicNamespace = _value; | 8769 this._publicNamespace = value; |
| 8770 } | 8770 } |
| 8771 | 8771 |
| 8772 @override | 8772 @override |
| 8773 List<UnlinkedReferenceBuilder> get references => _references ??= <UnlinkedRefe
renceBuilder>[]; | 8773 List<UnlinkedReferenceBuilder> get references => _references ??= <UnlinkedRefe
renceBuilder>[]; |
| 8774 | 8774 |
| 8775 /** | 8775 /** |
| 8776 * Top level and prefixed names referred to by this compilation unit. The | 8776 * Top level and prefixed names referred to by this compilation unit. The |
| 8777 * zeroth element of this array is always populated and is used to represent | 8777 * zeroth element of this array is always populated and is used to represent |
| 8778 * the absence of a reference in places where a reference is optional (for | 8778 * the absence of a reference in places where a reference is optional (for |
| 8779 * example [UnlinkedReference.prefixReference or | 8779 * example [UnlinkedReference.prefixReference or |
| 8780 * UnlinkedImport.prefixReference]). | 8780 * UnlinkedImport.prefixReference]). |
| 8781 */ | 8781 */ |
| 8782 void set references(List<UnlinkedReferenceBuilder> _value) { | 8782 void set references(List<UnlinkedReferenceBuilder> value) { |
| 8783 _references = _value; | 8783 this._references = value; |
| 8784 } | 8784 } |
| 8785 | 8785 |
| 8786 @override | 8786 @override |
| 8787 List<UnlinkedTypedefBuilder> get typedefs => _typedefs ??= <UnlinkedTypedefBui
lder>[]; | 8787 List<UnlinkedTypedefBuilder> get typedefs => _typedefs ??= <UnlinkedTypedefBui
lder>[]; |
| 8788 | 8788 |
| 8789 /** | 8789 /** |
| 8790 * Typedefs declared in the compilation unit. | 8790 * Typedefs declared in the compilation unit. |
| 8791 */ | 8791 */ |
| 8792 void set typedefs(List<UnlinkedTypedefBuilder> _value) { | 8792 void set typedefs(List<UnlinkedTypedefBuilder> value) { |
| 8793 _typedefs = _value; | 8793 this._typedefs = value; |
| 8794 } | 8794 } |
| 8795 | 8795 |
| 8796 @override | 8796 @override |
| 8797 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; | 8797 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; |
| 8798 | 8798 |
| 8799 /** | 8799 /** |
| 8800 * Top level variables declared in the compilation unit. | 8800 * Top level variables declared in the compilation unit. |
| 8801 */ | 8801 */ |
| 8802 void set variables(List<UnlinkedVariableBuilder> _value) { | 8802 void set variables(List<UnlinkedVariableBuilder> value) { |
| 8803 _variables = _value; | 8803 this._variables = value; |
| 8804 } | 8804 } |
| 8805 | 8805 |
| 8806 UnlinkedUnitBuilder({List<UnlinkedClassBuilder> classes, CodeRangeBuilder code
Range, List<UnlinkedEnumBuilder> enums, List<UnlinkedExecutableBuilder> executab
les, List<UnlinkedExportNonPublicBuilder> exports, String fallbackModePath, List
<UnlinkedImportBuilder> imports, List<UnlinkedConstBuilder> libraryAnnotations,
UnlinkedDocumentationCommentBuilder libraryDocumentationComment, String libraryN
ame, int libraryNameLength, int libraryNameOffset, List<int> lineStarts, List<Un
linkedPartBuilder> parts, UnlinkedPublicNamespaceBuilder publicNamespace, List<U
nlinkedReferenceBuilder> references, List<UnlinkedTypedefBuilder> typedefs, List
<UnlinkedVariableBuilder> variables}) | 8806 UnlinkedUnitBuilder({List<UnlinkedClassBuilder> classes, CodeRangeBuilder code
Range, List<UnlinkedEnumBuilder> enums, List<UnlinkedExecutableBuilder> executab
les, List<UnlinkedExportNonPublicBuilder> exports, String fallbackModePath, List
<UnlinkedImportBuilder> imports, List<UnlinkedConstBuilder> libraryAnnotations,
UnlinkedDocumentationCommentBuilder libraryDocumentationComment, String libraryN
ame, int libraryNameLength, int libraryNameOffset, List<int> lineStarts, List<Un
linkedPartBuilder> parts, UnlinkedPublicNamespaceBuilder publicNamespace, List<U
nlinkedReferenceBuilder> references, List<UnlinkedTypedefBuilder> typedefs, List
<UnlinkedVariableBuilder> variables}) |
| 8807 : _classes = classes, | 8807 : _classes = classes, |
| 8808 _codeRange = codeRange, | 8808 _codeRange = codeRange, |
| 8809 _enums = enums, | 8809 _enums = enums, |
| 8810 _executables = executables, | 8810 _executables = executables, |
| 8811 _exports = exports, | 8811 _exports = exports, |
| 8812 _fallbackModePath = fallbackModePath, | 8812 _fallbackModePath = fallbackModePath, |
| 8813 _imports = imports, | 8813 _imports = imports, |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9276 EntityRefBuilder _type; | 9276 EntityRefBuilder _type; |
| 9277 int _visibleLength; | 9277 int _visibleLength; |
| 9278 int _visibleOffset; | 9278 int _visibleOffset; |
| 9279 | 9279 |
| 9280 @override | 9280 @override |
| 9281 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 9281 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 9282 | 9282 |
| 9283 /** | 9283 /** |
| 9284 * Annotations for this variable. | 9284 * Annotations for this variable. |
| 9285 */ | 9285 */ |
| 9286 void set annotations(List<UnlinkedConstBuilder> _value) { | 9286 void set annotations(List<UnlinkedConstBuilder> value) { |
| 9287 _annotations = _value; | 9287 this._annotations = value; |
| 9288 } | 9288 } |
| 9289 | 9289 |
| 9290 @override | 9290 @override |
| 9291 CodeRangeBuilder get codeRange => _codeRange; | 9291 CodeRangeBuilder get codeRange => _codeRange; |
| 9292 | 9292 |
| 9293 /** | 9293 /** |
| 9294 * Code range of the variable. | 9294 * Code range of the variable. |
| 9295 */ | 9295 */ |
| 9296 void set codeRange(CodeRangeBuilder _value) { | 9296 void set codeRange(CodeRangeBuilder value) { |
| 9297 _codeRange = _value; | 9297 this._codeRange = value; |
| 9298 } | 9298 } |
| 9299 | 9299 |
| 9300 @override | 9300 @override |
| 9301 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; | 9301 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation
Comment; |
| 9302 | 9302 |
| 9303 /** | 9303 /** |
| 9304 * Documentation comment for the variable, or `null` if there is no | 9304 * Documentation comment for the variable, or `null` if there is no |
| 9305 * documentation comment. | 9305 * documentation comment. |
| 9306 */ | 9306 */ |
| 9307 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 9307 void set documentationComment(UnlinkedDocumentationCommentBuilder value) { |
| 9308 _documentationComment = _value; | 9308 this._documentationComment = value; |
| 9309 } | 9309 } |
| 9310 | 9310 |
| 9311 @override | 9311 @override |
| 9312 int get inferredTypeSlot => _inferredTypeSlot ??= 0; | 9312 int get inferredTypeSlot => _inferredTypeSlot ??= 0; |
| 9313 | 9313 |
| 9314 /** | 9314 /** |
| 9315 * If this variable is inferable, nonzero slot id identifying which entry in | 9315 * If this variable is inferable, nonzero slot id identifying which entry in |
| 9316 * [LinkedLibrary.types] contains the inferred type for this variable. If | 9316 * [LinkedLibrary.types] contains the inferred type for this variable. If |
| 9317 * there is no matching entry in [LinkedLibrary.types], then no type was | 9317 * there is no matching entry in [LinkedLibrary.types], then no type was |
| 9318 * inferred for this variable, so its static type is `dynamic`. | 9318 * inferred for this variable, so its static type is `dynamic`. |
| 9319 */ | 9319 */ |
| 9320 void set inferredTypeSlot(int _value) { | 9320 void set inferredTypeSlot(int value) { |
| 9321 assert(_value == null || _value >= 0); | 9321 assert(value == null || value >= 0); |
| 9322 _inferredTypeSlot = _value; | 9322 this._inferredTypeSlot = value; |
| 9323 } | 9323 } |
| 9324 | 9324 |
| 9325 @override | 9325 @override |
| 9326 UnlinkedExecutableBuilder get initializer => _initializer; | 9326 UnlinkedExecutableBuilder get initializer => _initializer; |
| 9327 | 9327 |
| 9328 /** | 9328 /** |
| 9329 * The synthetic initializer function of the variable. Absent if the variable | 9329 * The synthetic initializer function of the variable. Absent if the variable |
| 9330 * does not have an initializer. | 9330 * does not have an initializer. |
| 9331 */ | 9331 */ |
| 9332 void set initializer(UnlinkedExecutableBuilder _value) { | 9332 void set initializer(UnlinkedExecutableBuilder value) { |
| 9333 _initializer = _value; | 9333 this._initializer = value; |
| 9334 } | 9334 } |
| 9335 | 9335 |
| 9336 @override | 9336 @override |
| 9337 bool get isConst => _isConst ??= false; | 9337 bool get isConst => _isConst ??= false; |
| 9338 | 9338 |
| 9339 /** | 9339 /** |
| 9340 * Indicates whether the variable is declared using the `const` keyword. | 9340 * Indicates whether the variable is declared using the `const` keyword. |
| 9341 */ | 9341 */ |
| 9342 void set isConst(bool _value) { | 9342 void set isConst(bool value) { |
| 9343 _isConst = _value; | 9343 this._isConst = value; |
| 9344 } | 9344 } |
| 9345 | 9345 |
| 9346 @override | 9346 @override |
| 9347 bool get isFinal => _isFinal ??= false; | 9347 bool get isFinal => _isFinal ??= false; |
| 9348 | 9348 |
| 9349 /** | 9349 /** |
| 9350 * Indicates whether the variable is declared using the `final` keyword. | 9350 * Indicates whether the variable is declared using the `final` keyword. |
| 9351 */ | 9351 */ |
| 9352 void set isFinal(bool _value) { | 9352 void set isFinal(bool value) { |
| 9353 _isFinal = _value; | 9353 this._isFinal = value; |
| 9354 } | 9354 } |
| 9355 | 9355 |
| 9356 @override | 9356 @override |
| 9357 bool get isStatic => _isStatic ??= false; | 9357 bool get isStatic => _isStatic ??= false; |
| 9358 | 9358 |
| 9359 /** | 9359 /** |
| 9360 * Indicates whether the variable is declared using the `static` keyword. | 9360 * Indicates whether the variable is declared using the `static` keyword. |
| 9361 * | 9361 * |
| 9362 * Note that for top level variables, this flag is false, since they are not | 9362 * Note that for top level variables, this flag is false, since they are not |
| 9363 * declared using the `static` keyword (even though they are considered | 9363 * declared using the `static` keyword (even though they are considered |
| 9364 * static for semantic purposes). | 9364 * static for semantic purposes). |
| 9365 */ | 9365 */ |
| 9366 void set isStatic(bool _value) { | 9366 void set isStatic(bool value) { |
| 9367 _isStatic = _value; | 9367 this._isStatic = value; |
| 9368 } | 9368 } |
| 9369 | 9369 |
| 9370 @override | 9370 @override |
| 9371 String get name => _name ??= ''; | 9371 String get name => _name ??= ''; |
| 9372 | 9372 |
| 9373 /** | 9373 /** |
| 9374 * Name of the variable. | 9374 * Name of the variable. |
| 9375 */ | 9375 */ |
| 9376 void set name(String _value) { | 9376 void set name(String value) { |
| 9377 _name = _value; | 9377 this._name = value; |
| 9378 } | 9378 } |
| 9379 | 9379 |
| 9380 @override | 9380 @override |
| 9381 int get nameOffset => _nameOffset ??= 0; | 9381 int get nameOffset => _nameOffset ??= 0; |
| 9382 | 9382 |
| 9383 /** | 9383 /** |
| 9384 * Offset of the variable name relative to the beginning of the file. | 9384 * Offset of the variable name relative to the beginning of the file. |
| 9385 */ | 9385 */ |
| 9386 void set nameOffset(int _value) { | 9386 void set nameOffset(int value) { |
| 9387 assert(_value == null || _value >= 0); | 9387 assert(value == null || value >= 0); |
| 9388 _nameOffset = _value; | 9388 this._nameOffset = value; |
| 9389 } | 9389 } |
| 9390 | 9390 |
| 9391 @override | 9391 @override |
| 9392 int get propagatedTypeSlot => _propagatedTypeSlot ??= 0; | 9392 int get propagatedTypeSlot => _propagatedTypeSlot ??= 0; |
| 9393 | 9393 |
| 9394 /** | 9394 /** |
| 9395 * If this variable is propagable, nonzero slot id identifying which entry in | 9395 * If this variable is propagable, nonzero slot id identifying which entry in |
| 9396 * [LinkedLibrary.types] contains the propagated type for this variable. If | 9396 * [LinkedLibrary.types] contains the propagated type for this variable. If |
| 9397 * there is no matching entry in [LinkedLibrary.types], then this variable's | 9397 * there is no matching entry in [LinkedLibrary.types], then this variable's |
| 9398 * propagated type is the same as its declared type. | 9398 * propagated type is the same as its declared type. |
| 9399 * | 9399 * |
| 9400 * Non-propagable variables have a [propagatedTypeSlot] of zero. | 9400 * Non-propagable variables have a [propagatedTypeSlot] of zero. |
| 9401 */ | 9401 */ |
| 9402 void set propagatedTypeSlot(int _value) { | 9402 void set propagatedTypeSlot(int value) { |
| 9403 assert(_value == null || _value >= 0); | 9403 assert(value == null || value >= 0); |
| 9404 _propagatedTypeSlot = _value; | 9404 this._propagatedTypeSlot = value; |
| 9405 } | 9405 } |
| 9406 | 9406 |
| 9407 @override | 9407 @override |
| 9408 EntityRefBuilder get type => _type; | 9408 EntityRefBuilder get type => _type; |
| 9409 | 9409 |
| 9410 /** | 9410 /** |
| 9411 * Declared type of the variable. Absent if the type is implicit. | 9411 * Declared type of the variable. Absent if the type is implicit. |
| 9412 */ | 9412 */ |
| 9413 void set type(EntityRefBuilder _value) { | 9413 void set type(EntityRefBuilder value) { |
| 9414 _type = _value; | 9414 this._type = value; |
| 9415 } | 9415 } |
| 9416 | 9416 |
| 9417 @override | 9417 @override |
| 9418 int get visibleLength => _visibleLength ??= 0; | 9418 int get visibleLength => _visibleLength ??= 0; |
| 9419 | 9419 |
| 9420 /** | 9420 /** |
| 9421 * If a local variable, the length of the visible range; zero otherwise. | 9421 * If a local variable, the length of the visible range; zero otherwise. |
| 9422 */ | 9422 */ |
| 9423 void set visibleLength(int _value) { | 9423 void set visibleLength(int value) { |
| 9424 assert(_value == null || _value >= 0); | 9424 assert(value == null || value >= 0); |
| 9425 _visibleLength = _value; | 9425 this._visibleLength = value; |
| 9426 } | 9426 } |
| 9427 | 9427 |
| 9428 @override | 9428 @override |
| 9429 int get visibleOffset => _visibleOffset ??= 0; | 9429 int get visibleOffset => _visibleOffset ??= 0; |
| 9430 | 9430 |
| 9431 /** | 9431 /** |
| 9432 * If a local variable, the beginning of the visible range; zero otherwise. | 9432 * If a local variable, the beginning of the visible range; zero otherwise. |
| 9433 */ | 9433 */ |
| 9434 void set visibleOffset(int _value) { | 9434 void set visibleOffset(int value) { |
| 9435 assert(_value == null || _value >= 0); | 9435 assert(value == null || value >= 0); |
| 9436 _visibleOffset = _value; | 9436 this._visibleOffset = value; |
| 9437 } | 9437 } |
| 9438 | 9438 |
| 9439 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuil
der codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int inf
erredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isFinal
, bool isStatic, String name, int nameOffset, int propagatedTypeSlot, EntityRefB
uilder type, int visibleLength, int visibleOffset}) | 9439 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, CodeRangeBuil
der codeRange, UnlinkedDocumentationCommentBuilder documentationComment, int inf
erredTypeSlot, UnlinkedExecutableBuilder initializer, bool isConst, bool isFinal
, bool isStatic, String name, int nameOffset, int propagatedTypeSlot, EntityRefB
uilder type, int visibleLength, int visibleOffset}) |
| 9440 : _annotations = annotations, | 9440 : _annotations = annotations, |
| 9441 _codeRange = codeRange, | 9441 _codeRange = codeRange, |
| 9442 _documentationComment = documentationComment, | 9442 _documentationComment = documentationComment, |
| 9443 _inferredTypeSlot = inferredTypeSlot, | 9443 _inferredTypeSlot = inferredTypeSlot, |
| 9444 _initializer = initializer, | 9444 _initializer = initializer, |
| 9445 _isConst = isConst, | 9445 _isConst = isConst, |
| 9446 _isFinal = isFinal, | 9446 _isFinal = isFinal, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9711 "propagatedTypeSlot": propagatedTypeSlot, | 9711 "propagatedTypeSlot": propagatedTypeSlot, |
| 9712 "type": type, | 9712 "type": type, |
| 9713 "visibleLength": visibleLength, | 9713 "visibleLength": visibleLength, |
| 9714 "visibleOffset": visibleOffset, | 9714 "visibleOffset": visibleOffset, |
| 9715 }; | 9715 }; |
| 9716 | 9716 |
| 9717 @override | 9717 @override |
| 9718 String toString() => convert.JSON.encode(toJson()); | 9718 String toString() => convert.JSON.encode(toJson()); |
| 9719 } | 9719 } |
| 9720 | 9720 |
| OLD | NEW |