MSA.Expression/*!*/ StringConstructor.IFactory.CreateExpressionM(AstGenerator/*!*/ gen, MSAst.ExpressionCollectionBuilder/*!*/ args) { string suffix = new String('M', args.Count); args.Add(gen.Encoding.Expression); args.Add(AstUtils.Constant(_options)); args.Add(AstUtils.Constant(new StrongBox<RubyRegex>(null))); return Methods.CreateRegex(suffix).OpCall(args); }
public RuntimeScriptCode(CompilerContext/*!*/ context, MSAst.Expression<Func<object>>/*!*/ expression, PythonAst/*!*/ ast, CodeContext/*!*/ codeContext) : base(context.SourceUnit) { _code = expression; _ast = ast; _context = context; _optimizedContext = codeContext; }
public RuntimeScriptCode(CompilerContext/*!*/ context, MSAst.Expression<Func<FunctionCode, object>>/*!*/ expression, PythonAst/*!*/ ast, CodeContext/*!*/ codeContext) : base(context.SourceUnit) { Debug.Assert(codeContext.GlobalScope.GetExtension(codeContext.LanguageContext.ContextId) != null); _code = expression; _ast = ast; _context = context; _optimizedContext = codeContext; }
public static MSA.Expression/*!*/ OpCall(this MethodInfo/*!*/ method, MSAst.ExpressionCollectionBuilder/*!*/ args) { return args.ToMethodCall(null, method); }
MSA.Expression/*!*/ StringConstructor.IFactory.CreateExpression(AstGenerator/*!*/ gen, string/*!*/ opSuffix, MSAst.ExpressionCollectionBuilder/*!*/ args) { args.Add(gen.EncodingConstant); args.Add(AstUtils.Constant(_options)); args.Add(AstUtils.Constant(new StrongBox<RubyRegex>())); return Methods.CreateRegex(opSuffix).OpCall(args); }