// Creates a new `ComponentNode` with the specified declaration, url, parent, and moniker.
// Does not populate the node's `children` field.
Creates a new `ComponentNode` with the specified declaration, url, parent, and moniker.
Does not populate the node's `children` field.
Creates a new ` ComponentNode ` with the specified declaration url parent and moniker . Does not populate the node ' s ` children ` field .
fn new(
        decl: ComponentDecl,
        url: String,
        parent: Option<NodePath>,
        moniker: Option<PartialMoniker>,
    ) -> Self {
        ComponentNode {
            decl,
            node_path: ComponentNode::get_node_path(parent.clone(), moniker),
            url,
            parent,
            children: vec![],
        }
    }
fn new ( decl : ComponentDecl , url : String , parent : Option < NodePath > , moniker : Option < PartialMoniker > , ) -> Self { ComponentNode { decl , node_path : ComponentNode :: get_node_path ( parent . clone ( ) , moniker ) , url , parent , children : vec ! [ ] , } }
Creates a new `ComponentNode` with the specified declaration, url, parent, and moniker.
Creates a new ` ComponentNode ` with the specified declaration url parent and moniker .
decl
ComponentDecl
url
String
parent
Option<NodePath>
moniker
Option<PartialMoniker>