public RegexExpression Flush()
            {
                this.AppendExpression(null);
                var expression = this.alternate != null?RegexAlternation.Create(this.alternate, this.current) : this.current;

                if (this.caseSensitive.HasValue)
                {
                    return(this.caseSensitive.Value ? RegexCaseGroup.CreateSensitive(expression) : RegexCaseGroup.CreateInsensitive(expression));
                }
                return(expression);
            }
Пример #2
0
 public RegexExpression CaseGroup(RegexCaseGroup node, KeyValuePair <SymbolId, int?> context)
 {
     return(RegexCaseGroup.Create(node.Inner.Visit(this, context), node.CaseSensitive));
 }
 public RxNode <TLetter> CaseGroup(RegexCaseGroup node, Context context)
 {
     return(node.Inner.Visit(this, new Context(context.Mapper, context.CharSetProvider, node.CaseSensitive)));
 }