Ejemplo n.º 1
0
 public operand(operandMode mode = default, ast.Expr expr = default, Type typ = default, constant.Value val = default, builtinId id = default)
 {
     this.mode = mode;
     this.expr = expr;
     this.typ  = typ;
     this.val  = val;
     this.id   = id;
 }
Ejemplo n.º 2
0
 // builtin type-checks a call to the built-in specified by id and
 // reports whether the call is valid, with *x holding the result;
 // but x.expr is not set. If the call is invalid, the result is
 // false, and *x is undefined.
 //
 private static bool builtin(this ptr <Checker> _addr_check, ptr <operand> _addr_x, ptr <ast.CallExpr> _addr_call, builtinId id) => func((defer, _, __) =>