UnusedIdentifierCheck

Checks for unused variables.

abstract
class UnusedIdentifierCheck : BaseAnalyzer {}

Constructors

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

Members

Aliases

visit
alias visit = BaseAnalyzer.visit
Undocumented in source.

Functions

popScope
void popScope()
Undocumented in source.
pushScope
void pushScope()
Undocumented in source. Be warned that the author may not have intended to support it.
variableDeclared
void variableDeclared(string name, size_t line, size_t column, bool isRef)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(Module mod)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(Declaration declaration)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(FunctionDeclaration functionDec)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(SwitchStatement switchStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(WhileStatement whileStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(DoStatement doStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ForStatement forStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(IfStatement ifStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ForeachStatement foreachStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(AssignExpression assignExp)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TemplateDeclaration templateDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(IdentifierOrTemplateChain chain)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TemplateSingleArgument single)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(UnaryExpression unary)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(MixinExpression mix)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(PrimaryExpression primary)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ReturnStatement retStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(BlockStatement blockStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(Type2 tp)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(WithStatement withStatetement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(StructBody structBody)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ConditionalStatement conditionalStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(AsmPrimaryExp primary)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TraitsExpression )
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TypeofExpression )
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin PartsUseVariables!AliasInitializer
Undocumented in source.
__anonymous
mixin PartsUseVariables!ArgumentList
Undocumented in source.
__anonymous
mixin PartsUseVariables!AssertExpression
Undocumented in source.
__anonymous
mixin PartsUseVariables!ClassDeclaration
Undocumented in source.
__anonymous
mixin PartsUseVariables!FunctionBody
Undocumented in source.
__anonymous
mixin PartsUseVariables!FunctionCallExpression
Undocumented in source.
__anonymous
mixin PartsUseVariables!FunctionDeclaration
Undocumented in source.
__anonymous
mixin PartsUseVariables!IndexExpression
Undocumented in source.
__anonymous
mixin PartsUseVariables!Initializer
Undocumented in source.
__anonymous
mixin PartsUseVariables!InterfaceDeclaration
Undocumented in source.
__anonymous
mixin PartsUseVariables!NewExpression
Undocumented in source.
__anonymous
mixin PartsUseVariables!StaticIfCondition
Undocumented in source.
__anonymous
mixin PartsUseVariables!StructDeclaration
Undocumented in source.
__anonymous
mixin PartsUseVariables!TemplateArgumentList
Undocumented in source.
__anonymous
mixin PartsUseVariables!ThrowStatement
Undocumented in source.
__anonymous
mixin PartsUseVariables!CastExpression
Undocumented in source.

Variables

interestDepth
uint interestDepth;
Undocumented in source.
tree
Tree[] tree;
Undocumented in source.

Inherited Members

From BaseAnalyzer

getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
messages
Message[] messages()
Undocumented in source. Be warned that the author may not have intended to support it.
visit
alias visit = ASTVisitor.visit
Undocumented in source.
visit
void visit(Unittest unittest_)

Visits a unittest.

inAggregate
bool inAggregate;
Undocumented in source.
skipTests
bool skipTests;
Undocumented in source.
visitTemplate
template visitTemplate(T)
Undocumented in source.
addErrorMessage
void addErrorMessage(size_t line, size_t column, string key, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
fileName
string fileName;

The file name

sc
const(Scope)* sc;
Undocumented in source.
_messages
MessageSet _messages;
Undocumented in source.

Meta