Skip to content

Commit eb50bc9

Browse files
committed
Fix #270
1 parent 0d6484c commit eb50bc9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/analysis/unmodified.d

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ class UnmodifiedFinder:BaseAnalyzer
155155

156156
override void visit(const TraitsExpression)
157157
{
158-
// Issue #266. Ignore everything inside of __traits expressions.
158+
// issue #266: Ignore unmodified variables inside of `__traits` expressions
159+
}
160+
161+
override void visit(const TypeofExpression)
162+
{
163+
// issue #270: Ignore unmodified variables inside of `typeof` expressions
159164
}
160165

161166
private:

src/analysis/unused.d

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,12 @@ class UnusedVariableCheck : BaseAnalyzer
318318

319319
override void visit(const TraitsExpression)
320320
{
321-
// Issue #266. Ignore everything inside of __traits expressions.
321+
// issue #266: Ignore unused variables inside of `__traits` expressions
322+
}
323+
324+
override void visit(const TypeofExpression)
325+
{
326+
// issue #270: Ignore unused variables inside of `typeof` expressions
322327
}
323328

324329
private:

0 commit comments

Comments
 (0)