13 references to Info
dotnet (13)
Commands\Run\FileBasedAppSourceEditor.cs (10)
92return new TextChange(toReplace.Info.Span, newText: directive.ToString() + NewLine); 112var span = new TextSpan(start: addAfter.Info.Span.End, length: 0); 216var span = directive.Info.Span; 225if (directive.Info.LeadingWhiteSpace.LineBreaks > 0 && directive.Info.TrailingWhiteSpace.LineBreaks > 0) 227return directive.Info.TrailingWhiteSpace.TotalLength; 232var startBeforeWhiteSpace = directive.Info.Span.Start - directive.Info.LeadingWhiteSpace.TotalLength; 235return directive.Info.LeadingWhiteSpace.TotalLength + directive.Info.TrailingWhiteSpace.TotalLength;
Commands\Run\VirtualProjectBuildingCommand.cs (3)
1491diagnostics.AddError(sourceFile, directive.Info.Span, string.Format(CliCommandStrings.DuplicateDirective, typeAndName)); 1589Debug.Assert(directives.OrderBy(d => d.Info.Span.Start).SequenceEqual(directives), "Directives should be ordered by source location."); 1594text = text.Replace(directive.Info.Span, string.Empty);