1 write to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
882this.Service = Document.Project.Services.GetService<ICodeGenerationService>();
19 references to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
CodeGeneration\CodeGenerationTests.cs (19)
49testContext.Result = await testContext.Service.AddNamespaceAsync( 84testContext.Result = await testContext.Service.AddFieldAsync( 97var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, root.SyntaxTree.Options); 98var newRoot = testContext.Service.AddField(root, field, info, CancellationToken.None); 127testContext.Result = await testContext.Service.AddMethodAsync( 173testContext.Result = await testContext.Service.AddMethodAsync( 215testContext.Result = await testContext.Service.AddMembersAsync( 251await testContext.Service.AddMethodAsync( 298testContext.Result = await testContext.Service.AddMethodAsync( 323var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options); 324var newSyntax = testContext.Service.AddStatements(oldSyntax, parsedStatements, info, CancellationToken.None); 338var info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options); 340var newMemberSyntax = testContext.Service.AddParameters(oldMemberSyntax, parameterSymbols, info, CancellationToken.None); 367testContext.Result = await testContext.Service.AddNamedTypeAsync( 408testContext.Result = await testContext.Service.AddEventAsync( 502testContext.Result = await testContext.Service.AddPropertyAsync( 532testContext.Result = await testContext.Service.AddNamedTypeAsync( 661testContext.Result = await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None); 665testContext.Result = await testContext.Service.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);