Inheritance: clojure.lang.CljCompiler.Ast.Expr
Example #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;
        }
Example #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;
        }