LibraryFragment class abstract

The portion of a LibraryElement coming from a single compilation unit.

Implemented types

Constructors

LibraryFragment()

Properties

accessibleExtensions → List<ExtensionElement>
The extension elements accessible within this fragment.
no setter
children → List<Fragment>
The children of this fragment.
no setterinherited
classes → 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 fragment.
no setterinherited
element → LibraryElement
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
enums → List<EnumFragment>
The fragments of the enums declared in this fragment.
no setter
extensions → List<ExtensionFragment>
The fragments of the extensions declared in this fragment.
no setter
extensionTypes → List<ExtensionTypeFragment>
The fragments of the extension types declared in this fragment.
no setter
functions → 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
hashCode → int
The hash code for this object.
no setterinherited
importedLibraries → List<LibraryElement>
The libraries that are imported by this unit.
no setter
isOriginNotExistingFile → bool
Whether the library fragment is created from a file that does not exist.
no setter
libraryExports → List<LibraryExport>
The libraries exported by this unit.
no setter
libraryFragment → LibraryFragment?
The library fragment that contains this fragment.
no setterinherited
libraryImports → List<LibraryImport>
The libraries imported by this unit.
no setter
lineInfo → LineInfo
The LineInfo for the fragment.
no setter
metadata → Metadata
The metadata associated with the fragment.
no setterinherited
mixins → List<MixinFragment>
The fragments of the mixins declared in this fragment.
no setter
name → String?
The name of the fragment.
no setterinherited
nameOffset → int?
The offset of the name of this element.
no setterinherited
nextFragment → LibraryFragment?
The next fragment in the augmentation chain.
no setteroverride
offset → int
If this is the first fragment in the library and the library has library declaration that specifies a name, the offset of the name; otherwise zero.
no setteroverride
partIncludes → List<PartInclude>
The part directives within this fragment.
no setter
prefixes → List<PrefixElement>
The prefixes used by libraryImports.
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
source → Source
The source associated with this fragment.
no setter
topLevelVariables → List<TopLevelVariableFragment>
The fragments of the top-level variables declared in this fragment.
no setter
typeAliases → 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