4 types derived from TextLineCollection
Microsoft.CodeAnalysis (3)
Text\CompositeText.cs (1)
419private sealed class CompositeTextLineInfo : TextLineCollection
Text\SourceText.cs (1)
962internal sealed class LineInfo : TextLineCollection
Text\SubText.cs (1)
101private sealed class SubTextLineInfo : TextLineCollection
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
140private class LineInfo : TextLineCollection
60 references to TextLineCollection
Microsoft.CodeAnalysis (16)
Syntax\LineDirectiveMap.cs (1)
172public IEnumerable<LineMapping> GetLineMappings(TextLineCollection lines)
Text\ChangedText.cs (1)
265protected override TextLineCollection GetLinesCore()
Text\CompositeText.cs (1)
49protected override TextLineCollection GetLinesCore()
Text\LargeText.cs (3)
227/// Called from <see cref="SourceText.Lines"/> to initialize the <see cref="TextLineCollection"/>. Thereafter, 230/// <returns>A new <see cref="TextLineCollection"/> representing the individual text lines.</returns> 231protected override TextLineCollection GetLinesCore()
Text\SourceText.cs (7)
38private TextLineCollection? _lazyLineInfo; 937public TextLineCollection Lines 941var info = _lazyLineInfo; 946internal bool TryGetLines([NotNullWhen(returnValue: true)] out TextLineCollection? lines) 953/// Called from <see cref="Lines"/> to initialize the <see cref="TextLineCollection"/>. Thereafter, 956/// <returns>A new <see cref="TextLineCollection"/> representing the individual text lines.</returns> 957protected virtual TextLineCollection GetLinesCore()
Text\SubText.cs (1)
68protected override TextLineCollection GetLinesCore()
Text\TextLineCollection.cs (2)
99private readonly TextLineCollection _lines; 102internal Enumerator(TextLineCollection lines, int index = -1)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
131var lines = parenthesizedExpression.SyntaxTree.GetText(cancellationToken).Lines;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (4)
92var lines = text.Lines; 153var lines = text.Lines; 210var lines = text.Lines; 228var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1082var referencedLines = matchingTree.GetText().Lines; 1279var referencedLines = matchingTree.GetText().Lines;
Syntax\CSharpLineDirectiveMap.cs (1)
230var lines = sourceText.Lines;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
111var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.Features (2)
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
69var lines = text.Lines;
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
111var lines = text.Lines;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\LineSpanDirectiveTests.cs (2)
491static TextSpan getTextSpan(TextLineCollection lines, LinePositionSpan span) 496static int getTextPosition(TextLineCollection lines, LinePosition position)
IncrementalParsing\IncrementalParsingTests.cs (2)
621var initialLines = initialText.Lines; 835var withOpenBraceDeletedLines = withOpenBraceDeletedText.Lines;
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
322var lines = editorConfigText.Lines;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
179var lines = text.Lines;
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
137protected override TextLineCollection GetLinesCore()
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditorAdapter\TextSnapshotImplementationTest.cs (1)
63var lines = tuple.Item2.Lines;
Microsoft.CodeAnalysis.Features (13)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
740var 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) 273var lines = syntaxTree.GetText(cancellationToken).Lines;
EditAndContinue\ActiveStatementsMap.cs (1)
272private static bool TryGetTextSpan(TextLineCollection lines, LinePositionSpan lineSpan, out TextSpan span)
QuickInfo\IndentationHelper.cs (2)
41var lines = text.Lines; 87var lines = text.Lines;
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
131var lines = parenthesizedExpression.SyntaxTree.GetText(cancellationToken).Lines;
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (4)
92var lines = text.Lines; 153var lines = text.Lines; 210var lines = text.Lines; 228var lines = text.Lines;
Structure\BlockSpan.cs (1)
118internal bool IsOverlappingBlockSpan(TextLineCollection lines, BlockSpan? other)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
236TextLineCollection lines, 273TextLineCollection lines,
Microsoft.CodeAnalysis.UnitTests (6)
Text\CompositeTextTests.cs (1)
48private static IEnumerable<string> GetLinesTexts(TextLineCollection textLines)
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 (3)
CodeLens\RemoteCodeLensReferencesService.cs (1)
243private static string GetLineTextOrEmpty(TextLineCollection lines, int index)
Diagnostics\VisualStudioVenusSpanMappingService.cs (2)
53var textLines = GetTextLines(documentId, location); 70private TextLineCollection GetTextLines(DocumentId currentDocumentId, Location location)