@kizahasi/flocon-script
Advanced tools
Comparing version 0.8.1-beta.6 to 0.8.1-beta.7
@@ -15,2 +15,6 @@ "use strict"; | ||
} | ||
const xAsObjectBase = x; | ||
if (xAsObjectBase.equals != null) { | ||
return xAsObjectBase.equals(y, '=='); | ||
} | ||
switch (x.type) { | ||
@@ -45,2 +49,2 @@ case FType_1.FType.Boolean: | ||
exports.eqeq = eqeq; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zY3JpcHRWYWx1ZS9lcWVxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrRkFBK0Y7OztBQUUvRixtQ0FBZ0M7QUFFaEMsK0NBQTRDO0FBRTVDLHlGQUF5RjtBQUNsRixNQUFNLElBQUksR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQVcsRUFBRTtJQUNsRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLENBQUMsSUFBSSxJQUFJLENBQUM7S0FDcEI7SUFDRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLEtBQUssQ0FBQztLQUNoQjtJQUVELFFBQVEsQ0FBQyxDQUFDLElBQUksRUFBRTtRQUNaLEtBQUssYUFBSyxDQUFDLE9BQU8sQ0FBQztRQUNuQixLQUFLLGFBQUssQ0FBQyxNQUFNLENBQUM7UUFDbEIsS0FBSyxhQUFLLENBQUMsTUFBTSxDQUFDO1FBQ2xCLEtBQUssYUFBSyxDQUFDLE1BQU07WUFDYixRQUFRLENBQUMsQ0FBQyxJQUFJLEVBQUU7Z0JBQ1osS0FBSyxhQUFLLENBQUMsT0FBTyxDQUFDO2dCQUNuQixLQUFLLGFBQUssQ0FBQyxNQUFNLENBQUM7Z0JBQ2xCLEtBQUssYUFBSyxDQUFDLE1B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AgICAgICAgfVxuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgc3dpdGNoICh5LnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLkJvb2xlYW46XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5OdW1iZXI6XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5TdHJpbmc6XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5TeW1ib2w6XG4gICAgICAgICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBlcWVxZXFcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRvUHJpbWl0aXZlKHgsICdkZWZhdWx0JykgPT0geS5yYXc7XG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHggPT09IHk7XG4gICAgICAgICAgICB9XG4gICAgfVxufTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zY3JpcHRWYWx1ZS9lcWVxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrRkFBK0Y7OztBQUUvRixtQ0FBZ0M7QUFFaEMsK0NBQTRDO0FBRzVDLHlGQUF5RjtBQUNsRixNQUFNLElBQUksR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQVcsRUFBRTtJQUNsRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLENBQUMsSUFBSSxJQUFJLENBQUM7S0FDcEI7SUFDRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLEtBQUssQ0FBQztLQUNoQjtJQUNELE1BQU0sYUFBYSxHQUFnQixDQUFDLENBQUM7SUFDckMsSUFBSSxhQUFhLENB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cmV0dXJuIHhBc09iamVjdEJhc2UuZXF1YWxzKHksICc9PScpO1xuICAgIH1cblxuICAgIHN3aXRjaCAoeC50eXBlKSB7XG4gICAgICAgIGNhc2UgRlR5cGUuQm9vbGVhbjpcbiAgICAgICAgY2FzZSBGVHlwZS5OdW1iZXI6XG4gICAgICAgIGNhc2UgRlR5cGUuU3RyaW5nOlxuICAgICAgICBjYXNlIEZUeXBlLlN5bWJvbDpcbiAgICAgICAgICAgIHN3aXRjaCAoeS50eXBlKSB7XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5Cb29sZWFuOlxuICAgICAgICAgICAgICAgIGNhc2UgRlR5cGUuTnVtYmVyOlxuICAgICAgICAgICAgICAgIGNhc2UgRlR5cGUuU3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZXFlcWVxXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB4LnJhdyA9PSB5LnJhdztcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZXFlcWVxXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB4LnJhdyA9PSB0b1ByaW1pdGl2ZSh5LCAnZGVmYXVsdCcpO1xuICAgICAgICAgICAgfVxuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgc3dpdGNoICh5LnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLkJvb2xlYW46XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5OdW1iZXI6XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5TdHJpbmc6XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5TeW1ib2w6XG4gICAgICAgICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBlcWVxZXFcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRvUHJpbWl0aXZlKHgsICdkZWZhdWx0JykgPT0geS5yYXc7XG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHggPT09IHk7XG4gICAgICAgICAgICB9XG4gICAgfVxufTtcbiJdfQ== |
@@ -12,2 +12,6 @@ "use strict"; | ||
} | ||
const xAsObjectBase = x; | ||
if (xAsObjectBase.equals != null) { | ||
return xAsObjectBase.equals(y, '==='); | ||
} | ||
switch (x.type) { | ||
@@ -27,2 +31,2 @@ case FType_1.FType.Boolean: | ||
exports.eqeqeq = eqeqeq; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcWVxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NjcmlwdFZhbHVlL2VxZXFlcS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtQ0FBZ0M7QUFHekIsTUFBTSxNQUFNLEdBQUcsQ0FBQyxDQUFTLEVBQUUsQ0FBUyxFQUFXLEVBQUU7SUFDcEQsSUFBSSxDQUFDLEtBQUssSUFBSSxFQUFFO1FBQ1osT0FBTyxDQUFDLEtBQUssSUFBSSxDQUFDO0tBQ3JCO0lBQ0QsSUFBSSxDQUFDLEtBQUssU0FBUyxFQUFFO1FBQ2pCLE9BQU8sQ0FBQyxLQUFLLFNBQVMsQ0FBQztLQUMxQjtJQUNELFFBQVEsQ0FBQyxDQUFDLElBQUksRUFBRTtRQUNaLEtBQUssYUFBSyxDQUFDLE9BQU8sQ0FBQztRQUNuQixLQUFLLGFBQUssQ0FBQyxNQUFNLENBQUM7UUFDbEIsS0FBSyxhQUFLLENBQUMsTUFBTSxDQUFDO1FBQ2xCLEtBQUssYUFBSyxDQUFDLE1BQU07WUFDYixJQUFJLENBQUEsQ0FBQyxhQUFELENBQUMsdUJBQUQsQ0FBQyxDQUFFLElBQUksTU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||
static prepareInstanceMethod(isNew, astInfo) { | ||
prepareInstanceMethod(isNew, astInfo) { | ||
if (isNew) { | ||
@@ -56,3 +56,3 @@ throw ScriptError_1.ScriptError.notConstructorError(astInfo === null || astInfo === void 0 ? void 0 : astInfo.range); | ||
return new FFunction_1.FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -65,3 +65,3 @@ this.validateKey(key); | ||
return new FFunction_1.FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const callbackfn = (0, cast_1.beginCast)(args[0], astInfo).addFunction().cast()(false); | ||
@@ -79,3 +79,3 @@ for (const key in this.source) { | ||
return new FFunction_1.FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -91,3 +91,3 @@ this.validateKey(key); | ||
return new FFunction_1.FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -99,3 +99,3 @@ this.validateKey(key); | ||
return new FFunction_1.FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -123,4 +123,10 @@ this.validateKey(key); | ||
} | ||
equals(other) { | ||
if (other instanceof FRecordRef) { | ||
return this.source === other.source; | ||
} | ||
return false; | ||
} | ||
} | ||
exports.FRecordRef = FRecordRef; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRlJlY29yZFJlZi5qcyIsInNv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3RhcnRzV2l0aCgnX18nKSkge1xuICAgICAgICAgICAgZmFpbCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGdldCB0eXBlKCk6IHR5cGVvZiBGVHlwZS5PYmplY3Qge1xuICAgICAgICByZXR1cm4gRlR5cGUuT2JqZWN0O1xuICAgIH1cblxuICAgIHB1YmxpYyBvdmVycmlkZSBnZXRDb3JlKHBhcmFtczogR2V0Q29yZVBhcmFtcyk6IEZWYWx1ZSB7XG4gICAgICAgIGNvbnN0IHsga2V5LCBhc3RJbmZvIH0gPSBwYXJhbXM7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdkZWxldGUnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgRlJlY29yZFJlZi5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRLZXlCYWNrKGFyZ3NbMF0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbGlkYXRlS2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnZm9yRWFjaCc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBGUmVjb3JkUmVmLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNhbGxiYWNrZm4gPSBiZWdpbkNhc3QoYXJnc1swXSwgYXN0SW5mbykuYWRkRnVuY3Rpb24oKS5jYXN0KCkoZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiB0aGlzLnNvdXJjZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrZm4oW3RoaXMuY29udmVydFZhbHVlKHZhbHVlKSwgdG9GVmFsdWUoa2V5KV0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdnZXQnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgRlJlY29yZFJlZi5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRLZXlCYWNrKGFyZ3NbMF0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbGlkYXRlS2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gdGhpcy5zb3VyY2Vba2V5XTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29udmVydFZhbHVlKHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGNhc2UgJ2hhcyc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBGUmVjb3JkUmVmLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihrZXkgaW4gdGhpcy5zb3VyY2UpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnc2V0JzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIEZSZWNvcmRSZWYucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gdGhpcy5jb252ZXJ0S2V5QmFjayhhcmdzWzBdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWxpZGF0ZUtleShrZXkpO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHRoaXMuY29udmVydFZhbHVlQmFjayhhcmdzWzFdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zb3VyY2Vba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ogdHlwZW9mIEZUeXBlLk9iamVjdCB7XG4gICAgICAgIHJldHVybiBGVHlwZS5PYmplY3Q7XG4gICAgfVxuXG4gICAgcHVibGljIG92ZXJyaWRlIGdldENvcmUocGFyYW1zOiBHZXRDb3JlUGFyYW1zKTogRlZhbHVlIHtcbiAgICAgICAgY29uc3QgeyBrZXksIGFzdEluZm8gfSA9IHBhcmFtcztcbiAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICAgIGNhc2UgJ2RlbGV0ZSc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIHRoaXMuc291cmNlW2tleV07XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdmb3JFYWNoJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgY2FsbGJhY2tmbiA9IGJlZ2luQ2FzdChhcmdzWzBdLCBhc3RJbmZvKS5hZGRGdW5jdGlvbigpLmNhc3QoKShmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIHRoaXMuc291cmNlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHRoaXMuc291cmNlW2tleV07XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2tmbihbdGhpcy5jb252ZXJ0VmFsdWUodmFsdWUpLCB0b0ZWYWx1ZShrZXkpXSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGNhc2UgJ2dldCc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5jb252ZXJ0VmFsdWUodmFsdWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnaGFzJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gdGhpcy5jb252ZXJ0S2V5QmFjayhhcmdzWzBdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWxpZGF0ZUtleShrZXkpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGtleSBpbiB0aGlzLnNvdXJjZSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdzZXQnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRLZXlCYWNrKGFyZ3NbMF0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbGlkYXRlS2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gdGhpcy5jb252ZXJ0VmFsdWVCYWNrKGFyZ3NbMV0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNvdXJjZVtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG5cbiAgICBwdWJsaWMgb3ZlcnJpZGUgc2V0Q29yZShwYXJhbXM6IFNldENvcmVQYXJhbXMpOiB2b2lkIHtcbiAgICAgICAgdGhyb3cgbmV3IFNjcmlwdEVycm9yKCdZb3UgY2Fubm90IHNldCBhbnkgdmFsdWUgdG8gdGhpcyBvYmplY3QnLCBwYXJhbXMuYXN0SW5mbz8ucmFuZ2UpO1xuICAgIH1cblxuICAgIHB1YmxpYyBvdmVycmlkZSB0b1ByaW1pdGl2ZUFzU3RyaW5nKCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiAnW29iamVjdCBPYmplY3RdJztcbiAgICB9XG5cbiAgICBwdWJsaWMgb3ZlcnJpZGUgdG9QcmltaXRpdmVBc051bWJlcigpOiBudW1iZXIge1xuICAgICAgICByZXR1cm4gTmFOO1xuICAgIH1cblxuICAgIHB1YmxpYyBvdmVycmlkZSB0b0pPYmplY3QoKTogUmVjb3JkPHN0cmluZywgVFZhbHVlPiB7XG4gICAgICAgIHJldHVybiB0aGlzLnNvdXJjZTtcbiAgICB9XG5cbiAgICBwdWJsaWMgZXF1YWxzKG90aGVyOiBGVmFsdWUpOiBib29sZWFuIHtcbiAgICAgICAgaWYgKG90aGVyIGluc3RhbmNlb2YgRlJlY29yZFJlZikge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuc291cmNlID09PSBvdGhlci5zb3VyY2U7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbn1cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2NyaXB0VmFsdWUvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFJhbmdlIH0gZnJvbSAnLi4vcm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8IG51bWJlciB8IHN5bWJvbDtcbiAgICBuZXdWYWx1ZTogRlZhbHVlO1xuICAgIGFzdEluZm8/OiBBc3RJbmZvO1xufTtcblxuZXhwb3J0IHR5cGUgT25TZXR0aW5nUGFyYW1zID0gU2V0Q29yZVBhcmFtcztcblxuZXhwb3J0IHR5cGUgRk9iamVjdEJhc2UgPSB7XG4gICAgZ2V0KHBhcmFtczogR2V0UGFyYW1zKTogRlZhbHVlO1xuICAgIHNldChwYXJhbXM6IFNldFBhcmFtcyk6IHZvaWQ7XG4gICAgdG9QcmltaXRpdmVBc051bWJlcigpOiBudW1iZXI7XG4gICAgdG9QcmltaXRpdmVBc1N0cmluZygpOiBzdHJpbmc7XG4gICAgdG9QcmltaXRpdmVBc0RlZmF1bHQ/KCk6IG51bWJlciB8IHN0cmluZztcblxuICAgIC8vIGl0ZXJhdGXlj6/og73jgarloLTlkIjjga/lrp/oo4XjgZnjgovjgILlrp/oo4XjgZfjgarjgYTloLTlkIjjga9pdGVyYXRl5LiN5Y+v6IO944Go5Yik5pat44GV44KM44KL44CCXG4gICAgaXRlcmF0ZT8oKTogSXRlcmFibGVJdGVyYXRvcjxGVmFsdWU+O1xuXG4gICAgLy8gPT3jgag9PT3jga7ntZDmnpzjgpLjgqvjgrnjgr/jg57jgqTjgrrjgZfjgZ/jgYTloLTlkIjjgavlrp/oo4XjgZnjgovjgILlrp/oo4XjgZfjgZ/loLTlkIjjgIHjgZPjga7jg6Hjgr3jg4Pjg4njgYzpq5jlhKrlhYjluqbjgafnrYnkvqHmr5TovIPjgavkvb/jgo/jgozjgovvvIjjgZ/jgaDjgZfjganjgaHjgonjgYvjga7lgKTjgYxudWxsaXNo44Gu5aC05ZCI44Gv6Zmk44GP77yJ44CCXG4gICAgZXF1YWxzPyhvdGhlcjogRlZhbHVlLCBvcGVyYXRvcjogJz09JyB8ICc9PT0nKTogYm9vbGVhbjtcbn07XG4iXX0= |
@@ -12,2 +12,6 @@ // 例えばxとyがObjectのときは x === y で比較されるため、「toPrimitiveで変換してから==で比較」という作戦は使えない。そのため、ここで専用の関数を定義している。 | ||
} | ||
const xAsObjectBase = x; | ||
if (xAsObjectBase.equals != null) { | ||
return xAsObjectBase.equals(y, '=='); | ||
} | ||
switch (x.type) { | ||
@@ -41,2 +45,2 @@ case FType.Boolean: | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zY3JpcHRWYWx1ZS9lcWVxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLCtGQUErRjtBQUUvRixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRWhDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFNUMseUZBQXlGO0FBQ3pGLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQVcsRUFBRTtJQUNsRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLENBQUMsSUFBSSxJQUFJLENBQUM7S0FDcEI7SUFDRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLEtBQUssQ0FBQztLQUNoQjtJQUVELFFBQVEsQ0FBQyxDQUFDLElBQUksRUFBRTtRQUNaLEtBQUssS0FBSyxDQUFDLE9BQU8sQ0FBQztRQUNuQixLQUFLLEtBQUssQ0FBQyxNQUFNLENBQUM7UUFDbEIsS0FBSyxLQUFLLENBQUMsTUFBTSxDQUFDO1FBQ2xCLEtBQUssS0FBSyxDQUFDLE1BQU07WUFDYixRQUFRLENBQUMsQ0FBQyxJQUFJLEVBQUU7Z0JBQ1osS0FBSyxLQUFLLENBQUMsT0FBTyxDQUFDO2dCQUNuQixLQUFLLEtBQUssQ0FBQyxNQ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G4gICAgICAgICAgICB9XG4gICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBzd2l0Y2ggKHkudHlwZSkge1xuICAgICAgICAgICAgICAgIGNhc2UgRlR5cGUuQm9vbGVhbjpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLk51bWJlcjpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLlN0cmluZzpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLlN5bWJvbDpcbiAgICAgICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIGVxZXFlcVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdG9QcmltaXRpdmUoeCwgJ2RlZmF1bHQnKSA9PSB5LnJhdztcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICByZXR1cm4geCA9PT0geTtcbiAgICAgICAgICAgIH1cbiAgICB9XG59O1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zY3JpcHRWYWx1ZS9lcWVxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLCtGQUErRjtBQUUvRixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRWhDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHNUMseUZBQXlGO0FBQ3pGLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQVcsRUFBRTtJQUNsRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxPQUFPLENBQUMsSUFBSSxJQUFJLENBQUM7S0FDcEI7SUFDRCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUU7UUFDWCxP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mFzZS5lcXVhbHMgIT0gbnVsbCkge1xuICAgICAgICByZXR1cm4geEFzT2JqZWN0QmFzZS5lcXVhbHMoeSwgJz09Jyk7XG4gICAgfVxuXG4gICAgc3dpdGNoICh4LnR5cGUpIHtcbiAgICAgICAgY2FzZSBGVHlwZS5Cb29sZWFuOlxuICAgICAgICBjYXNlIEZUeXBlLk51bWJlcjpcbiAgICAgICAgY2FzZSBGVHlwZS5TdHJpbmc6XG4gICAgICAgIGNhc2UgRlR5cGUuU3ltYm9sOlxuICAgICAgICAgICAgc3dpdGNoICh5LnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLkJvb2xlYW46XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5OdW1iZXI6XG4gICAgICAgICAgICAgICAgY2FzZSBGVHlwZS5TdHJpbmc6XG4gICAgICAgICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBlcWVxZXFcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHgucmF3ID09IHkucmF3O1xuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBlcWVxZXFcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHgucmF3ID09IHRvUHJpbWl0aXZlKHksICdkZWZhdWx0Jyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBzd2l0Y2ggKHkudHlwZSkge1xuICAgICAgICAgICAgICAgIGNhc2UgRlR5cGUuQm9vbGVhbjpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLk51bWJlcjpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLlN0cmluZzpcbiAgICAgICAgICAgICAgICBjYXNlIEZUeXBlLlN5bWJvbDpcbiAgICAgICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIGVxZXFlcVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdG9QcmltaXRpdmUoeCwgJ2RlZmF1bHQnKSA9PSB5LnJhdztcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICByZXR1cm4geCA9PT0geTtcbiAgICAgICAgICAgIH1cbiAgICB9XG59O1xuIl19 |
@@ -9,2 +9,6 @@ import { FType } from './FType'; | ||
} | ||
const xAsObjectBase = x; | ||
if (xAsObjectBase.equals != null) { | ||
return xAsObjectBase.equals(y, '==='); | ||
} | ||
switch (x.type) { | ||
@@ -23,2 +27,2 @@ case FType.Boolean: | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXFlcWVxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NjcmlwdFZhbHVlL2VxZXFlcS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBR2hDLE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQVcsRUFBRTtJQUNwRCxJQUFJLENBQUMsS0FBSyxJQUFJLEVBQUU7UUFDWixPQUFPLENBQUMsS0FBSyxJQUFJLENBQUM7S0FDckI7SUFDRCxJQUFJLENBQUMsS0FBSyxTQUFTLEVBQUU7UUFDakIsT0FBTyxDQUFDLEtBQUssU0FBUyxDQUFDO0tBQzFCO0lBQ0QsUUFBUSxDQUFDLENBQUMsSUFBSSxFQUFFO1FBQ1osS0FBSyxLQUFLLENBQUMsT0FBTyxDQUFDO1FBQ25CLEtBQUssS0FBSyxDQUFDLE1BQU0sQ0FBQztRQUNsQixLQUFLLEtBQUssQ0FBQyxNQUFNLENBQUM7UUFDbEIsS0FBSyxLQUFLLENBQUMsTUFBTTtZQUNiLElBQUksQ0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== |
@@ -16,3 +16,3 @@ import { FObject } from './FObject'; | ||
} | ||
static prepareInstanceMethod(isNew, astInfo) { | ||
prepareInstanceMethod(isNew, astInfo) { | ||
if (isNew) { | ||
@@ -53,3 +53,3 @@ throw ScriptError.notConstructorError(astInfo === null || astInfo === void 0 ? void 0 : astInfo.range); | ||
return new FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -62,3 +62,3 @@ this.validateKey(key); | ||
return new FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const callbackfn = beginCast(args[0], astInfo).addFunction().cast()(false); | ||
@@ -76,3 +76,3 @@ for (const key in this.source) { | ||
return new FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -88,3 +88,3 @@ this.validateKey(key); | ||
return new FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -96,3 +96,3 @@ this.validateKey(key); | ||
return new FFunction(({ args, isNew }) => { | ||
FRecordRef.prepareInstanceMethod(isNew, astInfo); | ||
this.prepareInstanceMethod(isNew, astInfo); | ||
const key = this.convertKeyBack(args[0], astInfo); | ||
@@ -120,3 +120,9 @@ this.validateKey(key); | ||
} | ||
equals(other) { | ||
if (other instanceof FRecordRef) { | ||
return this.source === other.source; | ||
} | ||
return false; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRlJlY29yZFJlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4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woKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBfX3Byb3RvX1/jga7ku5bjgavjgIHlv7Xjga7jgZ/jgoFfX2RlZmluZVNldHRlcl9f44Gq44Gp44KC5by+44GR44KL44KI44GG44Gq5Yem55CG44KS44GX44Gm44GE44KLXG4gICAgICAgIGlmIChrZXkuc3RhcnRzV2l0aCgnX18nKSkge1xuICAgICAgICAgICAgZmFpbCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGdldCB0eXBlKCk6IHR5cGVvZiBGVHlwZS5PYmplY3Qge1xuICAgICAgICByZXR1cm4gRlR5cGUuT2JqZWN0O1xuICAgIH1cblxuICAgIHB1YmxpYyBvdmVycmlkZSBnZXRDb3JlKHBhcmFtczogR2V0Q29yZVBhcmFtcyk6IEZWYWx1ZSB7XG4gICAgICAgIGNvbnN0IHsga2V5LCBhc3RJbmZvIH0gPSBwYXJhbXM7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdkZWxldGUnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgRlJlY29yZFJlZi5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRLZXlCYWNrKGFyZ3NbMF0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbGlkYXRlS2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnZm9yRWFjaCc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBGUmVjb3JkUmVmLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNhbGxiYWNrZm4gPSBiZWdpbkNhc3QoYXJnc1swXSwgYXN0SW5mbykuYWRkRnVuY3Rpb24oKS5jYXN0KCkoZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiB0aGlzLnNvdXJjZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrZm4oW3RoaXMuY29udmVydFZhbHVlKHZhbHVlKSwgdG9GVmFsdWUoa2V5KV0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdnZXQnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgRlJlY29yZFJlZi5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRLZXlCYWNrKGFyZ3NbMF0sIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbGlkYXRlS2V5KGtleSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gdGhpcy5zb3VyY2Vba2V5XTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29udmVydFZhbHVlKHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGNhc2UgJ2hhcyc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBGUmVjb3JkUmVmLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihrZXkgaW4gdGhpcy5zb3VyY2UpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnc2V0JzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIEZSZWNvcmRSZWYucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gdGhpcy5jb252ZXJ0S2V5QmFjayhhcmdzWzBdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWxpZGF0ZUtleShrZXkpO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHRoaXMuY29udmVydFZhbHVlQmFjayhhcmdzWzFdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zb3VyY2Vba2V5XSA9IHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgfVxuXG4gICAgcHVibGljIG92ZXJyaWRlIHNldENvcmUocGFyYW1zOiBTZXRDb3JlUGFyYW1zKTogdm9pZCB7XG4gICAgICAgIHRocm93IG5ldyBTY3JpcHRFcnJvcignWW91IGNhbm5vdCBzZXQgYW55IHZhbHVlIHRvIHRoaXMgb2JqZWN0JywgcGFyYW1zLmFzdEluZm8/LnJhbmdlKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgb3ZlcnJpZGUgdG9QcmltaXRpdmVBc1N0cmluZygpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gJ1tvYmplY3QgT2JqZWN0XSc7XG4gICAgfVxuXG4gICAgcHVibGljIG92ZXJyaWRlIHRvUHJpbWl0aXZlQXNOdW1iZXIoKTogbnVtYmVyIHtcbiAgICAgICAgcmV0dXJuIE5hTjtcbiAgICB9XG5cbiAgICBwdWJsaWMgb3ZlcnJpZGUgdG9KT2JqZWN0KCk6IFJlY29yZDxzdHJpbmcsIFRWYWx1ZT4ge1xuICAgICAgICByZXR1cm4gdGhpcy5zb3VyY2U7XG4gICAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRlJlY29yZFJlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zY3JpcHRWYWx1ZS9GUmVjb3JkUmVmL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cbiAgICAgICAgICAgIGNhc2UgJ2NvbnN0cnVjdG9yJzpcbiAgICAgICAgICAgIGNhc2UgJ3Byb3RvdHlwZSc6XG4gICAgICAgICAgICAgICAgZmFpbCgpO1xuICAgICAgICB9XG4gICAgICAgIC8vIF9fcHJvdG9fX+OBruS7luOBq+OAgeW/teOBruOBn+OCgV9fZGVmaW5lU2V0dGVyX1/jgarjganjgoLlvL7jgZHjgovjgojjgYbjgarlh6bnkIbjgpLjgZfjgabjgYTjgotcbiAgICAgICAgaWYgKGtleS5zdGFydHNXaXRoKCdfXycpKSB7XG4gICAgICAgICAgICBmYWlsKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IHR5cGUoKTogdHlwZW9mIEZUeXBlLk9iamVjdCB7XG4gICAgICAgIHJldHVybiBGVHlwZS5PYmplY3Q7XG4gICAgfVxuXG4gICAgcHVibGljIG92ZXJyaWRlIGdldENvcmUocGFyYW1zOiBHZXRDb3JlUGFyYW1zKTogRlZhbHVlIHtcbiAgICAgICAgY29uc3QgeyBrZXksIGFzdEluZm8gfSA9IHBhcmFtcztcbiAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICAgIGNhc2UgJ2RlbGV0ZSc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIHRoaXMuc291cmNlW2tleV07XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdmb3JFYWNoJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgY2FsbGJhY2tmbiA9IGJlZ2luQ2FzdChhcmdzWzBdLCBhc3RJbmZvKS5hZGRGdW5jdGlvbigpLmNhc3QoKShmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIHRoaXMuc291cmNlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHRoaXMuc291cmNlW2tleV07XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2tmbihbdGhpcy5jb252ZXJ0VmFsdWUodmFsdWUpLCB0b0ZWYWx1ZShrZXkpXSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGNhc2UgJ2dldCc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByZXBhcmVJbnN0YW5jZU1ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IHRoaXMuY29udmVydEtleUJhY2soYXJnc1swXSwgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudmFsaWRhdGVLZXkoa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdmFsdWUgPSB0aGlzLnNvdXJjZVtrZXldO1xuICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5jb252ZXJ0VmFsdWUodmFsdWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY2FzZSAnaGFzJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJlcGFyZUluc3RhbmNlTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gdGhpcy5jb252ZXJ0S2V5QmFjayhhcmdzWzBdLCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWxpZGF0ZUtleShrZXkpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGtleSBpbiB0aGlzLnNvdXJjZSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjYXNlICdzZXQnOlxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wcmVwYXJlSW5zdGFuY2VNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSB0aGlzLmNvbnZlcnRL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vO1xufTtcblxuZXhwb3J0IHR5cGUgT25TZXR0aW5nUGFyYW1zID0gU2V0Q29yZVBhcmFtcztcblxuZXhwb3J0IHR5cGUgRk9iamVjdEJhc2UgPSB7XG4gICAgZ2V0KHBhcmFtczogR2V0UGFyYW1zKTogRlZhbHVlO1xuICAgIHNldChwYXJhbXM6IFNldFBhcmFtcyk6IHZvaWQ7XG4gICAgdG9QcmltaXRpdmVBc051bWJlcigpOiBudW1iZXI7XG4gICAgdG9QcmltaXRpdmVBc1N0cmluZygpOiBzdHJpbmc7XG4gICAgdG9QcmltaXRpdmVBc0RlZmF1bHQ/KCk6IG51bWJlciB8IHN0cmluZztcblxuICAgIC8vIGl0ZXJhdGXlj6/og73jgarloLTlkIjjga/lrp/oo4XjgZnjgovjgILlrp/oo4XjgZfjgarjgYTloLTlkIjjga9pdGVyYXRl5LiN5Y+v6IO944Go5Yik5pat44GV44KM44KL44CCXG4gICAgaXRlcmF0ZT8oKTogSXRlcmFibGVJdGVyYXRvcjxGVmFsdWU+O1xufTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2NyaXB0VmFsdWUvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFJhbmdlIH0gZnJvbSAnLi4vcmFuZ2UnO1xuaW1wb3J0IHsgRlZhbHVlIH0gZnJvbSAnLi9GVmFsdWUnO1xuXG5leHBvcnQgdHlwZSBBc3RJbmZvID0ge1xuICAgIHJhbmdlPzogUmFuZ2U7XG59O1xuXG5leHBvcnQgdHlwZSBHZXRQYXJhbXMgPSB7XG4gICAgcHJvcGVydHk6IEZWYWx1ZTtcbiAgICBhc3RJbmZvPzogQXN0SW5mbztcbn07XG5cbmV4cG9ydCB0eXBlIFNldFBhcmF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jgYTloLTlkIjjgavlrp/oo4XjgZnjgovjgILlrp/oo4XjgZfjgZ/loLTlkIjjgIHjgZPjga7jg6Hjgr3jg4Pjg4njgYzpq5jlhKrlhYjluqbjgafnrYnkvqHmr5TovIPjgavkvb/jgo/jgozjgovvvIjjgZ/jgaDjgZfjganjgaHjgonjgYvjga7lgKTjgYxudWxsaXNo44Gu5aC05ZCI44Gv6Zmk44GP77yJ44CCXG4gICAgZXF1YWxzPyhvdGhlcjogRlZhbHVlLCBvcGVyYXRvcjogJz09JyB8ICc9PT0nKTogYm9vbGVhbjtcbn07XG4iXX0= |
@@ -6,9 +6,9 @@ import { FObject } from './FObject'; | ||
export declare class FRecordRef<TValue> extends FObject { | ||
private readonly source; | ||
private readonly convertValue; | ||
private readonly convertValueBack; | ||
readonly source: Record<string, TValue>; | ||
protected readonly convertValue: (value: TValue) => FValue; | ||
protected readonly convertValueBack: (value: FValue, astInfo: AstInfo | undefined) => TValue; | ||
constructor(source: Record<string, TValue>, convertValue: (value: TValue) => FValue, convertValueBack: (value: FValue, astInfo: AstInfo | undefined) => TValue); | ||
private static prepareInstanceMethod; | ||
private convertKeyBack; | ||
private validateKey; | ||
protected prepareInstanceMethod(isNew: boolean, astInfo: AstInfo | undefined): void; | ||
protected convertKeyBack(source: FValue, astInfo: AstInfo | undefined): string; | ||
protected validateKey(key: string): void; | ||
get type(): typeof FType.Object; | ||
@@ -20,2 +20,3 @@ getCore(params: GetCoreParams): FValue; | ||
toJObject(): Record<string, TValue>; | ||
equals(other: FValue): boolean; | ||
} |
@@ -33,2 +33,3 @@ import { Range } from '../range'; | ||
iterate?(): IterableIterator<FValue>; | ||
equals?(other: FValue, operator: '==' | '==='): boolean; | ||
}; |
{ | ||
"version": "0.8.1-beta.6", | ||
"version": "0.8.1-beta.7", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/cjs/index.js", |
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
787937
5752