14 references to Info
dotnet (14)
Commands\Run\FileBasedAppSourceEditor.cs (10)
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;
240
if (directive.
Info
.LeadingWhiteSpace.LineBreaks > 0 && directive.
Info
.TrailingWhiteSpace.LineBreaks > 0)
242
return directive.
Info
.TrailingWhiteSpace.TotalLength;
247
var startBeforeWhiteSpace = directive.
Info
.Span.Start - directive.
Info
.LeadingWhiteSpace.TotalLength;
250
return directive.
Info
.LeadingWhiteSpace.TotalLength + directive.
Info
.TrailingWhiteSpace.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 (2)
170
diagnostics.AddError(sourceFile, directive.
Info
.Span, string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName));
505
return new Project(
Info
) { Name = name };