mirror of
https://github.com/morluto/rea.git
synced 2026-11-04 05:46:17 +00:00
fix(javascript): preserve uncertain with-scope member writes (#7914)
* fix(javascript): preserve uncertain with-scope member writes * fix: retain nested initializer candidates * fix(javascript): admit initializer values in worker transport * fix(tests): remove duplicate MCP test imports
This commit is contained in:
1 parent
611c30cb20
commit
95f0625781
7 files changed
+317
-20
No files matched your search
@@ -615,18 +615,24 @@ const scope = z.strictObject({
|
||||
bindingsComplete: z.boolean(),
|
||||
bindingIds: strings,
|
||||
});
|
||||
const binding = z.strictObject({
|
||||
bindingId: z.string(),
|
||||
scopeId: z.string(),
|
||||
name: z.string(),
|
||||
kind: definitionKind,
|
||||
mutable: z.boolean(),
|
||||
definitions: z.array(
|
||||
z.strictObject({ kind: definitionKind, location: range }),
|
||||
),
|
||||
value: semanticValue,
|
||||
provenance,
|
||||
});
|
||||
const binding = z
|
||||
.strictObject({
|
||||
bindingId: z.string(),
|
||||
scopeId: z.string(),
|
||||
name: z.string(),
|
||||
kind: definitionKind,
|
||||
mutable: z.boolean(),
|
||||
definitions: z.array(
|
||||
z.strictObject({ kind: definitionKind, location: range }),
|
||||
),
|
||||
value: semanticValue,
|
||||
initializerValue: semanticValue.optional(),
|
||||
provenance,
|
||||
})
|
||||
.transform(({ initializerValue, ...rest }) => ({
|
||||
...rest,
|
||||
...(initializerValue === undefined ? {} : { initializerValue }),
|
||||
}));
|
||||
const callable = z.strictObject({
|
||||
callableId: z.string(),
|
||||
kind: z.enum(["function", "class", "method"]),
|
||||
|
||||
Reference in new issue
Block a user