示例#1
0
 public virtual void VisitRegex(BoundRegEx node)
 {
     DefaultVisit(node);
 }
示例#2
0
        private BoundValueType EmitRegEx(BoundRegEx node)
        {
            // Push the global onto the stack.
            _scope.EmitLoad(SpecialLocal.Global);
            // Push the regular expression and options onto the stack.
            IL.EmitConstant(node.Regex);
            IL.EmitConstant(node.Options);
            // Create the regular expression object.
            IL.EmitCall(_globalCreateRegExp);

            return BoundValueType.Object;
        }