1 write to TargetNode
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
50TargetNode = targetNode;
32 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)
806(context, _) => (ClassDeclarationSyntax)context.TargetNode);
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)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
31(context, _) => context.TargetNode.Parent as ClassDeclarationSyntax)
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)
42? 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)
41static (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.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;