public static ExprBinOp CreateSave(ExprWrap wrap) { Debug.Assert(wrap != null); ExprBinOp expr = CreateBinop(ExpressionKind.Save, wrap.Type, wrap.OptionalExpression, wrap); expr.SetAssignment(); return(expr); }
public ExprWrap CreateWrap( Scope pCurrentScope, Expr pOptionalExpression ) { ExprWrap rval = new ExprWrap(); rval.OptionalExpression = pOptionalExpression; rval.Flags = EXPRFLAG.EXF_LVALUE; return(rval); }
public ExprWrap CreateWrap( Scope pCurrentScope, Expr pOptionalExpression ) { ExprWrap rval = new ExprWrap(); rval.Kind = ExpressionKind.EK_WRAP; rval.Type = null; rval.Flags = 0; rval.OptionalExpression = pOptionalExpression; if (pOptionalExpression != null) { rval.Type = pOptionalExpression.Type; } rval.Flags |= EXPRFLAG.EXF_LVALUE; Debug.Assert(rval != null); return(rval); }
protected virtual Expr VisitWRAP(ExprWrap pExpr) { return(VisitEXPR(pExpr)); }
public ExprWrap CreateWrapNoAutoFree(Scope pCurrentScope, Expr pOptionalWrap) { ExprWrap rval = CreateWrap(pCurrentScope, pOptionalWrap); return(rval); }