PerferClassPrefix class
The 'perfer_class_prefix' lint
Constructors
- PerferClassPrefix(String prefix)
Properties
- 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
- 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
- prefix → String
-
final
- 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 setteroverride
Methods
-
analyze(
AstNode node) → bool -
inherited
-
astNodeToLocation(
ResolvedUnitResult result, SyntacticEntity node) → Location -
inherited
-
clearCacheErrors(
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
override
-
ignoreForThisFile(
{required ResolvedUnitResult resolvedUnitResult, required CandiesLintsIgnoreInfo ignore}) → Future< SourceChange> -
inherited
-
ignoreForThisLine(
{required ResolvedUnitResult resolvedUnitResult, required CandiesLintsIgnoreInfo ignore, required Location location, required String code}) → Future< SourceChange> -
inherited
-
matchLint(
AstNode node) → SyntacticEntity? -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAnalysisErrorFixes(
{required DartAnalysisError error}) → Future< AnalysisErrorFixes> -
inherited
-
toDartAnalysisError(
{required ResolvedUnitResult result, required Location location, required AstNode astNode, required CandiesLintsIgnoreInfo ignoreInfo, required CandiesLintsConfig? config}) → DartAnalysisError -
inherited
-
toDartAnalysisErrorFixesStream(
{required EditGetFixesParams parameters}) → Stream< AnalysisErrorFixes> -
inherited
-
toDartAnalysisErrors(
{required ResolvedUnitResult result, required CandiesLintsIgnoreInfo ignoreInfo, required CandiesLintsConfig? config}) → Iterable< DartAnalysisError> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited