1 write to Service
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
868
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(
209
testContext.Result = await testContext.
Service
.AddMembersAsync(
244
await testContext.
Service
.AddMethodAsync(
290
testContext.Result = await testContext.
Service
.AddMethodAsync(
314
var info = testContext.
Service
.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options);
315
var newSyntax = testContext.
Service
.AddStatements(oldSyntax, parsedStatements, info, CancellationToken.None);
329
var info = testContext.
Service
.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options);
331
var newMemberSyntax = testContext.
Service
.AddParameters(oldMemberSyntax, parameterSymbols, info, CancellationToken.None);
358
testContext.Result = await testContext.
Service
.AddNamedTypeAsync(
398
testContext.Result = await testContext.
Service
.AddEventAsync(
491
testContext.Result = await testContext.
Service
.AddPropertyAsync(
520
testContext.Result = await testContext.
Service
.AddNamedTypeAsync(
647
testContext.Result = await testContext.
Service
.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
651
testContext.Result = await testContext.
Service
.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);