Skip to content

Commit

Permalink
inline pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
IXLLEGACYIXL committed Jan 15, 2024
1 parent 84c1376 commit 4e81a8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ private static void AnalyzeSymbol(SymbolAnalysisContext context, INamedTypeSymbo
// Check if the type has the specified DataContractAttribute through inheritance
if (type.TryGetAttribute(dataContractAttribute,out var datacontractData) && datacontractData.AttributeConstructor is not null)
{
if (datacontractData is { NamedArguments: [.., { Key: "Inherited" } ], NamedArguments: [..,{ Value: TypedConstant inherited }] })
if (datacontractData is { NamedArguments: [.., { Key: "Inherited" , Value: TypedConstant inherited } ] })
{
isInherited = (bool)inherited.Value!;
}
}
break;
}
type = type.BaseType;
Expand Down

0 comments on commit 4e81a8f

Please sign in to comment.