UNPKG

greyscript-core

Version:
26 lines (25 loc) 925 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ASTChunkGreyScript = void 0; const greybel_core_1 = require("greybel-core"); class ASTChunkGreyScript extends greybel_core_1.ASTChunkGreybel { constructor(options) { super(options); this.nativeImports = options.nativeImports || []; } clone() { return new ASTChunkGreyScript({ nativeImports: this.nativeImports.map((it) => it.clone()), imports: this.imports.map((it) => it.clone()), includes: this.includes.map((it) => it.clone()), literals: this.literals.map((it) => it.clone()), scopes: this.scopes.map((it) => it.clone()), lines: this.lines, start: this.start, end: this.end, range: this.range, scope: this.scope }); } } exports.ASTChunkGreyScript = ASTChunkGreyScript;