14 references to Info
dotnet (14)
Commands\Run\FileBasedAppSourceEditor.cs (10)
94return new TextChange(toReplace.Info.Span, newText: directive.ToString() + NewLine); 122var span = new TextSpan(start: addAfter.Info.Span.End, length: 0); 231var span = directive.Info.Span; 240if (directive.Info.LeadingWhiteSpace.LineBreaks > 0 && directive.Info.TrailingWhiteSpace.LineBreaks > 0) 242return directive.Info.TrailingWhiteSpace.TotalLength; 247var startBeforeWhiteSpace = directive.Info.Span.Start - directive.Info.LeadingWhiteSpace.TotalLength; 250return directive.Info.LeadingWhiteSpace.TotalLength + directive.Info.TrailingWhiteSpace.TotalLength;
Commands\Run\VirtualProjectBuildingCommand.cs (2)
1455Debug.Assert(directives.OrderBy(d => d.Info.Span.Start).SequenceEqual(directives), "Directives should be ordered by source location."); 1460text = text.Replace(directive.Info.Span, string.Empty);
FileLevelDirectiveHelpers.cs (2)
170diagnostics.AddError(sourceFile, directive.Info.Span, string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName)); 505return new Project(Info) { Name = name };