LibraryFragment class abstract
The portion of a LibraryElement2 coming from a single compilation unit.
- Implemented types
Constructors
Properties
-
accessibleExtensions2
→ List<
ExtensionElement2> -
The extension elements accessible within this fragment.
no setter
-
children3
→ List<
Fragment> -
The children of this fragment.
no setterinherited
-
classes2
→ List<
ClassFragment> -
The fragments of the classes declared in this fragment.
no setter
- documentationComment → String?
-
The content of the documentation comment (including delimiters) for this
element or fragment.
no setterinherited
- element → LibraryElement2
-
The element composed from this fragment and possibly other fragments.
no setteroverride
- enclosingFragment → LibraryFragment?
-
The fragment that either physically or logically encloses this fragment.
no setteroverride
-
enums2
→ List<
EnumFragment> -
The fragments of the enums declared in this fragment.
no setter
-
extensions2
→ List<
ExtensionFragment> -
The fragments of the extensions declared in this fragment.
no setter
-
extensionTypes2
→ List<
ExtensionTypeFragment> -
The fragments of the extension types declared in this fragment.
no setter
-
fragmentIncludes
→ List<
LibraryFragmentInclude> -
The
part
directives within this fragment.no setter -
functions2
→ List<
TopLevelFunctionFragment> -
The fragments of the top-level functions declared in this fragment.
no setter
-
getters
→ List<
GetterFragment> -
The fragments of the top-level getters declared in this fragment.
no setter
- hasAlwaysThrows → bool
-
Whether the receiver has an annotation of the form
@alwaysThrows
.no setterinherited - hasDeprecated → bool
-
Whether the receiver has an annotation of the form
@deprecated
or@Deprecated('..')
.no setterinherited - hasDoNotStore → bool
-
Whether the receiver has an annotation of the form
@doNotStore
.no setterinherited - hasDoNotSubmit → bool
-
Whether the receiver has an annotation of the form
@doNotSubmit
.no setterinherited - hasFactory → bool
-
Whether the receiver has an annotation of the form
@factory
.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasImmutable → bool
-
Whether the receiver has an annotation of the form
@immutable
.no setterinherited - hasInternal → bool
-
Whether the receiver has an annotation of the form
@internal
.no setterinherited - hasIsTest → bool
-
Whether the receiver has an annotation of the form
@isTest
.no setterinherited - hasIsTestGroup → bool
-
Whether the receiver has an annotation of the form
@isTestGroup
.no setterinherited - hasJS → bool
-
Whether the receiver has an annotation of the form
@JS(..)
.no setterinherited - hasLiteral → bool
-
Whether the receiver has an annotation of the form
@literal
.no setterinherited - hasMustBeConst → bool
-
Whether the receiver has an annotation of the form
@mustBeConst
.no setterinherited - hasMustBeOverridden → bool
-
Whether the receiver has an annotation of the form
@mustBeOverridden
.no setterinherited - hasMustCallSuper → bool
-
Whether the receiver has an annotation of the form
@mustCallSuper
.no setterinherited - hasNonVirtual → bool
-
Whether the receiver has an annotation of the form
@nonVirtual
.no setterinherited - hasOptionalTypeArgs → bool
-
Whether the receiver has an annotation of the form
@optionalTypeArgs
.no setterinherited - hasOverride → bool
-
Whether the receiver has an annotation of the form
@override
.no setterinherited - hasProtected → bool
-
Whether the receiver has an annotation of the form
@protected
.no setterinherited - hasRedeclare → bool
-
Whether the receiver has an annotation of the form
@redeclare
.no setterinherited - hasReopen → bool
-
Whether the receiver has an annotation of the form
@reopen
.no setterinherited - hasRequired → bool
-
Whether the receiver has an annotation of the form
@required
.no setterinherited - hasSealed → bool
-
Whether the receiver has an annotation of the form
@sealed
.no setterinherited - hasUseResult → bool
-
Whether the receiver has an annotation of the form
@useResult
or@UseResult('..')
.no setterinherited - hasVisibleForOverriding → bool
-
Whether the receiver has an annotation of the form
@visibleForOverriding
.no setterinherited - hasVisibleForTemplate → bool
-
Whether the receiver has an annotation of the form
@visibleForTemplate
.no setterinherited - hasVisibleForTesting → bool
-
Whether the receiver has an annotation of the form
@visibleForTesting
.no setterinherited - hasVisibleOutsideTemplate → bool
-
Whether the receiver has an annotation of the form
@visibleOutsideTemplate
.no setterinherited -
libraryExports2
→ List<
LibraryExport> -
The libraries exported by this unit.
no setter
- libraryFragment → LibraryFragment
-
The library fragment that contains this fragment.
no setterinherited
-
libraryImports2
→ List<
LibraryImport> -
The libraries imported by this unit.
no setter
- lineInfo → LineInfo
-
The LineInfo for the fragment.
no setter
-
metadata
→ List<
ElementAnnotation> -
The metadata associated with the element or fragment.
no setterinherited
-
mixins2
→ List<
MixinFragment> -
The fragments of the mixins declared in this fragment.
no setter
- name → String?
-
The name of this fragment.
no setterinherited
- nameOffset → int?
-
The offset of the name in this fragment.
no setterinherited
- nextFragment → LibraryFragment?
-
The next fragment in the augmentation chain.
no setteroverride
-
prefixes
→ List<
PrefixElement2> -
The prefixes used by libraryImports2.
no setter
- previousFragment → LibraryFragment?
-
The previous fragment in the augmentation chain.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → Scope
-
The scope used to resolve names within the fragment.
no setter
-
setters
→ List<
SetterFragment> -
The fragments of the top-level setters declared in this fragment.
no setter
- sinceSdkVersion → Version?
-
The version where this SDK API was added.
no setterinherited
- source → Source
-
The source associated with this fragment.
no setter
-
topLevelVariables2
→ List<
TopLevelVariableFragment> -
The fragments of the top-level variables declared in this fragment.
no setter
-
typeAliases2
→ List<
TypeAliasFragment> -
The fragments of the type aliases declared in this fragment.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited