18 references to TestSyntaxReceiver
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
SourceGeneration\SyntaxAwareGeneratorTests.cs (18)
40onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver()),
143onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver()),
186init.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver());
189init.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver());
205init.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver());
210init.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver());
241onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver()),
322onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver(++invocations)),
420onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
462TestSyntaxReceiver receiver1 = new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is PropertyDeclarationSyntax) throw new Exception("Test Exception"); });
468TestSyntaxReceiver receiver2 = new TestSyntaxReceiver(tag: 1);
506onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) throw exception; })),
512onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver(tag: 1)),
563onInit: (i) => { i.RegisterForSyntaxNotifications(() => receiver = new TestSyntaxReceiver()); throw exception; },
635i.RegisterForSyntaxNotifications(() => receiver = new TestSyntaxReceiver());
691i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver());
746onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver()),
2062onInit: (i) => i.RegisterForSyntaxNotifications(() => new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is AssignmentExpressionSyntax) { throw new OperationCanceledException("Simulated cancellation from external source"); } })),