UnusedFile class
https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart#L267 The 'unused_file' lint
- Inheritance
- Mixed-in types
Constructors
Properties
- addIgnoreForThisFileFix → bool
-
no setterinherited
- addIgnoreForThisLineFix → bool
-
no setteroverride
-
astVisitor
→ AstVisitor<
void> ? -
if has, do not use use CandiesAnalyzerPlugin.astVisitor CandiesLintsAstVisitor
no setterinherited
- code → String
-
The name, as a string, of the error code associated with this error.
no setteroverride
-
contextMessages
→ List<
DiagnosticMessage> ? -
Additional messages associated with this diagnostic that provide context
to help the user understand the diagnostic.
no setterinherited
- correction → String?
-
The correction message to be displayed for this error. The correction
message should indicate how the user can fix the error. The field is
omitted if there is no correction message associated with the error code.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- importIsUsed → bool
-
whether import means it's used
no setter
- message → String
-
The location associated with the error.
The message to be displayed for this error. The message should indicate
what is wrong with the code and why it is wrong.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → AnalysisErrorSeverity
-
The severity of the error.
no setterinherited
- type → AnalysisErrorType
-
The type of the error.
no setterinherited
- url → String?
-
The URL of a page containing documentation associated with this error.
no setterinherited
Methods
-
accept(
ResolvedUnitResult result, CandiesAnalyzerPluginIgnoreInfo ignoreInfo) → void -
override
-
analyze(
AstNode node) → bool -
inherited
-
astNodeToLocation(
ResolvedUnitResult result, SyntacticEntity node) → Location -
inherited
-
clearCacheErrors(
String path) → List< DartAnalysisError> ? -
inherited
-
getAllCacheErrors(
) → Iterable< DartAnalysisError> -
inherited
-
getCacheErrors(
String path) → List< DartAnalysisError> ? -
inherited
-
getDartFix(
{required ResolvedUnitResult resolvedUnitResult, required String message, required void buildDartFileEdit(DartFileEditBuilder builder), ImportPrefixGenerator? importPrefixGenerator}) → Future< SourceChange> -
inherited
-
getDartFixes(
ResolvedUnitResult resolvedUnitResult, AstNode astNode) → Future< List< SourceChange> > -
Quick fix for lint
inherited
-
handleError(
CandiesAnalyzerPlugin plugin, {AnalysisContext? analysisContext}) → Future< void> -
override
-
ignoreFile(
ResolvedUnitResult result) → bool -
if you want to ignore analysis this file
inherited
-
ignoreForThisFile(
{required ResolvedUnitResult resolvedUnitResult, required CandiesAnalyzerPluginIgnoreInfo ignore, bool formatAll = true}) → Future< SourceChange> -
inherited
-
ignoreForThisLine(
{required ResolvedUnitResult resolvedUnitResult, required CandiesAnalyzerPluginIgnoreInfo ignore, required Location location, required String code, bool formatAll = true}) → Future< SourceChange> -
inherited
-
ignoreLint(
SyntacticEntity offset, AstNode node) → bool -
if you want to ignore this error
inherited
-
matchLint(
AstNode node) → SyntacticEntity? -
call this if DartLint.astVisitor is null
and use CandiesAnalyzerPlugin.astVisitor CandiesLintsAstVisitor
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reportLint(
SyntacticEntity offset, AstNode node) → void -
report lint if you use DartLint.astVisitor
inherited
-
toAnalysisError(
CandiesAnalyzerPluginConfig config, String path) → AnalysisError -
toAnalysisErrorFixes(
{required DartAnalysisError error}) → Future< AnalysisErrorFixes> -
inherited
-
toDartAnalysisError(
{required ResolvedUnitResult result, required Location location, required AstNode astNode, required CandiesAnalyzerPluginIgnoreInfo ignoreInfo, required CandiesAnalyzerPluginConfig? config}) → DartAnalysisError -
inherited
-
toDartAnalysisErrorFixesStream(
{required EditGetFixesParams parameters, required AnalysisContext analysisContext}) → Stream< AnalysisErrorFixes> -
override
-
toDartAnalysisErrors(
{required ResolvedUnitResult result, required CandiesAnalyzerPluginIgnoreInfo ignoreInfo, required CandiesAnalyzerPluginConfig? config}) → List< DartAnalysisError> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited