4 types derived from RegexExpressionNode
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (4)
284
internal abstract class RegexPrimaryExpressionNode :
RegexExpressionNode
322
internal abstract class RegexQuantifierNode :
RegexExpressionNode
431
internal sealed class RegexLazyQuantifierNode :
RegexExpressionNode
611
internal sealed class RegexAlternationNode :
RegexExpressionNode
66 references to RegexExpressionNode
Microsoft.CodeAnalysis.Features (66)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (39)
20
public RegexCompilationUnit(
RegexExpressionNode
expression, RegexToken endOfFileToken)
29
public
RegexExpressionNode
Expression { get; }
57
internal sealed class RegexSequenceNode(ImmutableArray<
RegexExpressionNode
> children) : RegexExpressionNode(RegexKind.Sequence)
59
public ImmutableArray<
RegexExpressionNode
> Children { get; } = children;
177
RegexExpressionNode
left, RegexToken minusToken,
RegexExpressionNode
right)
188
public
RegexExpressionNode
Left { get; }
190
public
RegexExpressionNode
Right { get; }
336
RegexExpressionNode
expression, RegexToken asteriskToken)
345
public
RegexExpressionNode
Expression { get; }
368
RegexExpressionNode
expression, RegexToken plusToken)
377
public
RegexExpressionNode
Expression { get; }
400
RegexExpressionNode
expression, RegexToken questionToken)
409
public
RegexExpressionNode
Expression { get; }
481
public
RegexExpressionNode
Expression { get; }
657
public RegexSimpleGroupingNode(RegexToken openParenToken,
RegexExpressionNode
expression, RegexToken closeParenToken)
664
public
RegexExpressionNode
Expression { get; }
739
RegexToken colonToken,
RegexExpressionNode
expression, RegexToken closeParenToken)
749
public
RegexExpressionNode
Expression { get; }
776
RegexExpressionNode
expression, RegexToken closeParenToken)
786
public
RegexExpressionNode
Expression { get; }
812
RegexExpressionNode
expression, RegexToken closeParenToken)
822
public
RegexExpressionNode
Expression { get; }
848
RegexExpressionNode
expression, RegexToken closeParenToken)
858
public
RegexExpressionNode
Expression { get; }
898
RegexToken equalsToken,
RegexExpressionNode
expression, RegexToken closeParenToken)
908
public
RegexExpressionNode
Expression { get; }
935
RegexToken exclamationToken,
RegexExpressionNode
expression, RegexToken closeParenToken)
945
public
RegexExpressionNode
Expression { get; }
972
RegexExpressionNode
expression, RegexToken closeParenToken)
982
public
RegexExpressionNode
Expression { get; }
1009
RegexExpressionNode
expression, RegexToken closeParenToken)
1022
public
RegexExpressionNode
Expression { get; }
1051
RegexToken closeToken,
RegexExpressionNode
expression, RegexToken closeParenToken)
1069
public
RegexExpressionNode
Expression { get; }
1096
RegexExpressionNode
result, RegexToken closeParenToken)
1103
public
RegexExpressionNode
Result { get; }
1114
RegexExpressionNode
result, RegexToken closeParenToken)
1155
RegexExpressionNode
result, RegexToken closeParenToken)
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (1)
163
var
expr = node.Expression;
EmbeddedLanguages\RegularExpressions\RegexParser.cs (26)
290
using var _1 = ArrayBuilder<
RegexExpressionNode
>.GetInstance(out var builder);
299
using var _2 = ArrayBuilder<
RegexExpressionNode
>.GetInstance(out var sequence);
305
private static void MergeTextNodes(ArrayBuilder<
RegexExpressionNode
> list, ArrayBuilder<
RegexExpressionNode
> final)
330
ArrayBuilder<
RegexExpressionNode
> list,
331
ArrayBuilder<
RegexExpressionNode
> final,
370
static bool CanMerge(RegexTextNode lastNode,
RegexExpressionNode
next)
416
private
RegexExpressionNode
ParsePrimaryExpressionAndQuantifiers(
RegexExpressionNode
? lastExpression)
435
private
RegexExpressionNode
TryParseLazyQuantifier(RegexQuantifierNode quantifier)
447
private
RegexExpressionNode
ParseZeroOrMoreQuantifier(RegexPrimaryExpressionNode current)
453
private
RegexExpressionNode
ParseOneOrMoreQuantifier(RegexPrimaryExpressionNode current)
459
private
RegexExpressionNode
ParseZeroOrOneQuantifier(RegexPrimaryExpressionNode current)
465
private
RegexExpressionNode
TryParseNumericQuantifier(
571
private RegexPrimaryExpressionNode ParsePrimaryExpression(
RegexExpressionNode
? lastExpression)
588
private RegexPrimaryExpressionNode ParsePossibleUnexpectedNumericQuantifier(
RegexExpressionNode
? lastExpression)
686
private
RegexExpressionNode
ParseGroupingEmbeddedExpression(RegexOptions embeddedOptions)
846
var
result = ParseConditionalGroupingResult();
923
var
result = ParseConditionalGroupingResult();
931
private
RegexExpressionNode
ParseConditionalGroupingResult()
1239
using var _1 = ArrayBuilder<
RegexExpressionNode
>.GetInstance(out var builder);
1256
using var _2 = ArrayBuilder<
RegexExpressionNode
>.GetInstance(out var contents);
1272
private void ParseCharacterClassComponents(ArrayBuilder<
RegexExpressionNode
> components)
1323
private static bool TryGetRangeComponentValue(
RegexExpressionNode
component, out int ch)
2034
private RegexTextNode ParseUnexpectedQuantifier(
RegexExpressionNode
? lastExpression)
2043
private static void CheckQuantifierExpression(
RegexExpressionNode
? current, ref RegexToken token)