10 implementations of ISyntaxReceiver
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
2146private class TestSyntaxReceiver : TestReceiverBase<SyntaxNode>, ISyntaxReceiver
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.vb (1)
846Implements ISyntaxReceiver
Microsoft.Extensions.Options.SourceGeneration (1)
TypeDeclarationSyntaxReceiver.cs (1)
13internal sealed class TypeDeclarationSyntaxReceiver : ISyntaxReceiver
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
18internal sealed class TypeDeclarationSyntaxReceiver : ISyntaxReceiver
Microsoft.Gen.ContextualOptions (1)
ContextReceiver.cs (1)
15internal sealed class ContextReceiver : ISyntaxReceiver
Microsoft.Gen.Logging (2)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
18internal sealed class ClassDeclarationSyntaxReceiver : ISyntaxReceiver
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
18internal sealed class TypeDeclarationSyntaxReceiver : ISyntaxReceiver
Microsoft.Gen.Metrics (2)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
18internal sealed class ClassDeclarationSyntaxReceiver : ISyntaxReceiver
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
18internal sealed class TypeDeclarationSyntaxReceiver : ISyntaxReceiver
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
18internal sealed class ClassDeclarationSyntaxReceiver : ISyntaxReceiver
62 references to ISyntaxReceiver
Microsoft.CodeAnalysis (22)
SourceGeneration\GeneratorContexts.cs (9)
63/// If the generator registered an <see cref="ISyntaxReceiver"/> during initialization, this will be the instance created for this generation pass. 65public ISyntaxReceiver? SyntaxReceiver { get; } 146/// Register a <see cref="SyntaxReceiverCreator"/> for this generator, which can be used to create an instance of an <see cref="ISyntaxReceiver"/>. 150/// an instance of <see cref="ISyntaxReceiver"/>. This receiver will have its <see cref="ISyntaxReceiver.OnVisitSyntaxNode(SyntaxNode)"/> 153/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxReceiver"/> instance that was 157/// A new instance of <see cref="ISyntaxReceiver"/> is created per-generation, meaning there is no need to manage the lifetime of the 160/// <param name="receiverCreator">A <see cref="SyntaxReceiverCreator"/> that can be invoked to create an instance of <see cref="ISyntaxReceiver"/></param> 198/// will be visited by a registered <see cref="ISyntaxReceiver"/> and available for semantic analysis as part of the <see cref="GeneratorExecutionContext.Compilation"/>
SourceGeneration\ISyntaxReceiver.cs (9)
11/// A <see cref="ISourceGenerator"/> can provide an instance of <see cref="ISyntaxReceiver"/> 15/// obtain an instance of <see cref="ISyntaxReceiver"/>. This instance will have its 18/// The <see cref="ISyntaxReceiver"/> can record any information about the nodes visited. During 23/// A new instance of <see cref="ISyntaxReceiver"/> is created per-generation, meaning the instance 26/// An <see cref="ISourceGenerator"/> may provide only a single <see cref="ISyntaxReceiver"/> or 39/// Allows a generator to provide instances of an <see cref="ISyntaxReceiver"/> 41/// <returns>An instance of an <see cref="ISyntaxReceiver"/></returns> 42public delegate ISyntaxReceiver SyntaxReceiverCreator(); 66/// An <see cref="ISourceGenerator"/> may provide only a single <see cref="ISyntaxReceiver"/> or
SourceGeneration\SyntaxContextReceiverAdaptor.cs (4)
10/// Wraps an <see cref="ISyntaxReceiver"/> in an <see cref="ISyntaxContextReceiver"/> 14private SyntaxContextReceiverAdaptor(ISyntaxReceiver receiver) 19public ISyntaxReceiver Receiver { get; } 25var rx = creator();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
SourceGeneration\SyntaxAwareGeneratorTests.cs (12)
38ISyntaxReceiver? receiver = null; 64ISyntaxReceiver? receiver = null; 140ISyntaxReceiver? syntaxReceiver = null; 167ISyntaxReceiver? syntaxReceiver = null; 239ISyntaxReceiver? receiver = null; 319ISyntaxReceiver? receiver = null; 342var previousReceiver = receiver; 507ISyntaxReceiver? receiver = null; 585ISyntaxReceiver? syntaxRx = null; 677ISyntaxReceiver? receiver = null; 734ISyntaxReceiver? receiver = null; 822ISyntaxReceiver? syntaxRx = null;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.vb (1)
852Public Sub OnVisitSyntaxNode(syntaxNode As SyntaxNode) Implements ISyntaxReceiver.OnVisitSyntaxNode
Microsoft.Extensions.Options.SourceGeneration (1)
TypeDeclarationSyntaxReceiver.cs (1)
15internal static ISyntaxReceiver Create() => new TypeDeclarationSyntaxReceiver();
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new TypeDeclarationSyntaxReceiver();
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
336private readonly ISyntaxReceiver _receiver; 338public Generator(ISyntaxReceiver receiver) 356ISyntaxReceiver receiver, 383where TReceiver : ISyntaxReceiver
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
336private readonly ISyntaxReceiver _receiver; 338public Generator(ISyntaxReceiver receiver) 356ISyntaxReceiver receiver, 383where TReceiver : ISyntaxReceiver
Microsoft.Gen.Logging (2)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new ClassDeclarationSyntaxReceiver();
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new TypeDeclarationSyntaxReceiver();
Microsoft.Gen.Logging.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
336private readonly ISyntaxReceiver _receiver; 338public Generator(ISyntaxReceiver receiver) 356ISyntaxReceiver receiver, 383where TReceiver : ISyntaxReceiver
Microsoft.Gen.Metrics (2)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new ClassDeclarationSyntaxReceiver();
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new TypeDeclarationSyntaxReceiver();
Microsoft.Gen.Metrics.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
336private readonly ISyntaxReceiver _receiver; 338public Generator(ISyntaxReceiver receiver) 356ISyntaxReceiver receiver, 383where TReceiver : ISyntaxReceiver
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
20internal static ISyntaxReceiver Create() => new ClassDeclarationSyntaxReceiver();
Microsoft.Gen.MetricsReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
336private readonly ISyntaxReceiver _receiver; 338public Generator(ISyntaxReceiver receiver) 356ISyntaxReceiver receiver, 383where TReceiver : ISyntaxReceiver