Skip to content

Commit 41bda28

Browse files
Timur KelmanTimur Kelman
authored andcommitted
Always use RefConversion.PreAssigment for methods
1 parent 9e06c20 commit 41bda28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CodeConverter/CSharp/ExpressionNodeVisitor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,8 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
18911891
}
18921892
else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
18931893
return RefConversion.PreAssigment;
1894+
} else if (symbolInfo is IMethodSymbol) {
1895+
return RefConversion.PreAssigment;
18941896
}
18951897

18961898
if (DeclaredInUsing(symbolInfo)) return RefConversion.PreAssigment;

0 commit comments

Comments
 (0)