1 write to TargetNode
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
50TargetNode = targetNode;
16 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.Semantic.UnitTests (7)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (7)
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;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (7)
31Function(ctx, c) DirectCast(ctx.TargetNode, T)) 672Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 709Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 746Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 783Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 820Return DirectCast(ctx1.TargetNode, ClassStatementSyntax) 857Return DirectCast(ctx1.TargetNode, ClassStatementSyntax)