Fix #270
This commit is contained in:
parent
0d6484c6af
commit
eb50bc9e18
|
@ -155,7 +155,12 @@ class UnmodifiedFinder:BaseAnalyzer
|
||||||
|
|
||||||
override void visit(const TraitsExpression)
|
override void visit(const TraitsExpression)
|
||||||
{
|
{
|
||||||
// Issue #266. Ignore everything inside of __traits expressions.
|
// issue #266: Ignore unmodified variables inside of `__traits` expressions
|
||||||
|
}
|
||||||
|
|
||||||
|
override void visit(const TypeofExpression)
|
||||||
|
{
|
||||||
|
// issue #270: Ignore unmodified variables inside of `typeof` expressions
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -318,7 +318,12 @@ class UnusedVariableCheck : BaseAnalyzer
|
||||||
|
|
||||||
override void visit(const TraitsExpression)
|
override void visit(const TraitsExpression)
|
||||||
{
|
{
|
||||||
// Issue #266. Ignore everything inside of __traits expressions.
|
// issue #266: Ignore unused variables inside of `__traits` expressions
|
||||||
|
}
|
||||||
|
|
||||||
|
override void visit(const TypeofExpression)
|
||||||
|
{
|
||||||
|
// issue #270: Ignore unused variables inside of `typeof` expressions
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue