main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 16 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
393 bytes
|
Line | |
---|
1 | import stampit from 'stampit';
|
---|
2 | import { hasElementSourceMap } from '@swagger-api/apidom-core';
|
---|
3 | const Visitor = stampit({
|
---|
4 | props: {
|
---|
5 | element: null
|
---|
6 | },
|
---|
7 | // @ts-ignore
|
---|
8 | methods: {
|
---|
9 | copyMetaAndAttributes(from, to) {
|
---|
10 | // copy sourcemaps
|
---|
11 | if (hasElementSourceMap(from)) {
|
---|
12 | to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
---|
13 | }
|
---|
14 | }
|
---|
15 | }
|
---|
16 | });
|
---|
17 | export default Visitor; |
---|
Note:
See
TracBrowser
for help on using the repository browser.