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