public Literal(string pattern, string flags, object value, string raw) { Type = Nodes.Literal; // value is null if a Regex object couldn't be created out of the pattern or options Value = value; Regex = new RegexValue(pattern, flags); TokenType = TokenType.RegularExpression; Raw = raw; }
public Literal(string pattern, string flags, object value, string raw) : this(TokenType.RegularExpression, value, raw) { // value is null if a Regex object couldn't be created out of the pattern or options Regex = new RegexValue(pattern, flags); }