ResolvedUnitResult class abstract

The result of building a resolved AST for a single file. The errors returned include both syntactic and semantic errors.

Clients may not extend, implement or mix-in this class.

Implemented types

Constructors

ResolvedUnitResult()

Properties

content String
The content of the file that was scanned, parsed and resolved.
no setter
errors List<AnalysisError>
The analysis errors that were computed during analysis.
no setterinherited
exists bool
Return true if the file exists.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAugmentation bool
Whether the file is a library augmentation. When true, isLibrary and isPart are false.
no setterinherited
isLibrary bool
Whether the file is a library. When true, isAugmentation and isPart are false.
no setterinherited
isPart bool
Whether the file is a part. When true, isAugmentation and isLibrary are false.
no setterinherited
libraryElement LibraryElement
The element representing the library containing the compilation unit.
no setter
lineInfo LineInfo
Information about lines in the content.
no setterinherited
path String
The absolute and normalized path of the file that was analyzed.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session AnalysisSession
Return the session used to compute this result.
no setterinherited
typeProvider TypeProvider
The type provider used when resolving the compilation unit.
no setter
typeSystem TypeSystem
The type system used when resolving the compilation unit.
no setter
unit CompilationUnit
The fully resolved compilation unit for the content.
no setter
uri Uri
The absolute URI of the file that was analyzed.
no setterinherited

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