hclang 0.24.2 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,7 +218,7 @@ export class FrameList extends Frame {
|
|
|
218
218
|
*/
|
|
219
219
|
holdsAsProperty(term) {
|
|
220
220
|
const binding = echoedBinding(this.answeredValue(term));
|
|
221
|
-
return binding !== undefined && binding.target
|
|
221
|
+
return binding !== undefined && binding.target === this;
|
|
222
222
|
}
|
|
223
223
|
size() {
|
|
224
224
|
return this.data.length;
|
|
@@ -50,7 +50,7 @@ export class FrameLiteral extends FrameAtom {
|
|
|
50
50
|
return this;
|
|
51
51
|
return new FrameLiteral(this.data, {
|
|
52
52
|
...this.binding,
|
|
53
|
-
target:
|
|
53
|
+
target: owner,
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -233,7 +233,7 @@ export class FrameSymbol extends FrameAtom {
|
|
|
233
233
|
out.set(assignmentKey, argument);
|
|
234
234
|
return previous.is.missing
|
|
235
235
|
? new FrameLiteral(`.${this.data} ${argument.toString()}`, {
|
|
236
|
-
target:
|
|
236
|
+
target: out,
|
|
237
237
|
key: assignmentKey,
|
|
238
238
|
value: argument,
|
|
239
239
|
})
|
|
@@ -264,7 +264,7 @@ export class FrameSymbol extends FrameAtom {
|
|
|
264
264
|
out.set(assignmentKey, schema);
|
|
265
265
|
out.set(`${assignmentKey}.<>`, schema);
|
|
266
266
|
return new FrameLiteral(`.${this.data} ${schema.toString()}`, {
|
|
267
|
-
target:
|
|
267
|
+
target: out,
|
|
268
268
|
key: assignmentKey,
|
|
269
269
|
value: schema,
|
|
270
270
|
});
|
|
@@ -18,11 +18,8 @@ export const HasType = (source, type) => {
|
|
|
18
18
|
export const BindType = (source, body) => {
|
|
19
19
|
if (source instanceof FrameLiteral && source.binding &&
|
|
20
20
|
body instanceof FrameLazy) {
|
|
21
|
-
const target = source.binding.target.deref();
|
|
22
|
-
if (!target)
|
|
23
|
-
return source;
|
|
24
21
|
body.bindSignature(source.binding.value);
|
|
25
|
-
target.set(source.binding.key, body);
|
|
22
|
+
source.binding.target.set(source.binding.key, body);
|
|
26
23
|
}
|
|
27
24
|
return source;
|
|
28
25
|
};
|
package/esm/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.24.
|
|
1
|
+
export const VERSION = "0.24.3";
|