1 write to TargetNode
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
50TargetNode = targetNode;
38 references to TargetNode
Microsoft.CodeAnalysis (2)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (2)
30/// Semantic model for the file that <see cref="TargetNode"/> is contained within. 72/// cref="GeneratorAttributeSyntaxContext.TargetNode"/>) should be transformed. Nodes that do not pass this
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
821(context, _) => (ClassDeclarationSyntax)context.TargetNode);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (10)
37(context, cancellationToken) => (T)context.TargetNode); 1033return (ClassDeclarationSyntax)ctx.TargetNode; 1070return (ClassDeclarationSyntax)ctx.TargetNode; 1108return (ClassDeclarationSyntax)ctx.TargetNode; 1146return (ClassDeclarationSyntax)ctx.TargetNode; 1184return (ClassDeclarationSyntax)ctx.TargetNode; 1222return (ClassDeclarationSyntax)ctx.TargetNode; 1456return (ClassDeclarationSyntax)context.TargetNode; 1504return (ClassDeclarationSyntax)context.TargetNode; 1577return (ClassDeclarationSyntax)context.TargetNode;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (10)
32Function(ctx, c) DirectCast(ctx.TargetNode, T)) 673Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 710Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 747Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 784Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 821Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 858Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 938Return DirectCast(context.TargetNode, ClassStatementSyntax) 991Return DirectCast(context.TargetNode, ClassStatementSyntax) 1070Return DirectCast(context.TargetNode, ClassStatementSyntax)
Microsoft.Extensions.Options.SourceGeneration (1)
Generator.cs (1)
24(context, _) => (TypeSyntax:context.TargetNode as TypeDeclarationSyntax, SemanticModel: context.SemanticModel))
Microsoft.Gen.ContextualOptions (1)
ContextualOptionsGenerator.cs (1)
22(context, _) => context.TargetNode);
Microsoft.Gen.Logging (1)
LoggingGenerator.cs (1)
23(context, _) => (TypeDeclarationSyntax)context.TargetNode.Parent!);
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
34var syntax = (ClassDeclarationSyntax)context.TargetNode;
ComInterfaceGenerator.cs (1)
43? new { Syntax = (InterfaceDeclarationSyntax)context.TargetNode, Symbol = interfaceSymbol }
VtableIndexStubGenerator.cs (1)
43? new { Syntax = (MethodDeclarationSyntax)context.TargetNode, Symbol = methodSymbol }
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
43static (context, ct) => new { Syntax = (MethodDeclarationSyntax)context.TargetNode, Symbol = (IMethodSymbol)context.TargetSymbol });
JSImportGenerator.cs (1)
44static (context, ct) => new { Syntax = (MethodDeclarationSyntax)context.TargetNode, Symbol = (IMethodSymbol)context.TargetSymbol });
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
48? new { Syntax = (MethodDeclarationSyntax)context.TargetNode, Symbol = methodSymbol }
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
47? new { Syntax = (MethodDeclarationSyntax)context.TargetNode, Symbol = methodSymbol }
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Parser.cs (1)
21var classDef = (ClassDeclarationSyntax)context.TargetNode;
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
41(context, _) => (ContextClass: (ClassDeclarationSyntax)context.TargetNode, context.SemanticModel))
System.Text.RegularExpressions.Generator (3)
RegexGenerator.Parser.cs (3)
29if (context.TargetNode is IndexerDeclarationSyntax or AccessorDeclarationSyntax) 35return new DiagnosticData(DiagnosticDescriptors.RegexMemberMustHaveValidSignature, GetComparableLocation(context.TargetNode)); 38var memberSyntax = (MemberDeclarationSyntax)context.TargetNode;