UnusedVariableCheck

Checks for unused variables.

Constructors

this
this(string fileName, const(Scope)* sc, bool skipTests)

Members

Aliases

visit
alias visit = UnusedStorageCheck.visit
Undocumented in source.

Functions

visit
void visit(AutoDeclaration autoDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(VariableDeclaration variableDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin AnalyzerInfo!"unused_variable_check"
Undocumented in source.

Inherited Members

From UnusedStorageCheck

visit
alias visit = UnusedIdentifierCheck.visit
Undocumented in source.
ignoreDeclarations
uint ignoreDeclarations;

Ignore declarations which are allowed to be unused, e.g. inside of a speculative compilation: __traits(compiles, { S s = 0; })

publicType
string publicType;

Kind of declaration for error messages e.g. "Variable"

reportType
string reportType;

Kind of declaration for error reports e.g. "unused_variable"

visit
void visit(TraitsExpression traitsExp)
Undocumented in source. Be warned that the author may not have intended to support it.
popScope
void popScope()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta