21 references to RegisterForSyntaxNotifications
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
SourceGeneration\SyntaxAwareGeneratorTests.cs (20)
40
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
143
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
186
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
189
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
205
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
210
init.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
241
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
322
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(++invocations)),
376
onInit: (i) => i.
RegisterForSyntaxNotifications
((SyntaxReceiverCreator)(() => throw exception)),
420
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
464
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => receiver1),
470
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => receiver2),
506
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
512
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 1)),
563
onInit: (i) => { i.
RegisterForSyntaxNotifications
(() => receiver = new TestSyntaxReceiver()); throw exception; },
596
onInit: (i) => i.
RegisterForSyntaxNotifications
((SyntaxReceiverCreator)(() => null!)),
635
i.
RegisterForSyntaxNotifications
(() => receiver = new TestSyntaxReceiver());
691
i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver());
746
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver()),
2062
onInit: (i) => i.
RegisterForSyntaxNotifications
(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) { throw new OperationCanceledException("Simulated cancellation from external source"); } })),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.vb (1)
435
context.
RegisterForSyntaxNotifications
(Function() _receiver)