MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / set_object_members

Method set_object_members

codegraph-kernel/src/tsjs/extractors.rs:1103–1108  ·  view source on GitHub ↗

Write a list onto its owner's row, as the `objectMembers` of its extraJson.

(&mut self, row: u32, list: &ObjectMemberList)

Source from the content-addressed store, hash-verified

1101
1102 /// Write a list onto its owner's row, as the `objectMembers` of its extraJson.
1103 pub(super) fn set_object_members(&mut self, row: u32, list: &ObjectMemberList) {
1104 // Both strings are of letters, digits and ` . _ $ { } # + -`: nothing JSON escapes.
1105 let extra = format!(r#"{{"objectMembers":{{"names":"{}","lines":"{}"}}}}"#, list.names, list.lines);
1106 let extra_ref = self.arena.put(&extra);
1107 self.tables.set_node_extra_json(row, extra_ref);
1108 }
1109
1110 /// memberLiteralsOf: the object literals whose members a value gives its
1111 /// owner. The value itself, through `as const`, `satisfies` and

Callers 2

extractFunction · 0.80

Calls 2

set_node_extra_jsonMethod · 0.80
putMethod · 0.65

Tested by

no test coverage detected