1 write to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
868this.Service = Document.Project.Services.GetService<ICodeGenerationService>();
19 references to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
CodeGeneration\CodeGenerationTests.cs (19)
47testContext.Result = await testContext.Service.AddNamespaceAsync( 81testContext.Result = await testContext.Service.AddFieldAsync( 93var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, root.SyntaxTree.Options); 94var newRoot = testContext.Service.AddField(root, field, info, CancellationToken.None); 123testContext.Result = await testContext.Service.AddMethodAsync( 168testContext.Result = await testContext.Service.AddMethodAsync( 209testContext.Result = await testContext.Service.AddMembersAsync( 244await testContext.Service.AddMethodAsync( 290testContext.Result = await testContext.Service.AddMethodAsync( 314var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options); 315var newSyntax = testContext.Service.AddStatements(oldSyntax, parsedStatements, info, CancellationToken.None); 329var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options); 331var newMemberSyntax = testContext.Service.AddParameters(oldMemberSyntax, parameterSymbols, info, CancellationToken.None); 358testContext.Result = await testContext.Service.AddNamedTypeAsync( 398testContext.Result = await testContext.Service.AddEventAsync( 491testContext.Result = await testContext.Service.AddPropertyAsync( 520testContext.Result = await testContext.Service.AddNamedTypeAsync( 647testContext.Result = await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None); 651testContext.Result = await testContext.Service.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);