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
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  convertAnalysisError(Diagnostic diagnostic, {LineInfo? lineInfo, DiagnosticSeverity? severity}) → AnalysisError 
- 
  Converts the analysis diagnosticfrom the 'analyzer' package to an analysis error defined by the plugin API.
- 
  convertAnalysisErrors(List< Diagnostic> diagnostics, {LineInfo? lineInfo, AnalysisOptions? options}) → List<AnalysisError> 
- 
  Converts the list of analysis diagnosticsfrom the 'analyzer' package to a list of analysis errors defined by the plugin API.
- 
  convertDiagnosticMessage(DiagnosticMessage message, {LineInfo? lineInfo}) → DiagnosticMessage 
- 
  Convert the diagnostic messagefrom the 'analyzer' package to an analysis error defined by the plugin API. If alineInfois provided then the error's location will have a start line and start column.
- 
  convertElement(Element element) → Element 
- 
  convertElementKind(ElementKind kind) → ElementKind 
- 
  Convert the element kindfrom the 'analyzer' package to an element kind defined by the plugin API.
- 
  convertElementToElementKind(Element element) → ElementKind 
- 
  Return an ElementKind corresponding to the given analyzer.Element.
- 
  convertErrorSeverity(DiagnosticSeverity severity) → AnalysisErrorSeverity 
- 
  Convert the error severityfrom the 'analyzer' package to an analysis error severity defined by the plugin API.
- 
  convertErrorType(DiagnosticType type) → AnalysisErrorType 
- 
  Convert the error typefrom the 'analyzer' package to an analysis error type defined by the plugin API.
- 
  getElementDisplayName(Element element) → String 
- 
  newLocation_fromElement(Element? element) → Location? 
- 
  Create a Location based on an analyzer.Element.
- 
  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