6 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 (5)
ComInterfaceMarshallingInfoProvider.cs (1)
24
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.GeneratedComInterfaceAttribute;
MarshalAsParser.cs (1)
131
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute;
MarshalAsWithCustomMarshallersParser.cs (1)
35
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;
NativeMarshallingAttributeParser.cs (1)
20
public bool
CanParseAttributeType
(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.NativeMarshallingAttribute;
1 reference to CanParseAttributeType
Microsoft.Interop.SourceGeneration (1)
MarshallingInfoParser.cs (1)
261
if (attribute.AttributeConstructor is not null && parser.
CanParseAttributeType
(attribute.AttributeClass))