3 implementations of CanParseAttributeType
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSMarshalAsAttributeInfoParser.cs (1)
21
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.IsGenericType && SymbolEqualityComparer.Default.Equals(_jsMarshalAsAttribute, attributeType.ConstructUnboundGenericType());
Microsoft.Interop.SourceGeneration (2)
MarshalAsParser.cs (1)
131
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute;
MarshalUsingAttributeParser.cs (1)
26
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.MarshalUsingAttribute;
1 reference to CanParseAttributeType
Microsoft.Interop.SourceGeneration (1)
UseSiteAttributeProvider.cs (1)
64
if (attribute.AttributeConstructor is not null && parser.
CanParseAttributeType
(attribute.AttributeClass))