1 write to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
885this.Service = Document.Project.Services.GetService<ICodeGenerationService>();
19 references to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
CodeGeneration\CodeGenerationTests.cs (19)
46testContext.Result = await testContext.Service.AddNamespaceAsync( 80testContext.Result = await testContext.Service.AddFieldAsync( 92var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, root.SyntaxTree.Options); 93var newRoot = testContext.Service.AddField(root, field, info, CancellationToken.None); 122testContext.Result = await testContext.Service.AddMethodAsync( 167testContext.Result = await testContext.Service.AddMethodAsync( 211testContext.Result = await testContext.Service.AddMembersAsync( 246await testContext.Service.AddMethodAsync( 292testContext.Result = await testContext.Service.AddMethodAsync( 316var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options); 317var newSyntax = testContext.Service.AddStatements(oldSyntax, parsedStatements, info, CancellationToken.None); 331var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options); 333var newMemberSyntax = testContext.Service.AddParameters(oldMemberSyntax, parameterSymbols, info, CancellationToken.None); 360testContext.Result = await testContext.Service.AddNamedTypeAsync( 400testContext.Result = await testContext.Service.AddEventAsync( 493testContext.Result = await testContext.Service.AddPropertyAsync( 522testContext.Result = await testContext.Service.AddNamedTypeAsync( 664testContext.Result = await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None); 668testContext.Result = await testContext.Service.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);