2 writes to Span
dotnet (2)
Commands\Run\VirtualProjectBuildingCommand.cs (2)
1453
Span
= span,
1476
Span
= span,
15 references to Span
dotnet (15)
Commands\Run\FileBasedAppSourceEditor.cs (4)
92
return new TextChange(toReplace.Info.
Span
, newText: directive.ToString() + NewLine);
112
var span = new TextSpan(start: addAfter.Info.
Span
.End, length: 0);
216
var span = directive.Info.
Span
;
232
var startBeforeWhiteSpace = directive.Info.
Span
.Start - directive.Info.LeadingWhiteSpace.TotalLength;
Commands\Run\VirtualProjectBuildingCommand.cs (11)
1491
diagnostics.AddError(sourceFile, directive.Info.
Span
, string.Format(CliCommandStrings.DuplicateDirective, typeAndName));
1589
Debug.Assert(directives.OrderBy(d => d.Info.
Span
.Start).SequenceEqual(directives), "Directives should be ordered by source location.");
1594
text = text.Replace(directive.Info.
Span
, string.Empty);
1720
var other => context.Diagnostics.AddError<Named>(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.UnrecognizedDirective, other)),
1732
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.MissingDirectiveName, directiveKind));
1738
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.InvalidDirectiveName, directiveKind, separator));
1805
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.Info.
Span
, CliCommandStrings.PropertyDirectiveMissingParts);
1814
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.PropertyDirectiveInvalidName, ex.Message), ex);
1820
context.Diagnostics.AddError(context.SourceFile, context.Info.
Span
, CliCommandStrings.StaticGraphRestoreNotSupported);
1868
return context.Diagnostics.AddError<Project?>(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.MissingDirectiveName, directiveKind));
1889
context.Diagnostics.AddError(context.SourceFile, context.Info.
Span
, string.Format(CliCommandStrings.InvalidProjectDirective, e.Message), e);