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