2 types derived from RegexEscapeNode
Microsoft.CodeAnalysis.Features (2)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (2)
1198
internal abstract class RegexTypeEscapeNode :
RegexEscapeNode
1440
internal sealed class RegexCategoryEscapeNode :
RegexEscapeNode
19 references to RegexEscapeNode
Microsoft.CodeAnalysis.Features (19)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (6)
81
var
node = FindReferenceNode(tree.Root, ch);
109
RegexEscapeNode
node, TextSpan captureSpan)
117
private static RegexToken GetCaptureToken(
RegexEscapeNode
node)
126
private static
RegexEscapeNode
? FindReferenceNode(RegexNode node, VirtualChar virtualChar)
134
return (
RegexEscapeNode
)node;
142
var
result = FindReferenceNode(child.Node, virtualChar);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (2)
259
if (token?.parent is
RegexEscapeNode
)
343
if (parentOpt is not null and not
RegexEscapeNode
)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (11)
1595
private
RegexEscapeNode
ParseEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1641
private
RegexEscapeNode
ParseBasicBackslash(RegexToken backslashToken, bool allowTriviaAfterEnd)
1679
private
RegexEscapeNode
ParsePossibleBackreferenceEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1687
private
RegexEscapeNode
ParsePossibleEcmascriptBackreferenceEscape(
1732
private
RegexEscapeNode
ParsePossibleRegularBackreferenceEscape(
1755
private
RegexEscapeNode
ParsePossibleCaptureEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1773
private
RegexEscapeNode
ParsePossibleKCaptureEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1838
private
RegexEscapeNode
ParseCharEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1889
private
RegexEscapeNode
ParseUnicodeEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1897
private
RegexEscapeNode
ParseHexEscape(RegexToken backslashToken, bool allowTriviaAfterEnd)
1962
private
RegexEscapeNode
ParseCategoryEscape(RegexToken backslash, bool allowTriviaAfterEnd)