32 references to RegisterForSyntaxNotifications
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
SourceGeneration\SyntaxAwareGeneratorTests.cs (20)
41
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
144
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
187
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
190
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
206
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
211
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
242
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
323
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(++invocations)),
377
onInit: (i) => i.
RegisterForSyntaxNotifications
((SyntaxReceiverCreator)(() => throw exception)),
419
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
461
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => receiver1),
467
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => receiver2),
503
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
509
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 1)),
558
onInit: (i) => { i.
RegisterForSyntaxNotifications
(() => receiver = new TestSyntaxReceiver()); throw exception; },
589
onInit: (i) => i.
RegisterForSyntaxNotifications
((SyntaxReceiverCreator)(() => null!)),
628
i.
RegisterForSyntaxNotifications
(() => receiver = new TestSyntaxReceiver());
682
i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
737
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
2051
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) { throw new OperationCanceledException("Simulated cancellation from external source"); } })),
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
47
context.
RegisterForSyntaxNotifications
(TypeDeclarationSyntaxReceiver.Create);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.MetadataExtractor (3)
MetadataReportsGenerator.cs (1)
50
context.
RegisterForSyntaxNotifications
(TypeDeclarationSyntaxReceiver.Create);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
47
context.
RegisterForSyntaxNotifications
(TypeDeclarationSyntaxReceiver.Create);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
34
context.
RegisterForSyntaxNotifications
(ClassDeclarationSyntaxReceiver.Create);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
34
context.
RegisterForSyntaxNotifications
(ClassDeclarationSyntaxReceiver.Create);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
349
context.
RegisterForSyntaxNotifications
(() => _receiver);