UnmodifiedFinder

Checks for variables that could have been declared const or immutable

Constructors

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

Members

Aliases

visit
alias visit = BaseAnalyzer.visit
Undocumented in source.

Functions

visit
void visit(Module mod)
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(StructBody structBody)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(VariableDeclaration dec)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(AutoDeclaration autoDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(AssignExpression assignExpression)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(Declaration dec)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(IdentifierChain ic)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(IdentifierOrTemplateInstance ioti)
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(ForeachStatement foreachStatement)
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.
visit
void visit(AsmStatement a)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin PartsMightModify!AsmPrimaryExp
Undocumented in source.
__anonymous
mixin PartsMightModify!IndexExpression
Undocumented in source.
__anonymous
mixin PartsMightModify!FunctionCallExpression
Undocumented in source.
__anonymous
mixin PartsMightModify!IdentifierOrTemplateChain
Undocumented in source.
__anonymous
mixin PartsMightModify!ReturnStatement
Undocumented in source.

Inherited Members

From BaseAnalyzer

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