6 references to IndexOf
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteData.cs (2)
113
var firstCharIndexInclusive = virtualChars.
IndexOf
(firstOverlappingChar.Value);
114
var lastCharIndexInclusive = virtualChars.
IndexOf
(lastOverlappingChar.Value);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (2)
EmbeddedLanguages\AspNetCoreVirtualCharSequence.cs (2)
50
/// <inheritdoc cref="VirtualCharSequenceExtensions.
IndexOf
"/>
52
=> _virtualCharSequence.
IndexOf
(@char.VirtualChar);
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
252
var index = tree.Text.
IndexOf
(previousVirtualChar);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (1)
209
=> sequence.
IndexOf
(@char) >= 0;