1 write to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
886
this.
Service
= Document.Project.Services.GetService<ICodeGenerationService>();
19 references to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
CodeGeneration\CodeGenerationTests.cs (19)
47
testContext.Result = await testContext.
Service
.AddNamespaceAsync(
81
testContext.Result = await testContext.
Service
.AddFieldAsync(
93
var info = testContext.
Service
.GetInfo(context ?? CodeGenerationContext.Default, options, root.SyntaxTree.Options);
94
var newRoot = testContext.
Service
.AddField(root, field, info, CancellationToken.None);
123
testContext.Result = await testContext.
Service
.AddMethodAsync(
168
testContext.Result = await testContext.
Service
.AddMethodAsync(
212
testContext.Result = await testContext.
Service
.AddMembersAsync(
247
await testContext.
Service
.AddMethodAsync(
293
testContext.Result = await testContext.
Service
.AddMethodAsync(
317
var info = testContext.
Service
.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options);
318
var newSyntax = testContext.
Service
.AddStatements(oldSyntax, parsedStatements, info, CancellationToken.None);
332
var info = testContext.
Service
.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options);
334
var newMemberSyntax = testContext.
Service
.AddParameters(oldMemberSyntax, parameterSymbols, info, CancellationToken.None);
361
testContext.Result = await testContext.
Service
.AddNamedTypeAsync(
401
testContext.Result = await testContext.
Service
.AddEventAsync(
494
testContext.Result = await testContext.
Service
.AddPropertyAsync(
523
testContext.Result = await testContext.
Service
.AddNamedTypeAsync(
665
testContext.Result = await testContext.
Service
.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
669
testContext.Result = await testContext.
Service
.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);