1 write to Context
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationContextInfo.cs (1)
18
Context
= context;
11 references to Context
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
72
return info.
Context
.AddImports
288
return info.
Context
.AutoInsertionLocation
316
if (!GeneratingEnum(members) && info.
Context
.SortMembers)
389
return (TCodeGenerationContextInfo)info.WithContext(info.
Context
.With(afterThisLocation: null, beforeThisLocation: null));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (7)
52
if (info.
Context
.GenerateMembers && info.
Context
.MergeNestedNamespaces && @namespace.Name != string.Empty)
202
if (info.
Context
.AfterThisLocation?.SourceTree is { } afterSourceTree &&
205
var afterMember = declarationList.LastOrDefault(m => m.SpanStart <= info.
Context
.AfterThisLocation.SourceSpan.Start);
218
if (info.
Context
.BeforeThisLocation?.SourceTree is { } beforeSourceTree &&
221
var beforeMember = declarationList.FirstOrDefault(m => m.Span.End >= info.
Context
.BeforeThisLocation.SourceSpan.End);
233
if (info.
Context
.AutoInsertionLocation)