Skip to content

Commit

Permalink
give switch mini facelift
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jun 12, 2024
1 parent 60023df commit 58d6c92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected LiveVariableAnalysisBase(TCfg cfg, ISymbol originalDeclaration, Cancel
{
Cfg = cfg;
this.originalDeclaration = originalDeclaration;
this.Cancel = cancel;
Cancel = cancel;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public void ProcessBlock(Block block)
ProcessVariableDeclarator((VariableDeclaratorSyntax)instruction);
break;

case SyntaxKind.AnonymousMethodExpression:
case SyntaxKind.ParenthesizedLambdaExpression:
case SyntaxKind.SimpleLambdaExpression:
case SyntaxKind.QueryExpression:
case SyntaxKind.AnonymousMethodExpression
or SyntaxKind.ParenthesizedLambdaExpression
or SyntaxKind.SimpleLambdaExpression
or SyntaxKind.QueryExpression:
CollectAllCapturedLocal(instruction);
break;
}
Expand Down

0 comments on commit 58d6c92

Please sign in to comment.