AnalyzerConverter class

An object used to convert between objects defined by the 'analyzer' package and those defined by the plugin protocol.

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

Constructors

AnalyzerConverter()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

convertAnalysisError(AnalysisError error, { LineInfo lineInfo, ErrorSeverity severity }) AnalysisError
Convert the analysis error from the 'analyzer' package to an analysis error defined by the plugin API. If a lineInfo is provided then the error's location will have a start line and start column. If a severity is provided, then it will override the severity defined by the error.
convertAnalysisErrors(List<AnalysisError> errors, { LineInfo lineInfo, AnalysisOptions options }) → List<AnalysisError>
Convert the list of analysis errors from the 'analyzer' package to a list of analysis errors defined by the plugin API. If a lineInfo is provided then the resulting errors locations will have a start line and start column. If an analysis options is provided then the severities of the errors will be altered based on those options.
convertElement(Element element) Element
Convert the given element from the 'analyzer' package to an element defined by the plugin API.
convertElementKind(ElementKind kind) ElementKind
Convert the element kind from the 'analyzer' package to an element kind defined by the plugin API. [...]
convertErrorSeverity(ErrorSeverity severity) AnalysisErrorSeverity
Convert the error severity from the 'analyzer' package to an analysis error severity defined by the plugin API.
convertErrorType(ErrorType type) AnalysisErrorType
Convert the error type from the 'analyzer' package to an analysis error type defined by the plugin API.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited