Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix/MissingByRefArg…
Browse files Browse the repository at this point in the history
…ument/1

# Conflicts:
#	Tests/CSharp/MemberTests/MemberTests.cs
  • Loading branch information
GrahamTheCoder committed Jul 22, 2024
2 parents 785ee54 + cf2d4aa commit 96bfdb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CodeConverter/CSharp/ExpressionNodeVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,9 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
if (symbolInfo is IPropertySymbol propertySymbol) {
return propertySymbol.IsReadOnly ? RefConversion.PreAssigment : RefConversion.PreAndPostAssignment;
}
else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
return RefConversion.PreAssigment;
}

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

Expand Down

0 comments on commit 96bfdb7

Please sign in to comment.