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