mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-27 13:50:02 +03:00
Fix #266
This commit is contained in:
parent
0d80bcf5e3
commit
066c44070e
2 changed files with 10 additions and 0 deletions
|
@ -153,6 +153,11 @@ class UnmodifiedFinder:BaseAnalyzer
|
|||
foreachStatement.declarationOrStatement.accept(this);
|
||||
}
|
||||
|
||||
override void visit(const TraitsExpression)
|
||||
{
|
||||
// Issue #266. Ignore everything inside of __traits expressions.
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
template PartsMightModify(T)
|
||||
|
|
|
@ -316,6 +316,11 @@ class UnusedVariableCheck : BaseAnalyzer
|
|||
variableUsed(primary.identifierChain.identifiers[0].text);
|
||||
}
|
||||
|
||||
override void visit(const TraitsExpression)
|
||||
{
|
||||
// Issue #266. Ignore everything inside of __traits expressions.
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
mixin template PartsUseVariables(NodeType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue