const DocumentedItem = require('./item');
const { root } = require('../config');

class DocumentedItemMeta extends DocumentedItem {
	registerMetaInfo(data) {
		this.directData = {
			line: data.lineno,
			file: data.filename,
			path: data.path.replace(root, '').replace(/\\/g, '/')
		};
	}

	serialize() {
		return {
			line: this.directData.line,
			file: this.directData.file,
			path: this.directData.path
		};
	}
}

/*
   { lineno: 7,
     filename: 'VoiceChannel.js',
     path: 'src/structures' },
*/

module.exports = DocumentedItemMeta;

@@ -1,12 +1,42 @@
+const path = require('path');%0A
 const Docume
@@ -262,32 +262,28 @@
 th: 
-data.
 path.re
-p
 la
-c
+tiv
 e(root, 
 '').
@@ -282,10 +282,17 @@
 ot, 
-''
+data.path
 ).re

Improve meta path