53 references to Syntax
Microsoft.Interop.ComInterfaceGenerator (13)
AttributeInfo.cs (1)
19
return Attribute((NameSyntax)Type.
Syntax
, AttributeArgumentList(SeparatedList(Arguments.Select(arg => AttributeArgument(ParseExpression(arg))))));
ComInterfaceGenerator.cs (2)
491
.AddBaseListTypes(SimpleBaseType(definingType.
Syntax
))
539
Argument(TypeOfExpression(interfaceType.
Syntax
)),
ComMethodContext.cs (1)
141
CastExpression(OriginalDeclaringInterface.Info.Type.
Syntax
, IdentifierName("this"))),
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
58
TypeArgumentList(SingletonSeparatedList(info.ManagedType.
Syntax
)))),
Marshallers\ObjectUnwrapperResolver.cs (1)
49
info.ManagedType.
Syntax
,
Marshallers\StructAsHResultMarshallerFactory.cs (4)
50
info.ManagedType.
Syntax
,
51
AsNativeType(info).
Syntax
68
AsNativeType(info).
Syntax
,
69
info.ManagedType.
Syntax
VirtualMethodPointerStubGenerator.cs (3)
65
Argument(TypeOfExpression(methodStub.TypeKeyOwner.
Syntax
)))),
86
Debug.Assert(methodStub.TypeKeyOwner.
Syntax
is NameSyntax);
93
.WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier((NameSyntax)methodStub.TypeKeyOwner.
Syntax
)),
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSExportCodeGenerator.cs (1)
179
statementsToUpdate.Add(LocalDeclarationStatement(VariableDeclaration(marshaller.TypeInfo.ManagedType.
Syntax
)
Microsoft.Interop.SourceGeneration (39)
ManagedTypeInfo.cs (2)
21
&&
Syntax
.IsEquivalentTo(other.
Syntax
)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (18)
170
marshallingStrategy = new StatefulCallerAllocatedBufferMarshalling(marshallingStrategy, marshallerData.MarshallerType.
Syntax
, marshallerData.BufferElementType.
Syntax
);
174
marshallingStrategy = new StatelessValueMarshalling(info, context, marshallerData.MarshallerType.
Syntax
, marshallerData.NativeType, marshallerData.Shape);
176
marshallingStrategy = new StatelessCallerAllocatedBufferMarshalling(marshallingStrategy, marshallerData.MarshallerType.
Syntax
, marshallerData.BufferElementType.
Syntax
, isLinearCollectionMarshalling: false);
187
marshallingStrategy = new StatelessFreeMarshalling(marshallingStrategy, marshallerData.MarshallerType.
Syntax
);
200
marshallingGenerator = new StaticPinnableManagedValueMarshaller(marshallingGenerator, marshallerData.MarshallerType.
Syntax
);
242
TypeSyntax unmanagedElementType = elementMarshaller.NativeType.
Syntax
.GetCompatibleGenericTypeParameterSyntax();
244
TypeSyntax marshallerTypeSyntax = ReplacePlaceholderSyntaxWithUnmanagedTypeSyntax(marshallerType.
Syntax
, marshalInfo, unmanagedElementType);
250
string newNativeTypeName = ReplacePlaceholderSyntaxWithUnmanagedTypeSyntax(marshallerData.NativeType.
Syntax
, marshalInfo, unmanagedElementType).ToFullString();
266
TypeSyntax bufferElementTypeSyntax = marshallerData.BufferElementType.
Syntax
.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.
Syntax
)
268
: marshallerData.BufferElementType.
Syntax
;
312
TypeSyntax bufferElementTypeSyntax = marshallerData.BufferElementType.
Syntax
.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.
Syntax
)
314
: marshallerData.BufferElementType.
Syntax
;
399
elementsMarshalling = new BlittableElementsMarshalling(marshallerData.CollectionElementType.
Syntax
, unmanagedElementType, collectionSource);
414
originalTypeSyntax.DescendantNodesAndSelf().OfType<TypeSyntax>().Where(t => t.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.
Syntax
)),
Marshalling\BlittableMarshaller.cs (1)
50
PointerType(AsNativeType(info).
Syntax
),
Marshalling\BoolMarshaller.cs (1)
67
AsNativeType(info).
Syntax
,
Marshalling\CharMarshaller.cs (2)
70
VariableDeclaration(PointerType(AsNativeType(info).
Syntax
),
75
PointerType(AsNativeType(info).
Syntax
),
Marshalling\DelegateMarshaller.cs (1)
74
info.ManagedType.
Syntax
))),
Marshalling\MarshallingGeneratorExtensions.cs (6)
24
SignatureBehavior.ManagedTypeAndAttributes => generator.TypeInfo.ManagedType.
Syntax
,
25
SignatureBehavior.NativeType => generator.NativeType.
Syntax
,
26
SignatureBehavior.PointerToNativeType => PointerType(generator.NativeType.
Syntax
),
98
SignatureBehavior.NativeType => generator.NativeType.
Syntax
,
99
SignatureBehavior.PointerToNativeType => PointerType(generator.NativeType.
Syntax
),
108
.WithType(info.ManagedType.
Syntax
);
Marshalling\StatelessMarshallingStrategy.cs (1)
84
CastExpression(ptrType.
Syntax
, convertToUnmanaged));
SignatureContext.cs (1)
46
.WithType(typeInfo.ManagedType.
Syntax
)
VariableDeclarations.cs (6)
63
marshaller.TypeInfo.ManagedType.
Syntax
,
72
marshaller.NativeType.
Syntax
,
123
marshaller.TypeInfo.ManagedType.
Syntax
,
130
marshaller.NativeType.
Syntax
,
146
TypeSyntax localType = marshaller.NativeType.
Syntax
;
170
marshaller.TypeInfo.ManagedType.
Syntax
,