Manage a list, represented by a ``.resources.List`` instance.

        This list is populated with data from the result of the ``FILTERS``.

        Arguments
        ---------
        _ (node) : parsimonious.nodes.Node.
        children : list
            - 0: for ``FILTERS``: list of instances of ``.resources.Field``.
            - 1: for ``LIST``: a ``List`` resource

        Example
        -------

        >>> DataQLParser(r'foo(1)[name]', default_rule='NAMED_LIST').data
        <List[foo] .foo(1)>
          <Field[name] />
        </List[foo]>

def visit_named_list(self, _, children):
        """Manage a list, represented by a ``.resources.List`` instance.

        This list is populated with data from the result of the ``FILTERS``.

        Arguments
        ---------
        _ (node) : parsimonious.nodes.Node.
        children : list
            - 0: for ``FILTERS``: list of instances of ``.resources.Field``.
            - 1: for ``LIST``: a ``List`` resource

        Example
        -------

        >>> DataQLParser(r'foo(1)[name]', default_rule='NAMED_LIST').data
        <List[foo] .foo(1)>
          <Field[name] />
        </List[foo]>

        """

        filters, resource = children
        resource.name = filters[0].name
        resource.filters = filters

        return resource