53 references to TypeSyntaxes
Microsoft.Interop.ComInterfaceGenerator (32)
ComClassGenerator.cs (9)
86
.AddBaseListTypes(SimpleBaseType(
TypeSyntaxes
.IComExposedClass))
90
PointerType(
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceEntry),
100
PointerType(
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceEntry),
103
PointerType(
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceEntry),
105
TypeSyntaxes
.System_Runtime_CompilerServices_RuntimeHelpers,
111
SizeOfExpression(
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceEntry),
117
Declare(
TypeSyntaxes
.IIUnknownDerivedDetails, detailsTempLocal, initializeToDefault: false)
128
TypeSyntaxes
.StrategyBasedComWrappers
191
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceEntry),
ComInterfaceGenerator.cs (16)
517
private static readonly MethodDeclarationSyntax CreateManagedVirtualFunctionTableMethodTemplate = MethodDeclaration(
TypeSyntaxes
.VoidStarStar, CreateManagedVirtualFunctionTableMethodName)
533
TypeSyntaxes
.VoidStarStar,
535
CastExpression(
TypeSyntaxes
.VoidStarStar,
537
TypeSyntaxes
.System_Runtime_CompilerServices_RuntimeHelpers,
543
SizeOfExpression(
TypeSyntaxes
.VoidStar),
563
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers,
573
CastExpression(
TypeSyntaxes
.VoidStar, IdentifierName("v0"))),
579
CastExpression(
TypeSyntaxes
.VoidStar, IdentifierName("v1"))),
585
CastExpression(
TypeSyntaxes
.VoidStar, IdentifierName("v2"))));
592
TypeSyntaxes
.System_Runtime_InteropServices_NativeMemory,
596
TypeSyntaxes
.StrategyBasedComWrappers
632
.AddBaseListTypes(SimpleBaseType(
TypeSyntaxes
.IIUnknownInterfaceType));
639
PropertyDeclaration(
TypeSyntaxes
.System_Guid, "Iid")
655
FieldDeclaration(VariableDeclaration(
TypeSyntaxes
.VoidStarStar, SingletonSeparatedList(VariableDeclarator(vtableFieldName))))
658
PropertyDeclaration(
TypeSyntaxes
.VoidStarStar, "ManagedVirtualMethodTable")
677
PropertyDeclaration(
TypeSyntaxes
.VoidStarStar, "ManagedVirtualMethodTable")
ComMethodContext.cs (1)
119
TypeSyntaxes
.UnreachableException)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
55
TypeSyntaxes
.System_Runtime_InteropServices_ComWrappers_ComInterfaceDispatch,
Marshallers\KeepAliveThisMarshaller.cs (1)
27
TypeSyntaxes
.System_GC,
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
51
TypeSyntaxes
.System_Runtime_InteropServices_Marshal,
Marshallers\ObjectUnwrapperResolver.cs (1)
51
TypeSyntaxes
.UnmanagedObjectUnwrapper,
VirtualMethodPointerStubGenerator.cs (2)
62
TypeSyntaxes
.IUnmanagedVirtualMethodTableProvider,
161
methodStub.CallingConvention.Array.Select(callConv => TypeOfExpression(
TypeSyntaxes
.CallConv(callConv.Name.ValueText)))))))
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
136
ArrayTypeSyntax arrayOfSystemType = ArrayType(
TypeSyntaxes
.System_Type, SingletonList(ArrayRankSpecifier()));
152
CastExpression(
TypeSyntaxes
.DllImportSearchPath,
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
98
CastExpression(
TypeSyntaxes
.DllImportSearchPath,
Microsoft.Interop.SourceGeneration (18)
GeneratedStatements.cs (1)
170
CatchDeclaration(
TypeSyntaxes
.System_Exception, Identifier(managed)),
MarshalAsParser.cs (3)
49
CastExpression(
TypeSyntaxes
.System_Runtime_InteropServices_UnmanagedType,
78
CastExpression(
TypeSyntaxes
.System_Runtime_InteropServices_UnmanagedType,
88
AttributeArgument(CastExpression(
TypeSyntaxes
.System_Runtime_InteropServices_UnmanagedType,
Marshalling\DelegateMarshaller.cs (2)
51
TypeSyntaxes
.System_Runtime_InteropServices_Marshal,
69
TypeSyntaxes
.System_Runtime_InteropServices_Marshal,
Marshalling\ElementsMarshalling.cs (5)
155
TypeSyntaxes
.System_Runtime_InteropServices_MemoryMarshal,
159
TypeSyntaxes
.System_Runtime_InteropServices_MemoryMarshal,
191
TypeSyntaxes
.System_Runtime_InteropServices_MemoryMarshal,
195
TypeSyntaxes
.System_Runtime_InteropServices_MemoryMarshal,
233
TypeSyntaxes
.System_Runtime_InteropServices_MemoryMarshal,
Marshalling\MarshallerHelpers.cs (6)
16
public static readonly TypeSyntax SystemIntPtrType =
TypeSyntaxes
.System_IntPtr;
36
spanElementTypeSyntax =
TypeSyntaxes
.System_IntPtr;
47
TypeSyntaxes
.System_Runtime_InteropServices_Marshal,
55
AssignmentStatement(IdentifierName(lastErrorIdentifier), MethodInvocation(
TypeSyntaxes
.System_Runtime_InteropServices_Marshal, IdentifierName("GetLastSystemError")));
62
MethodInvocationStatement(
TypeSyntaxes
.System_Runtime_InteropServices_Marshal, IdentifierName("SetLastPInvokeError"), Argument(IdentifierName(lastErrorIdentifier)));
269
MethodInvocation(
TypeSyntaxes
.System_Runtime_CompilerServices_Unsafe, IdentifierName("SkipInit"),
Marshalling\StatefulMarshallingStrategy.cs (1)
157
TypeSyntaxes
.VoidStar,