1 write to TargetNode
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
50
TargetNode
= targetNode;
31 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
);
1033
return (ClassDeclarationSyntax)ctx.
TargetNode
;
1070
return (ClassDeclarationSyntax)ctx.
TargetNode
;
1108
return (ClassDeclarationSyntax)ctx.
TargetNode
;
1146
return (ClassDeclarationSyntax)ctx.
TargetNode
;
1184
return (ClassDeclarationSyntax)ctx.
TargetNode
;
1222
return (ClassDeclarationSyntax)ctx.
TargetNode
;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (7)
31
Function(ctx, c) DirectCast(ctx.
TargetNode
, T))
672
Return DirectCast(ctx1.
TargetNode
, ClassStatementSyntax)
709
Return DirectCast(ctx1.
TargetNode
, ClassStatementSyntax)
746
Return DirectCast(ctx1.
TargetNode
, ClassStatementSyntax)
783
Return DirectCast(ctx1.
TargetNode
, ClassStatementSyntax)
820
Return DirectCast(ctx1.
TargetNode
, ClassStatementSyntax)
857
Return DirectCast(ctx1.
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)
34
var 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)
43
static (context, ct) => new { Syntax = (MethodDeclarationSyntax)context.
TargetNode
, Symbol = (IMethodSymbol)context.TargetSymbol });
JSImportGenerator.cs (1)
41
static (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)
21
var classDef = (ClassDeclarationSyntax)context.
TargetNode
;
System.Text.RegularExpressions.Generator (3)
RegexGenerator.Parser.cs (3)
29
if (context.
TargetNode
is IndexerDeclarationSyntax or AccessorDeclarationSyntax)
35
return new DiagnosticData(DiagnosticDescriptors.RegexMemberMustHaveValidSignature, GetComparableLocation(context.
TargetNode
));
38
var memberSyntax = (MemberDeclarationSyntax)context.
TargetNode
;