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