
package.cjs.refractor.visitors.Visitor.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-ns-asyncapi-2 Show documentation
Show all versions of apidom-ns-asyncapi-2 Show documentation
AsyncAPI 2.x.y namespace for ApiDOM.
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.default = void 0;
var _stampit = _interopRequireDefault(require("stampit"));
var _apidomCore = require("@swagger-api/apidom-core");
const Visitor = (0, _stampit.default)({
props: {
element: null
},
methods: {
copyMetaAndAttributes(from, to) {
// copy sourcemaps
if ((0, _apidomCore.hasElementSourceMap)(from)) {
to.meta.set('sourceMap', from.meta.get('sourceMap'));
}
}
}
});
var _default = exports.default = Visitor;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy