Inheritance: clojure.lang.CljCompiler.Ast.Expr
Esempio n. 1
0
        internal static Expr OptionallyGenerateMetaInit(object form, Expr expr)
        {
            Expr ret = expr;

            IObj o = form as IObj;
            if (o != null && o.meta() != null)
                ret = new MetaExpr(ret, (MapExpr)MapExpr.Parse(o.meta()));

            return ret;
        }
Esempio n. 2
0
        internal static Expr OptionallyGenerateMetaInit(ParserContext pcon, object form, Expr expr)
        {
            Expr ret = expr;

            if ( RT.meta(form) != null )
                ret = new MetaExpr(ret, (MapExpr)MapExpr.Parse(pcon.EvalOrExpr(),((IObj)form).meta()));

            return ret;
        }