/// <summary>Called by IRFactory to add a RegExp to the regexp table.</summary> /// <remarks>Called by IRFactory to add a RegExp to the regexp table.</remarks> public virtual void AddRegExp(RegExpLiteral re) { if (re == null) { CodeBug(); } if (regexps == null) { regexps = new List<RegExpLiteral>(); } regexps.Add(re); re.PutIntProp(REGEXP_PROP, regexps.Count - 1); }
private Node TransformRegExp(RegExpLiteral node) { decompiler.AddRegexp(node.GetValue(), node.GetFlags()); currentScriptOrFn.AddRegExp(node); return node; }