@kizahasi/flocon-script
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -99,2 +99,2 @@ "use strict"; | ||
exports.Context = Context; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFDQSwyREFBNkM7QUFJN0MsTUFBYSxPQUFPO0lBYWhCLFlBQTBCLFVBQStCO1FBQS9CLGVBQVUsR0FBVixVQUFVLENBQXFCO1FBWnpEOzs7Ozs7OztVQVFFO1FBQ00sY0FBUyxHQUEyQyxDQUFDLElBQUksR0FBRyxFQUFFLENBQUMsQ0FBQztRQUlwRSxJQUFJLENBQUMsV0FBVyxHQUFHLFVBQVUsQ0FBQztJQUNsQyxDQUFDO0lBRU0sR0FBRyxDQUFDLElBQVksRUFBRSxLQUF3QjtRQUM3QyxNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsU0FBUzthQUN2QixHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO2FBQzdCLE1BQU0sQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxTQUFTLENBQUM7YUFDaEMsT0FBTyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDbEIsSUFBSSxLQUFLLEtBQUssU0FBUyxFQUFFO1lBQ3JCLE9BQU8sS0FBSyxDQUFDLEdBQUcsQ0FBQztTQUNwQjtRQUNELE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDO1lBQzdCLFFBQVEsRUFBRSxJQUFJLFdBQVcsQ0FBQyxPQUFPLENBQUMsSUFBSSx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AgICAgLnJldmVyc2UoKVswXTtcclxuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICByZXR1cm4gZm91bmQucmVmO1xyXG4gICAgICAgIH1cclxuICAgICAgICBjb25zdCBwcm9wID0gdGhpcy5nbG9iYWxUaGlzLmdldCh7XHJcbiAgICAgICAgICAgIHByb3BlcnR5OiBuZXcgU2NyaXB0VmFsdWUuRlN0cmluZyhuYW1lKSxcclxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxyXG4gICAgICAgIH0pO1xyXG4gICAgICAgIGlmIChwcm9wICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHByb3A7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiB1bmRlZmluZWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGFzc2lnbihuYW1lOiBzdHJpbmcsIG5ld1ZhbHVlOiBTY3JpcHRWYWx1ZS5GVmFsdWUsIHJhbmdlOiBSYW5nZSB8IHVuZGVmaW5lZCk6IHZvaWQge1xyXG4gICAgICAgIGNvbnN0IGZvdW5kID0gdGhpcy52YXJUYWJsZXNcclxuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXHJcbiAgICAgICAgICAgIC5maWx0ZXIodmFsID0+IHZhbCAhPT0gdW5kZWZpbmVkKVxyXG4gICAgICAgICAgICAucmV2ZXJzZSgpWzBdO1xyXG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIGlmIChmb3VuZC5pc0NvbnN0KSB7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYGludmFsaWQgYXNzaWdubWVudCB0byBjb25zdCAnJHtuYW1lfSdgKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBmb3VuZC5yZWYgPSBuZXdWYWx1ZTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLmdsb2JhbFRoaXMuc2V0KHtcclxuICAgICAgICAgICAgcHJvcGVydHk6IG5ldyBTY3JpcHRWYWx1ZS5GU3RyaW5nKG5hbWUpLFxyXG4gICAgICAgICAgICBuZXdWYWx1ZSxcclxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBkZWNsYXJlKG5hbWU6IHN0cmluZywgdmFsdWU6IFNjcmlwdFZhbHVlLkZWYWx1ZSwgdHlwZTogJ2xldCcgfCAnY29uc3QnKTogdm9pZCB7XHJcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcclxuICAgICAgICBpZiAodmFyVGFibGUgPT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgY29uc3QgZm91bmQgPSB2YXJUYWJsZS5nZXQobmFtZSk7XHJcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xyXG4gICAgICAgIH1cclxuICAgICAgICB2YXJUYWJsZS5zZXQobmFtZSwge1xyXG4gICAgICAgICAgICByZWY6IHZhbHVlLFxyXG4gICAgICAgICAgICBpc0NvbnN0OiB0eXBlID09PSAnY29uc3QnLFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzY29wZUluKCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hc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kKTogU2NyaXB0VmFsdWUuRlZhbHVlIHtcclxuICAgICAgICBjb25zdCBmb3VuZCA9IHRoaXMudmFyVGFibGVzXHJcbiAgICAgICAgICAgIC5tYXAodGFibGUgPT4gdGFibGUuZ2V0KG5hbWUpKVxyXG4gICAgICAgICAgICAuZmlsdGVyKHZhbCA9PiB2YWwgIT09IHVuZGVmaW5lZClcclxuICAgICAgICAgICAgLnJldmVyc2UoKVswXTtcclxuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICByZXR1cm4gZm91bmQucmVmO1xyXG4gICAgICAgIH1cclxuICAgICAgICBjb25zdCBwcm9wID0gdGhpcy5nbG9iYWxUaGlzLmdldCh7XHJcbiAgICAgICAgICAgIHByb3BlcnR5OiBuZXcgU2NyaXB0VmFsdWUuRlN0cmluZyhuYW1lKSxcclxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxyXG4gICAgICAgIH0pO1xyXG4gICAgICAgIGlmIChwcm9wICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHByb3A7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiB1bmRlZmluZWQ7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGFzc2lnbihuYW1lOiBzdHJpbmcsIG5ld1ZhbHVlOiBTY3JpcHRWYWx1ZS5GVmFsdWUsIHJhbmdlOiBSYW5nZSB8IHVuZGVmaW5lZCk6IHZvaWQge1xyXG4gICAgICAgIGNvbnN0IGZvdW5kID0gdGhpcy52YXJUYWJsZXNcclxuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXHJcbiAgICAgICAgICAgIC5maWx0ZXIodmFsID0+IHZhbCAhPT0gdW5kZWZpbmVkKVxyXG4gICAgICAgICAgICAucmV2ZXJzZSgpWzBdO1xyXG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIGlmIChmb3VuZC5pc0NvbnN0KSB7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYGludmFsaWQgYXNzaWdubWVudCB0byBjb25zdCAnJHtuYW1lfSdgKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBmb3VuZC5yZWYgPSBuZXdWYWx1ZTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLmdsb2JhbFRoaXMuc2V0KHtcclxuICAgICAgICAgICAgcHJvcGVydHk6IG5ldyBTY3JpcHRWYWx1ZS5GU3RyaW5nKG5hbWUpLFxyXG4gICAgICAgICAgICBuZXdWYWx1ZSxcclxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBkZWNsYXJlKG5hbWU6IHN0cmluZywgdmFsdWU6IFNjcmlwdFZhbHVlLkZWYWx1ZSwgdHlwZTogJ2xldCcgfCAnY29uc3QnKTogdm9pZCB7XHJcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcclxuICAgICAgICBpZiAodmFyVGFibGUgPT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgY29uc3QgZm91bmQgPSB2YXJUYWJsZS5nZXQobmFtZSk7XHJcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xyXG4gICAgICAgIH1cclxuICAgICAgICB2YXJUYWJsZS5zZXQobmFtZSwge1xyXG4gICAgICAgICAgICByZWY6IHZhbHVlLFxyXG4gICAgICAgICAgICBpc0NvbnN0OiB0eXBlID09PSAnY29uc3QnLFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzY29wZUluKCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hcCgpKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc2NvcGVPdXQoKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMudmFyVGFibGVzLmxlbmd0aCA8PSAxKSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcy52YXJUYWJsZXMgbXVzdCBub3QgYmUgZW1wdHknKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgdGhpcy52YXJUYWJsZXMucG9wKCk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ScriptError = exports.FType = exports.FString = exports.FObject = exports.FNumber = exports.FFunction = exports.FBoolean = exports.FArray = exports.toTypeName = exports.beginCast = exports.createFValue = exports.arrayClass = exports.test = exports.exec = void 0; | ||
exports.ScriptError = exports.FType = exports.FString = exports.FRecord = exports.FObject = exports.FNumber = exports.FFunction = exports.FBoolean = exports.FArray = exports.toTypeName = exports.beginCast = exports.createFValue = exports.arrayClass = exports.test = exports.exec = void 0; | ||
var main_1 = require("./main"); | ||
@@ -18,2 +18,3 @@ Object.defineProperty(exports, "exec", { enumerable: true, get: function () { return main_1.exec; } }); | ||
Object.defineProperty(exports, "FObject", { enumerable: true, get: function () { return scriptValue_1.FObject; } }); | ||
Object.defineProperty(exports, "FRecord", { enumerable: true, get: function () { return scriptValue_1.FRecord; } }); | ||
Object.defineProperty(exports, "FString", { enumerable: true, get: function () { return scriptValue_1.FString; } }); | ||
@@ -23,2 +24,2 @@ Object.defineProperty(exports, "FType", { enumerable: true, get: function () { return scriptValue_1.FType; } }); | ||
Object.defineProperty(exports, "ScriptError", { enumerable: true, get: function () { return ScriptError_1.ScriptError; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQW9DO0FBQTNCLDRGQUFBLElBQUksT0FBQTtBQUFFLDRGQUFBLElBQUksT0FBQTtBQUNuQix5Q0FBNkM7QUFBcEMsbUdBQUEsVUFBVSxPQUFBO0FBQ25CLDZDQWdCdUI7QUFmbkIsMkdBQUEsWUFBWSxPQUFBO0FBQ1osd0dBQUEsU0FBUyxPQUFBO0FBQ1QseUdBQUEsVUFBVSxPQUFBO0FBQ1YscUdBQUEsTUFBTSxPQUFBO0FBQ04sdUdBQUEsUUFBUSxPQUFBO0FBQ1Isd0dBQUEsU0FBUyxPQUFBO0FBQ1Qsc0dBQUEsT0FBTyxPQUFBO0FBQ1Asc0dBQUEsT0FBTyxPQUFBO0FBQ1Asc0dBQUEsT0FBTyxPQUFBO0FBRVAsb0dBQUEsS0FBSyxPQUFBO0FBTVQsNkNBQTRDO0FBQW5DLDBHQUFBLFdBQVcsT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGV4ZWMsIHRlc3QgfSBmcm9tICcuL21haW4nO1xyXG5leHBvcnQgeyBhcnJheUNsYXNzIH0gZnJvbSAnLi9idWlsdEluL0FycmF5JztcclxuZXhwb3J0IHtcclxuICAgIGNyZWF0ZUZWYWx1ZSxcclxuICAgIGJlZ2luQ2FzdCxcclxuICAgIHRvVHlwZU5hbWUsXHJcbiAgICBGQXJyYXksXHJcbiAgICBGQm9vbGVhbixcclxuICAgIEZGdW5jdGlvbixcclxuICAgIEZOdW1iZXIsXHJcbiAgICBGT2JqZWN0LFxyXG4gICAgRl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cbiAgICAgICAgY29uc3QgZm91bmQgPSB0aGlzLnZhclRhYmxlc1xyXG4gICAgICAgICAgICAubWFwKHRhYmxlID0+IHRhYmxlLmdldChuYW1lKSlcclxuICAgICAgICAgICAgLmZpbHRlcih2YWwgPT4gdmFsICE9PSB1bmRlZmluZWQpXHJcbiAgICAgICAgICAgIC5yZXZlcnNlKClbMF07XHJcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgaWYgKGZvdW5kLmlzQ29uc3QpIHtcclxuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBhc3NpZ25tZW50IHRvIGNvbnN0ICcke25hbWV9J2ApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGZvdW5kLnJlZiA9IG5ld1ZhbHVlO1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHRoaXMuZ2xvYmFsVGhpcy5zZXQoe1xyXG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IFNjcmlwdFZhbHVlLkZTdHJpbmcobmFtZSksXHJcbiAgICAgICAgICAgIG5ld1ZhbHVlLFxyXG4gICAgICAgICAgICBhc3RJbmZvOiB7IHJhbmdlIH0sXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGRlY2xhcmUobmFtZTogc3RyaW5nLCB2YWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCB0eXBlOiAnbGV0JyB8ICdjb25zdCcpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCB2YXJUYWJsZSA9IHRoaXMudmFyVGFibGVzW3RoaXMudmFyVGFibGVzLmxlbmd0aCAtIDFdO1xyXG4gICAgICAgIGlmICh2YXJUYWJsZSA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBjb25zdCBmb3VuZCA9IHZhclRhYmxlLmdldChuYW1lKTtcclxuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYHJlZGVjbGFyYXRpb24gb2YgJHt0eXBlfSAke25hbWV9YCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XHJcbiAgICAgICAgICAgIHJlZjogdmFsdWUsXHJcbiAgICAgICAgICAgIGlzQ29uc3Q6IHR5cGUgPT09ICdjb25zdCcsXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy52YXJUYWJsZXMucHVzaChuZXcgTWFwKCkpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzY29wZU91dCgpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy52YXJUYWJsZXMubGVuZ3RoIDw9IDEpIHtcclxuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLnZhclRhYmxlcy5wb3AoKTtcclxuICAgIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sS0FBSyxXQUFXLE1BQU0sZUFBZSxDQUFDO0FBSTdDLE1BQU0sT0FBTyxPQUFPO0lBYWhCLFlBQTBCLFVBQStCO1FBQS9CLGVBQVUsR0FBVixVQUFVLENBQXFCO1FBWnp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zdCB2YXJUYWJsZSA9IHRoaXMudmFyVGFibGVzW3RoaXMudmFyVGFibGVzLmxlbmd0aCAtIDFdO1xyXG4gICAgICAgIGlmICh2YXJUYWJsZSA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBjb25zdCBmb3VuZCA9IHZhclRhYmxlLmdldChuYW1lKTtcclxuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYHJlZGVjbGFyYXRpb24gb2YgJHt0eXBlfSAke25hbWV9YCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XHJcbiAgICAgICAgICAgIHJlZjogdmFsdWUsXHJcbiAgICAgICAgICAgIGlzQ29uc3Q6IHR5cGUgPT09ICdjb25zdCcsXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy52YXJUYWJsZXMucHVzaChuZXcgTWFwKCkpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBzY29wZU91dCgpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy52YXJUYWJsZXMubGVuZ3RoIDw9IDEpIHtcclxuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLnZhclRhYmxlcy5wb3AoKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
export { exec, test } from './main'; | ||
export { arrayClass } from './builtIn/Array'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FString, FType, } from './scriptValue'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FType, } from './scriptValue'; | ||
export { ScriptError } from './ScriptError'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDcEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFDSCxZQUFZLEVBQ1osU0FBUyxFQUNULFVBQVUsRUFDVixNQUFNLEVBQ04sUUFBUSxFQUNSLFNBQVMsRUFDVCxPQUFPLEVBQ1AsT0FBTyxFQUNQLE9BQU8sRUFFUCxLQUFLLEdBS1IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGV4ZWMsIHRlc3QgfSBmcm9tICcuL21haW4nO1xyXG5leHBvcnQgeyBhcnJheUNsYXNzIH0gZnJvbSAnLi9idWlsdEluL0FycmF5JztcclxuZXhwb3J0IHtcclxuICAgIGNyZWF0ZUZWYWx1ZSxcclxuICAgIGJlZ2luQ2FzdCxcclxuICAgIHRvVHlwZU5hbWUsXHJcbiAgICBGQXJyYXksXHJcbiAgICBGQm9vbGVhbixcclxuICAgIEZGdW5jdGlvbixcclxuICAgIEZOdW1iZXIsXHJcbiAgICBGT2JqZWN0LFxyXG4gICAgRlN0cmluZyxcclxuICAgIEZWYWx1ZSxcclxuICAgIEZUeXBlLFxyXG4gICAgR2V0UGFyYW1zLFxyXG4gICAgU2V0UGFyYW1zLFxyXG4gICAgT25HZXR0aW5nUGFy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4gICAgRlZhbHVlLFxyXG4gICAgRlR5cGUsXHJcbiAgICBHZXRQYXJhbXMsXHJcbiAgICBTZXRQYXJhbXMsXHJcbiAgICBPbkdldHRpbmdQYXJhbXMsXHJcbiAgICBPblNldHRpbmdQYXJhbXMsXHJcbn0gZnJvbSAnLi9zY3JpcHRWYWx1ZSc7XHJcbmV4cG9ydCB7IFNjcmlwdEVycm9yIH0gZnJvbSAnLi9TY3JpcHRFcnJvcic7XHJcbiJdfQ== |
import { Range } from './range'; | ||
import * as ScriptValue from './scriptValue'; | ||
export declare class Context { | ||
globalThis: ScriptValue.FObject; | ||
globalThis: ScriptValue.FRecord; | ||
private varTables; | ||
currentThis: ScriptValue.FObject | undefined; | ||
constructor(globalThis: ScriptValue.FObject); | ||
currentThis: ScriptValue.FRecord | undefined; | ||
constructor(globalThis: ScriptValue.FRecord); | ||
get(name: string, range: Range | undefined): ScriptValue.FValue; | ||
@@ -9,0 +9,0 @@ assign(name: string, newValue: ScriptValue.FValue, range: Range | undefined): void; |
export { exec, test } from './main'; | ||
export { arrayClass } from './builtIn/Array'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FString, FValue, FType, GetParams, SetParams, OnGettingParams, OnSettingParams, } from './scriptValue'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FValue, FType, GetParams, SetParams, OnGettingParams, OnSettingParams, } from './scriptValue'; | ||
export { ScriptError } from './ScriptError'; |
@@ -36,6 +36,6 @@ import { Option } from '@kizahasi/option'; | ||
const Array = "Array"; | ||
const Record = "Record"; | ||
const Object = "Object"; | ||
const Function = "Function"; | ||
} | ||
export declare const toTypeName: (value: FValue) => "Boolean" | "Number" | "String" | "Array" | "Record" | "Function" | "null" | "undefined"; | ||
export declare const toTypeName: (value: FValue) => "Boolean" | "Number" | "String" | "Array" | "Object" | "Function" | "null" | "undefined"; | ||
declare class JObjectCaster<T = never> { | ||
@@ -53,3 +53,3 @@ private readonly source; | ||
addNumber(): JObjectCaster<T | number>; | ||
addObject(): JObjectCaster<T | FObject>; | ||
addObject(): JObjectCaster<T | FRecord>; | ||
addString(): JObjectCaster<T | string>; | ||
@@ -104,12 +104,17 @@ addUndefined(): JObjectCaster<T | undefined>; | ||
} | ||
export declare class FObject implements FObjectBase { | ||
private readonly raw; | ||
constructor(base?: FObject); | ||
get type(): typeof FType.Record; | ||
protected onGetting(params: OnGettingParams): Option<FValue>; | ||
export declare abstract class FObject implements FObjectBase { | ||
protected abstract getCore(params: OnGettingParams): FValue; | ||
get({ property, astInfo }: GetParams): FValue; | ||
protected onSetting(params: OnSettingParams): void; | ||
protected abstract setCore(params: OnSettingParams): void; | ||
set({ property, newValue, astInfo }: SetParams): void; | ||
get type(): typeof FType.Object; | ||
toPrimitiveAsString(): string; | ||
toPrimitiveAsNumber(): number; | ||
abstract toJObject(): unknown; | ||
} | ||
export declare class FRecord extends FObject { | ||
private readonly raw; | ||
constructor(base?: FRecord); | ||
protected getCore({ key }: OnGettingParams): FValue; | ||
protected setCore({ key, newValue }: OnSettingParams): void; | ||
toJObject(): unknown; | ||
@@ -138,7 +143,7 @@ } | ||
} | ||
export declare type FValue = null | undefined | FBoolean | FNumber | FString | FArray | FObject | FFunction; | ||
export declare class FGlobalRecord extends FObject { | ||
constructor(base?: FObject); | ||
protected onGetting({ key }: OnGettingParams): import("@kizahasi/option").None | import("@kizahasi/option").Some<this>; | ||
protected onSetting({ key, astInfo }: OnSettingParams): void; | ||
export declare type FValue = null | undefined | FBoolean | FNumber | FString | FArray | FRecord | FFunction; | ||
export declare class FGlobalRecord extends FRecord { | ||
constructor(base?: FRecord); | ||
protected getCore(params: OnGettingParams): FValue; | ||
protected setCore({ key, newValue, astInfo }: OnSettingParams): void; | ||
} | ||
@@ -145,0 +150,0 @@ export declare function createFValue(source: unknown): FValue; |
{ | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
447651
3313