Expr constructor

Expr({
  1. Expr_Path? path,
  2. Value? value,
  3. Expr_Kind? kind,
  4. Eval? eval,
  5. Scalar? scalar,
  6. Ref? ref,
  7. Obj? obj,
  8. Arr? arr,
  9. Json? json,
  10. Iter? iter,
  11. Elem? elem,
  12. Call? call,
  13. Cases? cases,
  14. OpUnary? opUnary,
  15. OpBinary? opBinary,
  16. OpVariadic? opVariadic,
})

Implementation

factory Expr({
  Expr_Path? path,
  $0.Value? value,
  Expr_Kind? kind,
  Eval? eval,
  Scalar? scalar,
  Ref? ref,
  Obj? obj,
  Arr? arr,
  Json? json,
  Iter? iter,
  Elem? elem,
  Call? call,
  Cases? cases,
  OpUnary? opUnary,
  OpBinary? opBinary,
  OpVariadic? opVariadic,
}) {
  final $result = create();
  if (path != null) {
    $result.path = path;
  }
  if (value != null) {
    $result.value = value;
  }
  if (kind != null) {
    $result.kind = kind;
  }
  if (eval != null) {
    $result.eval = eval;
  }
  if (scalar != null) {
    $result.scalar = scalar;
  }
  if (ref != null) {
    $result.ref = ref;
  }
  if (obj != null) {
    $result.obj = obj;
  }
  if (arr != null) {
    $result.arr = arr;
  }
  if (json != null) {
    $result.json = json;
  }
  if (iter != null) {
    $result.iter = iter;
  }
  if (elem != null) {
    $result.elem = elem;
  }
  if (call != null) {
    $result.call = call;
  }
  if (cases != null) {
    $result.cases = cases;
  }
  if (opUnary != null) {
    $result.opUnary = opUnary;
  }
  if (opBinary != null) {
    $result.opBinary = opBinary;
  }
  if (opVariadic != null) {
    $result.opVariadic = opVariadic;
  }
  return $result;
}