2 types derived from TextLineCollection
Microsoft.CodeAnalysis (1)
Text\SourceText.cs (1)
852internal sealed class LineInfo : TextLineCollection
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
141private class LineInfo : TextLineCollection
51 references to TextLineCollection
Microsoft.CodeAnalysis (15)
Syntax\LineDirectiveMap.cs (1)
172public IEnumerable<LineMapping> GetLineMappings(TextLineCollection lines)
Text\ChangedText.cs (2)
269protected override TextLineCollection GetLinesCore() 272TextLineCollection? oldLineInfo;
Text\LargeText.cs (3)
226/// Called from <see cref="SourceText.Lines"/> to initialize the <see cref="TextLineCollection"/>. Thereafter, 229/// <returns>A new <see cref="TextLineCollection"/> representing the individual text lines.</returns> 230protected override TextLineCollection GetLinesCore()
Text\SourceText.cs (7)
33private TextLineCollection? _lazyLineInfo; 827public TextLineCollection Lines 831var info = _lazyLineInfo; 836internal bool TryGetLines([NotNullWhen(returnValue: true)] out TextLineCollection? lines) 843/// Called from <see cref="Lines"/> to initialize the <see cref="TextLineCollection"/>. Thereafter, 846/// <returns>A new <see cref="TextLineCollection"/> representing the individual text lines.</returns> 847protected virtual TextLineCollection GetLinesCore()
Text\TextLineCollection.cs (2)
94private readonly TextLineCollection _lines; 97internal Enumerator(TextLineCollection lines, int index = -1)
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
132var lines = parenthesizedExpression.SyntaxTree.GetText(cancellationToken).Lines;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
AbstractConflictMarkerCodeFixProvider.cs (4)
91var lines = text.Lines; 152var lines = text.Lines; 209var lines = text.Lines; 227var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpLineDirectiveMap.cs (1)
224var lines = sourceText.Lines;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
106var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.Features (1)
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
106var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\LineSpanDirectiveTests.cs (2)
494static TextSpan getTextSpan(TextLineCollection lines, LinePositionSpan span) 499static int getTextPosition(TextLineCollection lines, LinePosition position)
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
322var lines = editorConfigText.Lines;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
165var lines = text.Lines;
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
138protected override TextLineCollection GetLinesCore()
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditorAdapter\TextSnapshotImplementationTest.cs (1)
64var lines = tuple.Item2.Lines;
Microsoft.CodeAnalysis.Features (10)
AbstractConflictMarkerCodeFixProvider.cs (4)
91var lines = text.Lines; 152var lines = text.Lines; 209var lines = text.Lines; 227var lines = text.Lines;
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
132var lines = parenthesizedExpression.SyntaxTree.GetText(cancellationToken).Lines;
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
757var lines = result.Lines;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (3)
95protected SyntaxToken GetAdjustedTokenForPragmaDisable(SyntaxToken token, SyntaxNode root, TextLineCollection lines) 117private SyntaxToken GetAdjustedTokenForPragmaRestore(SyntaxToken token, SyntaxNode root, TextLineCollection lines, int indexOfLine) 275var lines = syntaxTree.GetText(cancellationToken).Lines;
EditAndContinue\ActiveStatementsMap.cs (1)
266private static bool TryGetTextSpan(TextLineCollection lines, LinePositionSpan lineSpan, out TextSpan span)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
235TextLineCollection lines, 261TextLineCollection lines,
Microsoft.CodeAnalysis.UnitTests (5)
Text\TextChangeTests.cs (2)
350var lines = text.Lines; 370var lines = text.Lines;
Text\TextLineCollectionTests.cs (3)
19Assert.Throws<NotSupportedException>(() => default(TextLineCollection.Enumerator).Equals(default(TextLineCollection.Enumerator))); 20Assert.Throws<NotSupportedException>(() => default(TextLineCollection.Enumerator).GetHashCode());
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\FileLinePositionSpanExtensions.cs (1)
40var lines = text.Lines;
Microsoft.VisualStudio.LanguageServices (4)
CodeLens\RemoteCodeLensReferencesService.cs (2)
232var lines = tooltip.Value.Content.Lines; 244private static string GetLineTextOrEmpty(TextLineCollection lines, int index)
Diagnostics\VisualStudioVenusSpanMappingService.cs (2)
53var textLines = GetTextLines(documentId, location); 70private TextLineCollection GetTextLines(DocumentId currentDocumentId, Location location)