| Index: pkg/analyzer/lib/src/summary/format.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/format.dart b/pkg/analyzer/lib/src/summary/format.dart
|
| index 0597fea34504ea8f5625de1e262382f192fbd487..dc3558b06f720eefc9952587eb097b47cf46c10a 100644
|
| --- a/pkg/analyzer/lib/src/summary/format.dart
|
| +++ b/pkg/analyzer/lib/src/summary/format.dart
|
| @@ -147,7 +147,7 @@ class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
|
| List<String> _parts;
|
|
|
| @override
|
| - String get uri => _uri ?? '';
|
| + String get uri => _uri ??= '';
|
|
|
| /**
|
| * The relative URI of the dependent library. This URI is relative to the
|
| @@ -162,7 +162,7 @@ class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
|
| }
|
|
|
| @override
|
| - List<String> get parts => _parts ?? const <String>[];
|
| + List<String> get parts => _parts ??= <String>[];
|
|
|
| /**
|
| * URI for the compilation units listed in the library's `part` declarations.
|
| @@ -266,7 +266,7 @@ class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
|
| ReferenceKind _kind;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the exported entity. TODO(paulberry): do we include the trailing
|
| @@ -278,7 +278,7 @@ class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
|
| }
|
|
|
| @override
|
| - int get dependency => _dependency ?? 0;
|
| + int get dependency => _dependency ??= 0;
|
|
|
| /**
|
| * Index into [LinkedLibrary.dependencies] for the library in which the
|
| @@ -291,7 +291,7 @@ class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
|
| }
|
|
|
| @override
|
| - int get unit => _unit ?? 0;
|
| + int get unit => _unit ??= 0;
|
|
|
| /**
|
| * Integer index indicating which unit in the exported library contains the
|
| @@ -306,7 +306,7 @@ class LinkedExportNameBuilder extends Object with _LinkedExportNameMixin impleme
|
| }
|
|
|
| @override
|
| - ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum;
|
| + ReferenceKind get kind => _kind ??= ReferenceKind.classOrEnum;
|
|
|
| /**
|
| * The kind of the entity being referred to.
|
| @@ -440,7 +440,7 @@ class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li
|
| int _numPrelinkedDependencies;
|
|
|
| @override
|
| - List<LinkedUnit> get units => _units ?? const <LinkedUnit>[];
|
| + List<LinkedUnitBuilder> get units => _units ??= <LinkedUnitBuilder>[];
|
|
|
| /**
|
| * The linked summary of all the compilation units constituting the
|
| @@ -454,7 +454,7 @@ class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li
|
| }
|
|
|
| @override
|
| - List<LinkedDependency> get dependencies => _dependencies ?? const <LinkedDependency>[];
|
| + List<LinkedDependencyBuilder> get dependencies => _dependencies ??= <LinkedDependencyBuilder>[];
|
|
|
| /**
|
| * The libraries that this library depends on (either via an explicit import
|
| @@ -477,7 +477,7 @@ class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li
|
| }
|
|
|
| @override
|
| - List<int> get importDependencies => _importDependencies ?? const <int>[];
|
| + List<int> get importDependencies => _importDependencies ??= <int>[];
|
|
|
| /**
|
| * For each import in [UnlinkedUnit.imports], an index into [dependencies]
|
| @@ -490,7 +490,7 @@ class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li
|
| }
|
|
|
| @override
|
| - List<LinkedExportName> get exportNames => _exportNames ?? const <LinkedExportName>[];
|
| + List<LinkedExportNameBuilder> get exportNames => _exportNames ??= <LinkedExportNameBuilder>[];
|
|
|
| /**
|
| * Information about entities in the export namespace of the library that are
|
| @@ -505,7 +505,7 @@ class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li
|
| }
|
|
|
| @override
|
| - int get numPrelinkedDependencies => _numPrelinkedDependencies ?? 0;
|
| + int get numPrelinkedDependencies => _numPrelinkedDependencies ??= 0;
|
|
|
| /**
|
| * The number of elements in [dependencies] which are not "linked"
|
| @@ -696,7 +696,7 @@ class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
|
| String _name;
|
|
|
| @override
|
| - int get dependency => _dependency ?? 0;
|
| + int get dependency => _dependency ??= 0;
|
|
|
| /**
|
| * Index into [LinkedLibrary.dependencies] indicating which imported library
|
| @@ -709,7 +709,7 @@ class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
|
| }
|
|
|
| @override
|
| - ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum;
|
| + ReferenceKind get kind => _kind ??= ReferenceKind.classOrEnum;
|
|
|
| /**
|
| * The kind of the entity being referred to. For the pseudo-type `dynamic`,
|
| @@ -721,7 +721,7 @@ class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
|
| }
|
|
|
| @override
|
| - int get unit => _unit ?? 0;
|
| + int get unit => _unit ??= 0;
|
|
|
| /**
|
| * Integer index indicating which unit in the imported library contains the
|
| @@ -736,7 +736,7 @@ class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
|
| }
|
|
|
| @override
|
| - int get numTypeParameters => _numTypeParameters ?? 0;
|
| + int get numTypeParameters => _numTypeParameters ??= 0;
|
|
|
| /**
|
| * If the entity being referred to is generic, the number of type parameters
|
| @@ -749,7 +749,7 @@ class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
|
| }
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * If this [LinkedReference] doesn't have an associated [UnlinkedReference],
|
| @@ -901,7 +901,7 @@ class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements LinkedUn
|
| List<TypeRefBuilder> _types;
|
|
|
| @override
|
| - List<LinkedReference> get references => _references ?? const <LinkedReference>[];
|
| + List<LinkedReferenceBuilder> get references => _references ??= <LinkedReferenceBuilder>[];
|
|
|
| /**
|
| * Information about the resolution of references within the compilation
|
| @@ -917,7 +917,7 @@ class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements LinkedUn
|
| }
|
|
|
| @override
|
| - List<TypeRef> get types => _types ?? const <TypeRef>[];
|
| + List<TypeRefBuilder> get types => _types ??= <TypeRefBuilder>[];
|
|
|
| /**
|
| * List associating slot ids found inside the unlinked summary for the
|
| @@ -1021,7 +1021,7 @@ class SdkBundleBuilder extends Object with _SdkBundleMixin implements SdkBundle
|
| List<UnlinkedUnitBuilder> _unlinkedUnits;
|
|
|
| @override
|
| - List<String> get linkedLibraryUris => _linkedLibraryUris ?? const <String>[];
|
| + List<String> get linkedLibraryUris => _linkedLibraryUris ??= <String>[];
|
|
|
| /**
|
| * The list of URIs of items in [linkedLibraries], e.g. `dart:core`.
|
| @@ -1032,7 +1032,7 @@ class SdkBundleBuilder extends Object with _SdkBundleMixin implements SdkBundle
|
| }
|
|
|
| @override
|
| - List<LinkedLibrary> get linkedLibraries => _linkedLibraries ?? const <LinkedLibrary>[];
|
| + List<LinkedLibraryBuilder> get linkedLibraries => _linkedLibraries ??= <LinkedLibraryBuilder>[];
|
|
|
| /**
|
| * Linked libraries.
|
| @@ -1043,7 +1043,7 @@ class SdkBundleBuilder extends Object with _SdkBundleMixin implements SdkBundle
|
| }
|
|
|
| @override
|
| - List<String> get unlinkedUnitUris => _unlinkedUnitUris ?? const <String>[];
|
| + List<String> get unlinkedUnitUris => _unlinkedUnitUris ??= <String>[];
|
|
|
| /**
|
| * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`.
|
| @@ -1054,7 +1054,7 @@ class SdkBundleBuilder extends Object with _SdkBundleMixin implements SdkBundle
|
| }
|
|
|
| @override
|
| - List<UnlinkedUnit> get unlinkedUnits => _unlinkedUnits ?? const <UnlinkedUnit>[];
|
| + List<UnlinkedUnitBuilder> get unlinkedUnits => _unlinkedUnits ??= <UnlinkedUnitBuilder>[];
|
|
|
| /**
|
| * Unlinked information for the compilation units constituting the SDK.
|
| @@ -1202,7 +1202,7 @@ class TypeRefBuilder extends Object with _TypeRefMixin implements TypeRef {
|
| List<TypeRefBuilder> _typeArguments;
|
|
|
| @override
|
| - int get slot => _slot ?? 0;
|
| + int get slot => _slot ??= 0;
|
|
|
| /**
|
| * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which
|
| @@ -1218,7 +1218,7 @@ class TypeRefBuilder extends Object with _TypeRefMixin implements TypeRef {
|
| }
|
|
|
| @override
|
| - int get reference => _reference ?? 0;
|
| + int get reference => _reference ??= 0;
|
|
|
| /**
|
| * Index into [UnlinkedUnit.references] for the type being referred to, or
|
| @@ -1237,7 +1237,7 @@ class TypeRefBuilder extends Object with _TypeRefMixin implements TypeRef {
|
| }
|
|
|
| @override
|
| - int get paramReference => _paramReference ?? 0;
|
| + int get paramReference => _paramReference ??= 0;
|
|
|
| /**
|
| * If this is a reference to a type parameter, one-based index into the list
|
| @@ -1265,7 +1265,7 @@ class TypeRefBuilder extends Object with _TypeRefMixin implements TypeRef {
|
| }
|
|
|
| @override
|
| - List<TypeRef> get typeArguments => _typeArguments ?? const <TypeRef>[];
|
| + List<TypeRefBuilder> get typeArguments => _typeArguments ??= <TypeRefBuilder>[];
|
|
|
| /**
|
| * If this is an instantiation of a generic type, the type arguments used to
|
| @@ -1429,7 +1429,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| bool _hasNoSupertype;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the class.
|
| @@ -1440,7 +1440,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the class name relative to the beginning of the file.
|
| @@ -1452,7 +1452,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the class, or `null` if there is no
|
| @@ -1464,7 +1464,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[];
|
| + List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <UnlinkedTypeParamBuilder>[];
|
|
|
| /**
|
| * Type parameters of the class, if any.
|
| @@ -1475,7 +1475,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - TypeRef get supertype => _supertype;
|
| + TypeRefBuilder get supertype => _supertype;
|
|
|
| /**
|
| * Supertype of the class, or `null` if either (a) the class doesn't
|
| @@ -1488,7 +1488,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - List<TypeRef> get mixins => _mixins ?? const <TypeRef>[];
|
| + List<TypeRefBuilder> get mixins => _mixins ??= <TypeRefBuilder>[];
|
|
|
| /**
|
| * Mixins appearing in a `with` clause, if any.
|
| @@ -1499,7 +1499,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - List<TypeRef> get interfaces => _interfaces ?? const <TypeRef>[];
|
| + List<TypeRefBuilder> get interfaces => _interfaces ??= <TypeRefBuilder>[];
|
|
|
| /**
|
| * Interfaces appearing in an `implements` clause, if any.
|
| @@ -1510,7 +1510,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - List<UnlinkedVariable> get fields => _fields ?? const <UnlinkedVariable>[];
|
| + List<UnlinkedVariableBuilder> get fields => _fields ??= <UnlinkedVariableBuilder>[];
|
|
|
| /**
|
| * Field declarations contained in the class.
|
| @@ -1521,7 +1521,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExecutable>[];
|
| + List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedExecutableBuilder>[];
|
|
|
| /**
|
| * Executable objects (methods, getters, and setters) contained in the class.
|
| @@ -1532,7 +1532,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get isAbstract => _isAbstract ?? false;
|
| + bool get isAbstract => _isAbstract ??= false;
|
|
|
| /**
|
| * Indicates whether the class is declared with the `abstract` keyword.
|
| @@ -1543,7 +1543,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get isMixinApplication => _isMixinApplication ?? false;
|
| + bool get isMixinApplication => _isMixinApplication ??= false;
|
|
|
| /**
|
| * Indicates whether the class is declared using mixin application syntax.
|
| @@ -1554,7 +1554,7 @@ class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get hasNoSupertype => _hasNoSupertype ?? false;
|
| + bool get hasNoSupertype => _hasNoSupertype ??= false;
|
|
|
| /**
|
| * Indicates whether this class is the core "Object" class (and hence has no
|
| @@ -1848,7 +1848,7 @@ class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
|
| List<String> _hides;
|
|
|
| @override
|
| - List<String> get shows => _shows ?? const <String>[];
|
| + List<String> get shows => _shows ??= <String>[];
|
|
|
| /**
|
| * List of names which are shown. Empty if this is a `hide` combinator.
|
| @@ -1859,7 +1859,7 @@ class UnlinkedCombinatorBuilder extends Object with _UnlinkedCombinatorMixin imp
|
| }
|
|
|
| @override
|
| - List<String> get hides => _hides ?? const <String>[];
|
| + List<String> get hides => _hides ??= <String>[];
|
|
|
| /**
|
| * List of names which are hidden. Empty if this is a `show` combinator.
|
| @@ -1958,7 +1958,7 @@ class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements Un
|
| List<TypeRefBuilder> _references;
|
|
|
| @override
|
| - List<UnlinkedConstOperation> get operations => _operations ?? const <UnlinkedConstOperation>[];
|
| + List<UnlinkedConstOperation> get operations => _operations ??= <UnlinkedConstOperation>[];
|
|
|
| /**
|
| * Sequence of operations to execute (starting with an empty stack) to form
|
| @@ -1970,7 +1970,7 @@ class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements Un
|
| }
|
|
|
| @override
|
| - List<int> get ints => _ints ?? const <int>[];
|
| + List<int> get ints => _ints ??= <int>[];
|
|
|
| /**
|
| * Sequence of unsigned 32-bit integers consumed by the operations
|
| @@ -1984,7 +1984,7 @@ class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements Un
|
| }
|
|
|
| @override
|
| - List<double> get doubles => _doubles ?? const <double>[];
|
| + List<double> get doubles => _doubles ??= <double>[];
|
|
|
| /**
|
| * Sequence of 64-bit doubles consumed by the operation `pushDouble`.
|
| @@ -1995,7 +1995,7 @@ class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements Un
|
| }
|
|
|
| @override
|
| - List<String> get strings => _strings ?? const <String>[];
|
| + List<String> get strings => _strings ??= <String>[];
|
|
|
| /**
|
| * Sequence of strings consumed by the operations `pushString` and
|
| @@ -2007,7 +2007,7 @@ class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements Un
|
| }
|
|
|
| @override
|
| - List<TypeRef> get references => _references ?? const <TypeRef>[];
|
| + List<TypeRefBuilder> get references => _references ??= <TypeRefBuilder>[];
|
|
|
| /**
|
| * Sequence of language constructs consumed by the operations
|
| @@ -2183,7 +2183,7 @@ class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
|
| int _length;
|
|
|
| @override
|
| - String get text => _text ?? '';
|
| + String get text => _text ??= '';
|
|
|
| /**
|
| * Text of the documentation comment, with '\r\n' replaced by '\n'.
|
| @@ -2197,7 +2197,7 @@ class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
|
| }
|
|
|
| @override
|
| - int get offset => _offset ?? 0;
|
| + int get offset => _offset ??= 0;
|
|
|
| /**
|
| * Offset of the beginning of the documentation comment relative to the
|
| @@ -2210,7 +2210,7 @@ class UnlinkedDocumentationCommentBuilder extends Object with _UnlinkedDocumenta
|
| }
|
|
|
| @override
|
| - int get length => _length ?? 0;
|
| + int get length => _length ??= 0;
|
|
|
| /**
|
| * Length of the documentation comment (prior to replacing '\r\n' with '\n').
|
| @@ -2325,7 +2325,7 @@ class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements Unli
|
| List<UnlinkedEnumValueBuilder> _values;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the enum type.
|
| @@ -2336,7 +2336,7 @@ class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements Unli
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the enum name relative to the beginning of the file.
|
| @@ -2348,7 +2348,7 @@ class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements Unli
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the enum, or `null` if there is no documentation
|
| @@ -2360,7 +2360,7 @@ class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedEnumValue> get values => _values ?? const <UnlinkedEnumValue>[];
|
| + List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBuilder>[];
|
|
|
| /**
|
| * Values listed in the enum declaration, in declaration order.
|
| @@ -2495,7 +2495,7 @@ class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
|
| UnlinkedDocumentationCommentBuilder _documentationComment;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the enumerated value.
|
| @@ -2506,7 +2506,7 @@ class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the enum value name relative to the beginning of the file.
|
| @@ -2518,7 +2518,7 @@ class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the enum value, or `null` if there is no
|
| @@ -2644,7 +2644,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| bool _isExternal;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the executable. For setters, this includes the trailing "=". For
|
| @@ -2657,7 +2657,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the executable name relative to the beginning of the file. For
|
| @@ -2672,7 +2672,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the executable, or `null` if there is no
|
| @@ -2684,7 +2684,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[];
|
| + List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <UnlinkedTypeParamBuilder>[];
|
|
|
| /**
|
| * Type parameters of the executable, if any. Empty if support for generic
|
| @@ -2696,7 +2696,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - TypeRef get returnType => _returnType;
|
| + TypeRefBuilder get returnType => _returnType;
|
|
|
| /**
|
| * Declared return type of the executable. Absent if the return type is
|
| @@ -2709,7 +2709,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[];
|
| + List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBuilder>[];
|
|
|
| /**
|
| * Parameters of the executable, if any. Note that getters have no
|
| @@ -2722,7 +2722,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - UnlinkedExecutableKind get kind => _kind ?? UnlinkedExecutableKind.functionOrMethod;
|
| + UnlinkedExecutableKind get kind => _kind ??= UnlinkedExecutableKind.functionOrMethod;
|
|
|
| /**
|
| * The kind of the executable (function/method, getter, setter, or
|
| @@ -2734,7 +2734,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get isAbstract => _isAbstract ?? false;
|
| + bool get isAbstract => _isAbstract ??= false;
|
|
|
| /**
|
| * Indicates whether the executable is declared using the `abstract` keyword.
|
| @@ -2745,7 +2745,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get isStatic => _isStatic ?? false;
|
| + bool get isStatic => _isStatic ??= false;
|
|
|
| /**
|
| * Indicates whether the executable is declared using the `static` keyword.
|
| @@ -2760,7 +2760,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get isConst => _isConst ?? false;
|
| + bool get isConst => _isConst ??= false;
|
|
|
| /**
|
| * Indicates whether the executable is declared using the `const` keyword.
|
| @@ -2771,7 +2771,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get isFactory => _isFactory ?? false;
|
| + bool get isFactory => _isFactory ??= false;
|
|
|
| /**
|
| * Indicates whether the executable is declared using the `factory` keyword.
|
| @@ -2782,7 +2782,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get hasImplicitReturnType => _hasImplicitReturnType ?? false;
|
| + bool get hasImplicitReturnType => _hasImplicitReturnType ??= false;
|
|
|
| /**
|
| * Indicates whether the executable lacks an explicit return type
|
| @@ -2794,7 +2794,7 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
|
| }
|
|
|
| @override
|
| - bool get isExternal => _isExternal ?? false;
|
| + bool get isExternal => _isExternal ??= false;
|
|
|
| /**
|
| * Indicates whether the executable is declared using the `external` keyword.
|
| @@ -3107,7 +3107,7 @@ class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
|
| int _uriEnd;
|
|
|
| @override
|
| - int get offset => _offset ?? 0;
|
| + int get offset => _offset ??= 0;
|
|
|
| /**
|
| * Offset of the "export" keyword.
|
| @@ -3119,7 +3119,7 @@ class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
|
| }
|
|
|
| @override
|
| - int get uriOffset => _uriOffset ?? 0;
|
| + int get uriOffset => _uriOffset ??= 0;
|
|
|
| /**
|
| * Offset of the URI string (including quotes) relative to the beginning of
|
| @@ -3132,7 +3132,7 @@ class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
|
| }
|
|
|
| @override
|
| - int get uriEnd => _uriEnd ?? 0;
|
| + int get uriEnd => _uriEnd ??= 0;
|
|
|
| /**
|
| * End of the URI string (including quotes) relative to the beginning of the
|
| @@ -3241,7 +3241,7 @@ class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
|
| List<UnlinkedCombinatorBuilder> _combinators;
|
|
|
| @override
|
| - String get uri => _uri ?? '';
|
| + String get uri => _uri ??= '';
|
|
|
| /**
|
| * URI used in the source code to reference the exported library.
|
| @@ -3252,7 +3252,7 @@ class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
|
| }
|
|
|
| @override
|
| - List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCombinator>[];
|
| + List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedCombinatorBuilder>[];
|
|
|
| /**
|
| * Combinators contained in this import declaration.
|
| @@ -3355,7 +3355,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| int _prefixOffset;
|
|
|
| @override
|
| - String get uri => _uri ?? '';
|
| + String get uri => _uri ??= '';
|
|
|
| /**
|
| * URI used in the source code to reference the imported library.
|
| @@ -3366,7 +3366,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - int get offset => _offset ?? 0;
|
| + int get offset => _offset ??= 0;
|
|
|
| /**
|
| * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit]
|
| @@ -3379,7 +3379,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - int get prefixReference => _prefixReference ?? 0;
|
| + int get prefixReference => _prefixReference ??= 0;
|
|
|
| /**
|
| * Index into [UnlinkedUnit.references] of the prefix declared by this
|
| @@ -3394,7 +3394,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCombinator>[];
|
| + List<UnlinkedCombinatorBuilder> get combinators => _combinators ??= <UnlinkedCombinatorBuilder>[];
|
|
|
| /**
|
| * Combinators contained in this import declaration.
|
| @@ -3405,7 +3405,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - bool get isDeferred => _isDeferred ?? false;
|
| + bool get isDeferred => _isDeferred ??= false;
|
|
|
| /**
|
| * Indicates whether the import declaration uses the `deferred` keyword.
|
| @@ -3416,7 +3416,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - bool get isImplicit => _isImplicit ?? false;
|
| + bool get isImplicit => _isImplicit ??= false;
|
|
|
| /**
|
| * Indicates whether the import declaration is implicit.
|
| @@ -3427,7 +3427,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - int get uriOffset => _uriOffset ?? 0;
|
| + int get uriOffset => _uriOffset ??= 0;
|
|
|
| /**
|
| * Offset of the URI string (including quotes) relative to the beginning of
|
| @@ -3440,7 +3440,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - int get uriEnd => _uriEnd ?? 0;
|
| + int get uriEnd => _uriEnd ??= 0;
|
|
|
| /**
|
| * End of the URI string (including quotes) relative to the beginning of the
|
| @@ -3453,7 +3453,7 @@ class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
|
| }
|
|
|
| @override
|
| - int get prefixOffset => _prefixOffset ?? 0;
|
| + int get prefixOffset => _prefixOffset ??= 0;
|
|
|
| /**
|
| * Offset of the prefix name relative to the beginning of the file, or zero
|
| @@ -3682,7 +3682,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| bool _hasImplicitType;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the parameter.
|
| @@ -3693,7 +3693,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the parameter name relative to the beginning of the file.
|
| @@ -3705,7 +3705,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - TypeRef get type => _type;
|
| + TypeRefBuilder get type => _type;
|
|
|
| /**
|
| * If [isFunctionTyped] is `true`, the declared return type. If
|
| @@ -3720,7 +3720,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[];
|
| + List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBuilder>[];
|
|
|
| /**
|
| * If [isFunctionTyped] is `true`, the parameters of the function type.
|
| @@ -3731,7 +3731,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - UnlinkedParamKind get kind => _kind ?? UnlinkedParamKind.required;
|
| + UnlinkedParamKind get kind => _kind ??= UnlinkedParamKind.required;
|
|
|
| /**
|
| * Kind of the parameter.
|
| @@ -3742,7 +3742,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get isFunctionTyped => _isFunctionTyped ?? false;
|
| + bool get isFunctionTyped => _isFunctionTyped ??= false;
|
|
|
| /**
|
| * Indicates whether this is a function-typed parameter.
|
| @@ -3753,7 +3753,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get isInitializingFormal => _isInitializingFormal ?? false;
|
| + bool get isInitializingFormal => _isInitializingFormal ??= false;
|
|
|
| /**
|
| * Indicates whether this is an initializing formal parameter (i.e. it is
|
| @@ -3765,7 +3765,7 @@ class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements Un
|
| }
|
|
|
| @override
|
| - bool get hasImplicitType => _hasImplicitType ?? false;
|
| + bool get hasImplicitType => _hasImplicitType ??= false;
|
|
|
| /**
|
| * Indicates whether this parameter lacks an explicit type declaration.
|
| @@ -3973,7 +3973,7 @@ class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements Unli
|
| int _uriEnd;
|
|
|
| @override
|
| - int get uriOffset => _uriOffset ?? 0;
|
| + int get uriOffset => _uriOffset ??= 0;
|
|
|
| /**
|
| * Offset of the URI string (including quotes) relative to the beginning of
|
| @@ -3986,7 +3986,7 @@ class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements Unli
|
| }
|
|
|
| @override
|
| - int get uriEnd => _uriEnd ?? 0;
|
| + int get uriEnd => _uriEnd ??= 0;
|
|
|
| /**
|
| * End of the URI string (including quotes) relative to the beginning of the
|
| @@ -4078,7 +4078,7 @@ class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
|
| int _numTypeParameters;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * The name itself.
|
| @@ -4089,7 +4089,7 @@ class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
|
| }
|
|
|
| @override
|
| - ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum;
|
| + ReferenceKind get kind => _kind ??= ReferenceKind.classOrEnum;
|
|
|
| /**
|
| * The kind of object referred to by the name.
|
| @@ -4100,7 +4100,7 @@ class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
|
| }
|
|
|
| @override
|
| - int get numTypeParameters => _numTypeParameters ?? 0;
|
| + int get numTypeParameters => _numTypeParameters ??= 0;
|
|
|
| /**
|
| * If the entity being referred to is generic, the number of type parameters
|
| @@ -4223,7 +4223,7 @@ class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac
|
| List<String> _parts;
|
|
|
| @override
|
| - List<UnlinkedPublicName> get names => _names ?? const <UnlinkedPublicName>[];
|
| + List<UnlinkedPublicNameBuilder> get names => _names ??= <UnlinkedPublicNameBuilder>[];
|
|
|
| /**
|
| * Public names defined in the compilation unit.
|
| @@ -4237,7 +4237,7 @@ class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac
|
| }
|
|
|
| @override
|
| - List<UnlinkedExportPublic> get exports => _exports ?? const <UnlinkedExportPublic>[];
|
| + List<UnlinkedExportPublicBuilder> get exports => _exports ??= <UnlinkedExportPublicBuilder>[];
|
|
|
| /**
|
| * Export declarations in the compilation unit.
|
| @@ -4248,7 +4248,7 @@ class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac
|
| }
|
|
|
| @override
|
| - List<String> get parts => _parts ?? const <String>[];
|
| + List<String> get parts => _parts ??= <String>[];
|
|
|
| /**
|
| * URIs referenced by part declarations in the compilation unit.
|
| @@ -4378,7 +4378,7 @@ class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple
|
| int _prefixReference;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the entity being referred to. The empty string refers to the
|
| @@ -4390,7 +4390,7 @@ class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple
|
| }
|
|
|
| @override
|
| - int get prefixReference => _prefixReference ?? 0;
|
| + int get prefixReference => _prefixReference ??= 0;
|
|
|
| /**
|
| * Prefix used to refer to the entity, or zero if no prefix is used. This is
|
| @@ -4498,7 +4498,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| List<UnlinkedParamBuilder> _parameters;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the typedef.
|
| @@ -4509,7 +4509,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the typedef name relative to the beginning of the file.
|
| @@ -4521,7 +4521,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the typedef, or `null` if there is no
|
| @@ -4533,7 +4533,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| }
|
|
|
| @override
|
| - List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[];
|
| + List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <UnlinkedTypeParamBuilder>[];
|
|
|
| /**
|
| * Type parameters of the typedef, if any.
|
| @@ -4544,7 +4544,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| }
|
|
|
| @override
|
| - TypeRef get returnType => _returnType;
|
| + TypeRefBuilder get returnType => _returnType;
|
|
|
| /**
|
| * Return type of the typedef. Absent if the return type is `void`.
|
| @@ -4555,7 +4555,7 @@ class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
|
| }
|
|
|
| @override
|
| - List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[];
|
| + List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBuilder>[];
|
|
|
| /**
|
| * Parameters of the executable, if any.
|
| @@ -4732,7 +4732,7 @@ class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
|
| TypeRefBuilder _bound;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the type parameter.
|
| @@ -4743,7 +4743,7 @@ class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the type parameter name relative to the beginning of the file.
|
| @@ -4755,7 +4755,7 @@ class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
|
| }
|
|
|
| @override
|
| - TypeRef get bound => _bound;
|
| + TypeRefBuilder get bound => _bound;
|
|
|
| /**
|
| * Bound of the type parameter, if a bound is explicitly declared. Otherwise
|
| @@ -4881,7 +4881,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| List<UnlinkedVariableBuilder> _variables;
|
|
|
| @override
|
| - String get libraryName => _libraryName ?? '';
|
| + String get libraryName => _libraryName ??= '';
|
|
|
| /**
|
| * Name of the library (from a "library" declaration, if present).
|
| @@ -4892,7 +4892,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - int get libraryNameOffset => _libraryNameOffset ?? 0;
|
| + int get libraryNameOffset => _libraryNameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the library name relative to the beginning of the file (or 0 if
|
| @@ -4905,7 +4905,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - int get libraryNameLength => _libraryNameLength ?? 0;
|
| + int get libraryNameLength => _libraryNameLength ??= 0;
|
|
|
| /**
|
| * Length of the library name as it appears in the source code (or 0 if the
|
| @@ -4918,7 +4918,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get libraryDocumentationComment => _libraryDocumentationComment;
|
| + UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _libraryDocumentationComment;
|
|
|
| /**
|
| * Documentation comment for the library, or `null` if there is no
|
| @@ -4930,7 +4930,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - UnlinkedPublicNamespace get publicNamespace => _publicNamespace;
|
| + UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace;
|
|
|
| /**
|
| * Unlinked public namespace of this compilation unit.
|
| @@ -4941,7 +4941,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedReference> get references => _references ?? const <UnlinkedReference>[];
|
| + List<UnlinkedReferenceBuilder> get references => _references ??= <UnlinkedReferenceBuilder>[];
|
|
|
| /**
|
| * Top level and prefixed names referred to by this compilation unit. The
|
| @@ -4954,7 +4954,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedClass> get classes => _classes ?? const <UnlinkedClass>[];
|
| + List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[];
|
|
|
| /**
|
| * Classes declared in the compilation unit.
|
| @@ -4965,7 +4965,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedEnum> get enums => _enums ?? const <UnlinkedEnum>[];
|
| + List<UnlinkedEnumBuilder> get enums => _enums ??= <UnlinkedEnumBuilder>[];
|
|
|
| /**
|
| * Enums declared in the compilation unit.
|
| @@ -4976,7 +4976,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExecutable>[];
|
| + List<UnlinkedExecutableBuilder> get executables => _executables ??= <UnlinkedExecutableBuilder>[];
|
|
|
| /**
|
| * Top level executable objects (functions, getters, and setters) declared in
|
| @@ -4988,7 +4988,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedExportNonPublic> get exports => _exports ?? const <UnlinkedExportNonPublic>[];
|
| + List<UnlinkedExportNonPublicBuilder> get exports => _exports ??= <UnlinkedExportNonPublicBuilder>[];
|
|
|
| /**
|
| * Export declarations in the compilation unit.
|
| @@ -4999,7 +4999,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedImport> get imports => _imports ?? const <UnlinkedImport>[];
|
| + List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder>[];
|
|
|
| /**
|
| * Import declarations in the compilation unit.
|
| @@ -5010,7 +5010,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedPart> get parts => _parts ?? const <UnlinkedPart>[];
|
| + List<UnlinkedPartBuilder> get parts => _parts ??= <UnlinkedPartBuilder>[];
|
|
|
| /**
|
| * Part declarations in the compilation unit.
|
| @@ -5021,7 +5021,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedTypedef> get typedefs => _typedefs ?? const <UnlinkedTypedef>[];
|
| + List<UnlinkedTypedefBuilder> get typedefs => _typedefs ??= <UnlinkedTypedefBuilder>[];
|
|
|
| /**
|
| * Typedefs declared in the compilation unit.
|
| @@ -5032,7 +5032,7 @@ class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements Unli
|
| }
|
|
|
| @override
|
| - List<UnlinkedVariable> get variables => _variables ?? const <UnlinkedVariable>[];
|
| + List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariableBuilder>[];
|
|
|
| /**
|
| * Top level variables declared in the compilation unit.
|
| @@ -5394,7 +5394,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| int _propagatedTypeSlot;
|
|
|
| @override
|
| - String get name => _name ?? '';
|
| + String get name => _name ??= '';
|
|
|
| /**
|
| * Name of the variable.
|
| @@ -5405,7 +5405,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - int get nameOffset => _nameOffset ?? 0;
|
| + int get nameOffset => _nameOffset ??= 0;
|
|
|
| /**
|
| * Offset of the variable name relative to the beginning of the file.
|
| @@ -5417,7 +5417,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - UnlinkedDocumentationComment get documentationComment => _documentationComment;
|
| + UnlinkedDocumentationCommentBuilder get documentationComment => _documentationComment;
|
|
|
| /**
|
| * Documentation comment for the variable, or `null` if there is no
|
| @@ -5429,7 +5429,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - TypeRef get type => _type;
|
| + TypeRefBuilder get type => _type;
|
|
|
| /**
|
| * Declared type of the variable. Note that when strong mode is enabled, the
|
| @@ -5441,7 +5441,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - UnlinkedConst get constExpr => _constExpr;
|
| + UnlinkedConstBuilder get constExpr => _constExpr;
|
|
|
| /**
|
| * If [isConst] is true, and the variable has an initializer, the constant
|
| @@ -5453,7 +5453,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - bool get isStatic => _isStatic ?? false;
|
| + bool get isStatic => _isStatic ??= false;
|
|
|
| /**
|
| * Indicates whether the variable is declared using the `static` keyword.
|
| @@ -5468,7 +5468,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - bool get isFinal => _isFinal ?? false;
|
| + bool get isFinal => _isFinal ??= false;
|
|
|
| /**
|
| * Indicates whether the variable is declared using the `final` keyword.
|
| @@ -5479,7 +5479,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - bool get isConst => _isConst ?? false;
|
| + bool get isConst => _isConst ??= false;
|
|
|
| /**
|
| * Indicates whether the variable is declared using the `const` keyword.
|
| @@ -5490,7 +5490,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - bool get hasImplicitType => _hasImplicitType ?? false;
|
| + bool get hasImplicitType => _hasImplicitType ??= false;
|
|
|
| /**
|
| * Indicates whether this variable lacks an explicit type declaration.
|
| @@ -5501,7 +5501,7 @@ class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
|
| }
|
|
|
| @override
|
| - int get propagatedTypeSlot => _propagatedTypeSlot ?? 0;
|
| + int get propagatedTypeSlot => _propagatedTypeSlot ??= 0;
|
|
|
| /**
|
| * If this variable is propagable, nonzero slot id identifying which entry in
|
|
|