@param NodeBuilder $node

@return NodeBuilder
12151
protected function getChildren(NodeBuilder $node)
    {
        $node = $this->getOptionsNodes($node);
        $node = $this->getConnectionsNodes($node);
        $node = $this->getOverridesNodes($node);

        return $node;
    }
120811
public function enterNode(Node $node)
    {
        if ($node instanceof UseUse) {
            $this->imports[] = $node->name->toString();
        }

        return $node;
    }
759709
public function nodeCreate($node)
    {
        $this->dispatchHooks('BeforeNodeCreateScope', $node);
        $this->parseEntityFields('node', $node);
        $saved = $this->getDriver()->createNode($node);
        $this->dispatchHooks('AfterNodeCreateScope', $saved);
        $this->nodes[] = $saved;
        return $saved;
    }
1158208
final public function setNode(Node $node)
    {
        $this->node = $node;
        foreach ($node->getParams() as $key => $value) {
            $this->$key = $value;
        }
    }
151682
public function then($node)
    {
        $this->_map = $this->prepare()->first(false);

        $this->from($node);

        return $this;
    }
28670
public function execute(NodeData $node)
    {
        foreach ($node->getNodeType()->getProperties() as $propertyName => $propertyConfiguration) {
            if (isset($propertyConfiguration['type']) && in_array(trim($propertyConfiguration['type']), $this->getHandledObjectTypes())) {
                if (!isset($nodeProperties)) {
                    $nodeRecordQuery = $this->entityManager->getConnection()->prepare('SELECT properties FROM typo3_typo3cr_domain_model_nodedata WHERE persistence_object_identifier=?');
                    $nodeRecordQuery->execute([$this->persistenceManager->getIdentifierByObject($node)]);
                    $nodeRecord = $nodeRecordQuery->fetch(\PDO::FETCH_ASSOC);
                    $nodeProperties = unserialize($nodeRecord['properties']);
                }

                if (!isset($nodeProperties[$propertyName]) || !is_object($nodeProperties[$propertyName])) {
                    continue;
                }

                /** @var Asset $assetObject */
                $assetObject = $nodeProperties[$propertyName];
                $nodeProperties[$propertyName] = null;

                $stream = $assetObject->getResource()->getStream();

                if ($stream === false) {
                    continue;
                }

                fclose($stream);
                $objectType = TypeHandling::getTypeForValue($assetObject);
                $objectIdentifier = ObjectAccess::getProperty($assetObject, 'Persistence_Object_Identifier', true);

                $nodeProperties[$propertyName] = [
                    '__flow_object_type' => $objectType,
                    '__identifier' => $objectIdentifier
                ];
            }
        }

        if (isset($nodeProperties)) {
            $nodeUpdateQuery = $this->entityManager->getConnection()->prepare('UPDATE typo3_typo3cr_domain_model_nodedata SET properties=? WHERE persistence_object_identifier=?');
            $nodeUpdateQuery->execute([serialize($nodeProperties), $this->persistenceManager->getIdentifierByObject($node)]);
        }
    }
151475
public function build()
    {
        Debug::enterScope('build');
        $traverser = $this->createNodeCreatorTraverser($this->config);
        $result = $traverser->traverse();

        $node = new ContainerNode();
        $gatherer = $this->createNodeGathererTraverser($result, $node);
        $gatherer->traverse();
        Debug::exitScope('build');

        return $node;
    }
1268553
public function addNode(Node $node)
    {
        $node->setNavigation($this);
        $this->nodes[] = $node;

        return $this;
    }
1264080
protected function compileFor(Node $node)
    {

        $subject = $node->subject;
        $phtml = $this->createCode("for ({$subject}) {").$this->newLine();
        $phtml .= $this->compileChildren($node->children).$this->newLine();
        $phtml .= $this->indent().$this->createCode('}').$this->newLine();

        return $phtml;
    }
423657
private function buildRootNode($node, $tree, $level)
    {
        $node->setLevel($level);
        $tree[$node->getId()] = $node;
    }
852576
private function hydrateZonesNode(NodeBuilder $node)
    {
        $node
            ->booleanNode('main')
                ->defaultFalse()
            ->end()
            ->booleanNode('virtual')
                ->defaultFalse()
            ->end()
            ->arrayNode('aggregation')
                ->addDefaultsIfNotSet()
                ->beforeNormalization()
                    ->always(function ($v) {
                        if (is_string($v)) {   // shortcut case
                            $v = array('type' => $v);
                        }
                        if (is_array($v) && !empty($v['path'])) {   // path shortcut case
                            $v['type'] = 'template';
                        }

                        return $v;
                    })
                ->end()
                ->children()
                    ->scalarNode('type')
                        ->defaultValue('inline')
                        ->cannotBeEmpty()
                    ->end()
                    ->scalarNode('path')->end()
                ->end()
            ->end()
        ;

        return $node;
    }
974369
protected function getOptionsNodes(NodeBuilder $node)
    {
        return $node
            ->scalarNode('branch')
                ->info('The branch to deploy')
                ->defaultValue('master')
            ->end()
            ->scalarNode('shallow')
                ->info("Whether your VCS should do a \"shallow\" clone of the repository or not - this means a clone with just the latest state of your application (no history).\nIf you're having problems cloning, try setting this to false")
                ->defaultTrue()
            ->end()
            ->scalarNode('submodules')
                ->info("Recursively pull in submodules.\nWorks only with Git")
                ->defaultTrue()
            ->end();
    }
254958
private function hydrateTemplatesNode(NodeBuilder $node)
    {
        $node
            ->booleanNode('default')
                ->defaultFalse()
            ->end()
            ->scalarNode('path')
                ->cannotBeEmpty()
            ->end()
            ->arrayNode('contents')
                ->prototype('scalar')
                    ->cannotBeEmpty()
                ->end()
            ->end()
        ;

        return $node;
    }
791722
protected function getConnectionsNodes(NodeBuilder $node)
    {
        $node = $node->arrayNode('connections');

        $connections = (array) $this->value('config.connections');
        if (!$connections) {
            $node = $node->useAttributeAsKey('name')->prototype('array');
            $node = $this->getConnectionNode($node, new Fluent());
            $node = $node->end();
        } else {
            $node = $node->children();
            foreach ($connections as $name => $connection) {
                $node = $node->arrayNode($name);
                $node = $this->getConnectionNode($node, new Fluent($connection));
                $node = $node->end();
            }
            $node = $node->end();
        }

        return $node->end();
    }
538996
public function enterNode(Node $node)
    {
        if ($node instanceof ConstFetch || $node instanceof FuncCall) {
            $node->name = null;
        }

        if ($node instanceof FullyQualified) {
            $this->names[] = $node->toString();
        }

        return $node;
    }
746448
public function mutate(Node $node)
    {
        return new Node\Expr\Assign($node->var, $node->expr, $node->getAttributes());
    }
1301136
public function mutate(Node $node)
    {
        return new Node\Expr\Cast\Int_(new Node\Expr\Assign($node->args[2]->value, new Node\Expr\Array_()));
    }