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