Ejemplo n.º 1
0
 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>(null)));
     return Methods.CreateRegex(opSuffix).OpCall(args);
 }
Ejemplo n.º 2
0
 /*!*/
 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);
 }