luaur_analysis/methods/path_push.rs
1use crate::records::path::Path;
2use crate::type_aliases::component::Component;
3use alloc::vec::Vec;
4
5impl Path {
6 pub fn path_push(&self, component: Component) -> Path {
7 let mut joined: Vec<Component> = self.components.clone();
8 joined.push(component);
9 Path::path_vector_component(joined)
10 }
11}