node_modules/@adonisjs/fold/src/Ioc/index.js
/**
   * Resolves binding from the bindings map and returns the
   * evaluated value after calling the binding closure.
   *
   * It is important to call _isBinding before calling this
   * method to avoid exceptions being thrown.
   *
   * @method _resolveBinding
   * @private
   *
   * @param {String} namespace
   * @return {Mixed}
   */
Resolves binding from the bindings map and returns the
evaluated value after calling the binding closure.

It is important to call _isBinding before calling this
method to avoid exceptions being thrown.

@method _resolveBinding
@private

@param {String} namespace
@return {Mixed}
Resolves binding from the bindings map and returns the evaluated value after calling the binding closure . It is important to call _isBinding before calling this method to avoid exceptions being thrown . @method _resolveBinding @private @param { String } namespace @return { Mixed }
_resolveBinding (namespace) {
    const binding = this._bindings[namespace]
    debug('resolving %s namespace as a binding', namespace)
    if (binding.singleton) {
      return (binding.cachedValue = binding.cachedValue || binding.closure(this))
    }
    return binding.closure(this)
  }
_resolveBinding ( namespace ) { const binding = this . _bindings [ namespace ] debug ( 'resolving %s namespace as a binding' , namespace ) if ( binding . singleton ) { return ( binding . cachedValue = binding . cachedValue || binding . closure ( this ) ) } return binding . closure ( this ) }
Resolves binding from the bindings map and returns the
 evaluated value after calling the binding closure.
Resolves binding from the bindings map and returns the evaluated value after calling the binding closure .