protected function buildNodes(array $ast, string $propertyName): array
    {
        $array = [];

        if (isset($ast[$propertyName]) && \is_array($ast[$propertyName])) {
            foreach ($ast[$propertyName] as $subAst) {
                $array[] = $this->build($subAst);
            }
        }

        return $array;
    }
protected function buildNodes(array $ast, string $propertyName): array
    {
        $array = [];

        if (isset($ast[$propertyName]) && \is_array($ast[$propertyName])) {
            foreach ($ast[$propertyName] as $subAst) {
                $array[] = $this->build($subAst);
            }
        }

        return $array;
    }
protected function buildNodes ( array $ ast , string $ propertyName ) : array { $ array = [ ] ; if ( isset ( $ ast [ $ propertyName ] ) && \ is_array ( $ ast [ $ propertyName ] ) ) { foreach ( $ ast [ $ propertyName ] as $ subAst ) { $ array [ ] = $ this -> build ( $ subAst ) ; } } return $ array ; }
Builds many items from the given AST.

@param array  $ast
@param string $propertyName
@return NodeInterface[]
@throws LanguageException
Builds many items from the given AST .