Skip to content

Commit

Permalink
Expressions in "del" statements should be marked as accessed.
Browse files Browse the repository at this point in the history
  • Loading branch information
msfterictraut committed Jul 19, 2019
1 parent aa5f66e commit 051e32c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/analyzer/typeAnalyzer.ts
Expand Up @@ -1139,6 +1139,7 @@ export class TypeAnalyzer extends ParseTreeWalker {

visitDel(node: DelNode) {
node.expressions.forEach(expr => {
this._markExpressionAccessed(expr);
this._evaluateExpressionForDeletion(expr);

if (expr instanceof NameNode) {
Expand Down

0 comments on commit 051e32c

Please sign in to comment.