1 write to Context
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationContextInfo.cs (1)
18
Context
= context;
12 references to Context
Microsoft.CodeAnalysis.Workspaces (12)
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 (8)
52
if (info.
Context
.GenerateMembers && info.
Context
.MergeNestedNamespaces && @namespace.Name != string.Empty)
183
return info.
Context
.ReuseSyntax && attribute.ApplicationSyntaxReference != null
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)