Write a list onto its owner's row, as the `objectMembers` of its extraJson.
(&mut self, row: u32, list: &ObjectMemberList)
| 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 |
no test coverage detected