All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.refractor.visitors.FallbackVisitor.cjs Maven / Gradle / Ivy

The newest version!
"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.default = void 0;
var _apidomCore = require("@swagger-api/apidom-core");
var _Visitor = _interopRequireDefault(require("./Visitor.cjs"));
/**
 * This visitor is responsible for falling back to current traversed element
 * Given AsyncApi2Visitor expects ObjectElement to be traversed. If
 * different Element is provided FallBackVisitor is responsible to assigning
 * this Element as current element.
 */

class FallbackVisitor extends _Visitor.default {
  enter(element) {
    this.element = (0, _apidomCore.cloneDeep)(element);
    return _apidomCore.BREAK;
  }
}
var _default = exports.default = FallbackVisitor;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy