Skip to content

Commit

Permalink
use tighter pattern matching syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Kelman authored and Timur Kelman committed Jul 22, 2024
1 parent a265518 commit 19b0a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeConverter/CSharp/ExpressionNodeVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ RefConversion GetRefConversion(VBSyntax.ExpressionSyntax expression)
if (symbolInfo is IPropertySymbol propertySymbol) {
return propertySymbol.IsReadOnly ? RefConversion.PreAssigment : RefConversion.PreAndPostAssignment;
}
else if (symbolInfo is IFieldSymbol { IsConst: true } || symbolInfo is ILocalSymbol { IsConst: true }) {
else if (symbolInfo is IFieldSymbol { IsConst: true } or ILocalSymbol { IsConst: true }) {
return RefConversion.PreAssigment;
}

Expand Down

0 comments on commit 19b0a5c

Please sign in to comment.