9 instantiations of ContainingSyntax
Microsoft.Interop.ComInterfaceGenerator (5)
ComClassInfo.cs (1)
67new ContainingSyntax(syntax.Modifiers, syntax.Kind(), syntax.Identifier, syntax.TypeParameterList),
ComInterfaceGenerator.cs (1)
369var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
ComInterfaceInfo.cs (1)
104new ContainingSyntax(syntax.Modifiers, syntax.Kind(), syntax.Identifier, syntax.TypeParameterList),
VtableIndexStubGenerator.cs (2)
29private static readonly ContainingSyntax NativeTypeContainingSyntax = new( 286var methodSyntaxTemplate = new ContainingSyntax(syntax.Modifiers.StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
206var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
JSImportGenerator.cs (1)
186var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
310var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
216var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
26 references to ContainingSyntax
Microsoft.Interop.ComInterfaceGenerator (10)
ComClassGenerator.cs (1)
69private static MemberDeclarationSyntax GenerateClassInfoAttributeOnUserType(ContainingSyntaxContext containingSyntaxContext, ContainingSyntax classSyntax) =>
ComClassInfo.cs (2)
15public ContainingSyntax ClassSyntax { get; init; } 18private ComClassInfo(string className, ContainingSyntaxContext containingSyntaxContext, ContainingSyntax classSyntax, SequenceEqualImmutableArray<string> implementedInterfacesNames)
ComInterfaceGenerator.cs (1)
369var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
ComInterfaceInfo.cs (2)
27public ContainingSyntax ContainingSyntax { get; init; } 39ContainingSyntax containingSyntax,
IncrementalMethodStubGenerationContext.cs (1)
15ContainingSyntax StubMethodSyntaxTemplate,
VirtualMethodPointerStubGenerator.cs (1)
116ContainingSyntax stubMethodSyntax,
VtableIndexStubGenerator.cs (2)
29private static readonly ContainingSyntax NativeTypeContainingSyntax = new( 286var methodSyntaxTemplate = new ContainingSyntax(syntax.Modifiers.StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (2)
24ContainingSyntax StubMethodSyntaxTemplate, 206var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
JSImportGenerator.cs (3)
24ContainingSyntax StubMethodSyntaxTemplate, 107ContainingSyntax userDeclaredMethod, 186var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator (4)
LibraryImportGenerator.cs (4)
26ContainingSyntax StubMethodSyntaxTemplate, 174ContainingSyntax userDeclaredMethod, 310var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList); 382private static MemberDeclarationSyntax PrintForwarderStub(ContainingSyntax userDeclaredMethod, bool explicitForwarding, IncrementalStubGenerationContext stub, GeneratorDiagnosticsBag diagnostics)
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (4)
26ContainingSyntax StubMethodSyntaxTemplate, 116ContainingSyntax userDeclaredMethod, 216var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.MethodDeclaration, originalSyntax.Identifier, originalSyntax.TypeParameterList); 276private static MemberDeclarationSyntax PrintForwarderStub(ContainingSyntax userDeclaredMethod, IncrementalStubGenerationContext stub, GeneratorDiagnosticsBag diagnostics)
Microsoft.Interop.SourceGeneration (3)
ContainingSyntaxContext.cs (3)
15public readonly struct ContainingSyntax(SyntaxTokenList modifiers, SyntaxKind typeKind, SyntaxToken identifier, TypeParameterListSyntax? typeParameters) : IEquatable<ContainingSyntax> 25public override bool Equals(object obj) => obj is ContainingSyntax other && Equals(other); 27public bool Equals(ContainingSyntax other)