"use strict"
var __createBinding =
  (this && this.__createBinding) ||
  (Object.create
    ? function (o, m, k, k2) {
        if (k2 === undefined) k2 = k
        Object.defineProperty(o, k2, {
          enumerable: true,
          get: function () {
            return m[k]
          }
        })
      }
    : function (o, m, k, k2) {
        if (k2 === undefined) k2 = k
        o[k2] = m[k]
      })
var __setModuleDefault =
  (this && this.__setModuleDefault) ||
  (Object.create
    ? function (o, v) {
        Object.defineProperty(o, "default", { enumerable: true, value: v })
      }
    : function (o, v) {
        o["default"] = v
      })
var __importStar =
  (this && this.__importStar) ||
  function (mod) {
    if (mod && mod.__esModule) return mod
    var result = {}
    if (mod != null)
      for (var k in mod)
        if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
          __createBinding(result, mod, k)
    __setModuleDefault(result, mod)
    return result
  }
Object.defineProperty(exports, "__esModule", { value: true })
exports.quoted =
  exports.param =
  exports.infix =
  exports.function_ =
  exports.field =
  exports.className =
    void 0
const tracing_1 = __importStar(require("../../Tracing"))
const fileName_1 = "(@effect-ts/system): _src/Testing/Render/api.ts"
const AssertionM = __importStar(require("../AssertionM/AssertionM"))
const R = __importStar(require("./definition"))
/**
 * Creates a string representation of a class name.
 */
function className(cons) {
  return cons.prototype.constructor.name
}
exports.className = className
/**
 * Creates a string representation of a field accessor.
 */
function field(name) {
  return `_.${name}`
}
exports.field = field
/**
 * Create a `Render` from an assertion combinator that should be rendered
 * using standard function notation.
 */
function function_(name, paramLists) {
  return new R.Function_(name, paramLists)
}
exports.function_ = function_
/**
 * Create a `Render` from an assertion combinator that should be rendered
 * using infix function notation.
 */
function infix(left, op, right) {
  return new R.Infix(left, op, right)
}
exports.infix = infix
/**
 * Construct a `RenderParam` from an `AssertionM`.
 */
function param(value) {
  if (AssertionM.isAssertionM(value)) {
    return new R.AssertionM(value)
  }
  return new R.Value(value)
}
exports.param = param
/**
 * Quote a string so it renders as a valid Scala string when rendered.
 */
function quoted(str) {
  return `"${str}"`
}
exports.quoted = quoted
//# sourceMappingURL=api.js.map
