1 write to BeforeThisLocation
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationContext.cs (1)
158BeforeThisLocation = beforeThisLocation;
8 references to BeforeThisLocation
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpCodeGenerationService.cs (1)
549if (info.Context.BeforeThisLocation != null)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
511If options.Context.BeforeThisLocation IsNot Nothing Then
Microsoft.CodeAnalysis.Workspaces (6)
CodeGenerationContext.cs (4)
34/// This option is not necessary if <see cref="AfterThisLocation"/> or <see cref="BeforeThisLocation"/> are 44/// If this option is provided, neither <see cref="ContextLocation"/> nor <see cref="BeforeThisLocation"/> are 181=> this.AfterThisLocation ?? this.BeforeThisLocation ?? this.ContextLocation; 201var newBeforeThisLocation = beforeThisLocation.HasValue ? beforeThisLocation.Value : this.BeforeThisLocation;
CodeGenerationHelpers.cs (2)
219if (info.Context.BeforeThisLocation?.SourceTree is { } beforeSourceTree && 222var beforeMember = declarationList.FirstOrDefault(m => m.Span.End >= info.Context.BeforeThisLocation.SourceSpan.End);