func process()

in Generator/Sources/NeedleFramework/Parsing/Processors/ParentLinker.swift [30:42]


    func process() throws {
        let nameToComponent = components.spm_createDictionary { (component: ASTComponent) -> (String, ASTComponent) in
            (component.name, component)
        }
        for component in components {
            for typeName in component.expressionCallTypeNames {
                if let childComponent = nameToComponent[typeName] {
                    childComponent.parents.append(component)
                    component.isLeaf = false
                }
            }
        }
    }