Skip to content

Commit

Permalink
Always use RefConversion.PreAssigment for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Kelman authored and Timur Kelman committed Jul 24, 2024
1 parent 9e06c20 commit 41bda28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CodeConverter/CSharp/ExpressionNodeVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,8 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
}
else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
return RefConversion.PreAssigment;
} else if (symbolInfo is IMethodSymbol) {
return RefConversion.PreAssigment;
}

if (DeclaredInUsing(symbolInfo)) return RefConversion.PreAssigment;
Expand Down

0 comments on commit 41bda28

Please sign in to comment.