2 writes to Span
dotnet (2)
FileLevelDirectiveHelpers.cs (2)
124
Span
= span,
147
Span
= span,
16 references to Span
dotnet (16)
Commands\Run\FileBasedAppSourceEditor.cs (4)
94
return new TextChange(toReplace.Info.
Span
, newText: directive.ToString() + NewLine);
122
var span = new TextSpan(start: addAfter.Info.
Span
.End, length: 0);
231
var span = directive.Info.
Span
;
247
var startBeforeWhiteSpace = directive.Info.
Span
.Start - directive.Info.LeadingWhiteSpace.TotalLength;
Commands\Run\VirtualProjectBuildingCommand.cs (2)
1455
Debug.Assert(directives.OrderBy(d => d.Info.
Span
.Start).SequenceEqual(directives), "Directives should be ordered by source location.");
1460
text = text.Replace(directive.Info.
Span
, string.Empty);
FileLevelDirectiveHelpers.cs (10)
160
diagnostics.AddError(sourceFile, context.Info.
Span
, FileBasedProgramsResources.QuoteInDirective);
170
diagnostics.AddError(sourceFile, directive.Info.
Span
, string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName));
312
var other => context.Diagnostics.AddError<Named>(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.UnrecognizedDirective, other)),
324
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind));
330
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.InvalidDirectiveName, directiveKind, separator));
405
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.Info.
Span
, FileBasedProgramsResources.PropertyDirectiveMissingParts);
414
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.PropertyDirectiveInvalidName, ex.Message), ex);
420
context.Diagnostics.AddError(context.SourceFile, context.Info.
Span
, FileBasedProgramsResources.StaticGraphRestoreNotSupported);
468
return context.Diagnostics.AddError<Project?>(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind));
494
context.Diagnostics.AddError(context.SourceFile, context.Info.
Span
, string.Format(FileBasedProgramsResources.InvalidProjectDirective, e.Message), e);