Lines Matching refs:tree_key
72 /// accessed. If this table contains a tree_key metadata property, this is
90 std::string tree_key;
91 if (state.get_metafield(table_index, "tree_key")) {
92 tree_key = state.to_string(-1) + "." + state.to_string(field_index - 1);
95 tree_key = state.to_string(field_index);
96 return tree_key;
109 /// \param tree_key The key to which the new table corresponds.
111 new_table_for_key(lutok::state& state, const std::string& tree_key)
125 state.push_string("tree_key");
126 state.push_string(tree_key);
137 /// metadata must contain a tree_key property describing the path to
182 /// metadata must contain a tree_key property describing the path to
219 const std::string tree_key = get_tree_key(state, -2, -1);
220 if (tree.is_set(tree_key)) {
223 tree.push_lua(tree_key, state);
229 new_table_for_key(state, tree_key);