Module ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad NameLoad Index NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TupleLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args defaults NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad TupleLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad With Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Yield NameLoad orelse If Call NameLoad NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Slice Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A contextlib contextmanager atom.api Atom Bool Str Tuple Typed ForwardTyped atom.datastructures.api sortedmap expression_engine ExpressionEngine N/A __stack N/A N/A __map N/A new_scope N/A N/A key seed N/A None N/A N/A  Create a new scope mapping and push it onto the stack.

    The currently active scope can be retrieved with 'peek_scope' and
    a specific scope can be retrieved with 'fetch_scope'.

    Parameters
    ----------
    key : object
        The scope key to associate with this local scope.

    seed : sortedmap, optional
        The seed map values for creating the scope.

    Returns
    -------
    result : contextmanager
        A contextmanager which will pop the scope after the context
        exits. It yields the new scope as the context variable.

     N/A N/A seed None N/A N/A scope N/A N/A seed copy N/A N/A scope N/A sortedmap N/A N/A __map N/A key scope N/A N/A N/A __stack append scope N/A N/A scope N/A N/A N/A __stack pop N/A N/A __map N/A key N/A contextmanager peek_scope N/A N/A N/A N/A N/A  Get the local scope object from the top of the scope stack.

    Returns
    -------
    result : sortedmap
        The active scope mapping.

     N/A N/A __stack N/A -1 N/A fetch_scope N/A N/A key N/A N/A N/A  Fetch a specific local scope by key.

    Parameters
    ----------
    key : object
        The scope key associated with the scope of interest.

    Returns
    -------
    result : sortedmap
        The relevant local scope.

     N/A N/A __map N/A key N/A CompilerNode N/A Atom N/A N/A  A base class for defining compiler nodes.

     N/A scope_key N/A Typed object N/A children N/A Typed list N/A N/A id_nodes N/A Typed sortedmap update_id_nodes N/A N/A self mapping N/A N/A N/A  Recursively update the id nodes for this node.

        Parameters
        ----------
        mapping : sortedmap
            The mapping to fill with the identifier information.

         N/A N/A self id_nodes mapping N/A child N/A self children N/A N/A N/A N/A child update_id_nodes mapping N/A copy N/A N/A self N/A N/A N/A  Create a copy of the compiler node.

         N/A node N/A N/A type self N/A N/A node scope_key N/A self scope_key N/A N/A node children N/A N/A N/A child copy N/A child N/A self children N/A node N/A N/A DeclarativeNode N/A CompilerNode N/A N/A  A compiler node which represents a declarative declaration.

    Instances of this class are generated by the compiler and contain
    the information needed to create an instance of the hierarchy at
    runtime.

     N/A klass N/A Typed type N/A identifier N/A Str N/A store_locals N/A Bool False N/A child_intercept N/A Bool False N/A engine N/A Typed ExpressionEngine N/A closure_keys N/A Typed set N/A super_node N/A ForwardTyped N/A N/A N/A N/A EnamlDefNode __call__ N/A N/A self parent N/A N/A N/A  Instantiate the type hierarchy.

        This is invoked by a parent compiler node when the declarative
        hierarchy is being instantiated.

        Parameters
        ----------
        parent : Declarative or None
            The parent declarative object for the hierarchy.

        Returns
        -------
        result : Declarative
            The declarative instance created by the node.

         N/A klass N/A self klass N/A instance N/A N/A klass __new__ klass N/A N/A N/A self populate instance N/A N/A N/A instance __init__ parent N/A instance N/A populate N/A N/A self instance N/A N/A N/A  Populate an instance generated for the node.

        Parameters
        ----------
        instance : Declarative
            The declarative instance for this node.

         N/A N/A N/A self super_node None N/A N/A N/A N/A self super_node instance N/A f_locals N/A peek_scope N/A scope_key N/A self scope_key N/A N/A self identifier N/A N/A N/A f_locals N/A N/A self identifier instance N/A N/A self store_locals N/A N/A N/A N/A instance _d_storage N/A scope_key f_locals N/A N/A N/A self engine None N/A N/A N/A instance _d_engine N/A self engine N/A N/A N/A self closure_keys None N/A N/A key N/A self closure_keys N/A N/A N/A N/A instance _d_storage N/A key N/A fetch_scope key N/A N/A self child_intercept N/A N/A children_copy N/A N/A self children N/A N/A N/A N/A instance child_node_intercept children_copy scope_key f_locals N/A N/A node N/A self children N/A N/A N/A node instance N/A size N/A N/A self N/A N/A N/A  Return the size of the instantiated node.

         N/A 1 N/A update_id_nodes N/A N/A self mapping N/A N/A N/A  Update the id nodes for this node.

        Parameters
        ----------
        mapping : sortedmap
            The mapping to fill with the identifier information.

         N/A N/A self identifier N/A N/A N/A mapping N/A N/A self identifier self N/A N/A N/A N/A super DeclarativeNode self update_id_nodes mapping N/A copy N/A N/A self N/A N/A N/A  Create a copy of this portion of the node hierarchy.

        Returns
        -------
        result : DeclarativeNode
            A copy of the node hierarchy from this node down.

         N/A node N/A N/A N/A super DeclarativeNode self copy N/A N/A node klass N/A self klass N/A N/A node identifier N/A self identifier N/A N/A node store_locals N/A self store_locals N/A N/A node child_intercept N/A self child_intercept N/A N/A N/A self engine None N/A N/A N/A node engine N/A N/A N/A self engine copy N/A N/A N/A self super_node None N/A N/A N/A node super_node N/A N/A N/A self super_node copy N/A N/A N/A self closure_keys None N/A N/A N/A node closure_keys N/A N/A N/A self closure_keys copy N/A node N/A N/A EnamlDefNode N/A DeclarativeNode N/A N/A  A declarative node which represents an 'enamldef' block.

     __call__ N/A N/A self instance N/A N/A N/A  Instantiate the declarative hierarchy for the node.

        This is invoked by the EnamlDefMeta class when an enamldef
        class is called, or when a DeclarativeNode invokes its
        super node.

        Parameters
        ----------
        instance : EnamlDef
            The enamldef instance which should be populated.

         N/A N/A new_scope N/A self scope_key N/A N/A N/A N/A self populate instance N/A update_id_nodes N/A N/A self N/A N/A N/A  Update the id nodes for this node.

         N/A mapping N/A sortedmap N/A N/A self identifier N/A N/A N/A mapping N/A N/A self identifier self N/A N/A N/A N/A super DeclarativeNode self update_id_nodes mapping N/A copy N/A N/A self N/A N/A N/A  Create a copy the enamldef node hierarchy.

         N/A node N/A N/A N/A super EnamlDefNode self copy N/A N/A N/A node update_id_nodes N/A node N/A N/A TemplateNode N/A CompilerNode N/A N/A  A compiler node which represents a template declaration.

     N/A scope N/A Typed sortedmap N/A __call__ N/A N/A self parent N/A N/A N/A  Instantiate the type hierarchy.

        Parameters
        ----------
        parent : Declarative or None
            The parent declarative object for the templates.

        Returns
        -------
        result : list
            The list of declarative objects generated by the template.

         N/A instances N/A N/A N/A new_scope N/A self scope_key N/A self scope N/A N/A node N/A self children N/A N/A N/A isinstance node DeclarativeNode N/A N/A N/A N/A instances append N/A node parent N/A N/A N/A isinstance node TemplateInstanceNode N/A N/A N/A N/A instances extend N/A node parent N/A instances N/A update_id_nodes N/A N/A self N/A N/A N/A  Update the id nodes for this node.

         N/A N/A N/A N/A super TemplateNode self update_id_nodes N/A sortedmap N/A size N/A N/A self N/A N/A N/A  Return the size of the instantiated node.

         N/A N/A sum N/A N/A N/A child size N/A child N/A self children N/A iternodes N/A N/A self N/A N/A N/A  Iterate over the nodes of the template.

        Returns
        -------
        result : generator
            A generator which yields the unrolled nodes of the template
            instantiation.

         N/A child N/A self children N/A N/A N/A isinstance child DeclarativeNode N/A N/A N/A child N/A N/A N/A isinstance child TemplateInstanceNode N/A N/A node N/A N/A child iternodes N/A N/A N/A node N/A copy N/A N/A self N/A N/A N/A  Create a copy of the node.

         N/A node N/A N/A N/A super TemplateNode self copy N/A N/A node scope N/A self scope N/A N/A N/A node update_id_nodes N/A node N/A N/A TemplateInstanceNode N/A CompilerNode N/A N/A  A compiler node which represents a template instantiation.

     N/A template N/A Typed TemplateNode N/A names N/A Tuple N/A starname N/A Str __call__ N/A N/A self parent N/A N/A N/A  Invoke the template instantiation to build the objects.

        Parameters
        ----------
        parent : Declarative
            The parent declarative object for the instantiation.

         N/A instances N/A N/A self template parent N/A f_locals N/A peek_scope N/A N/A self names N/A N/A N/A name instance N/A zip N/A self names instances N/A N/A N/A f_locals N/A name instance N/A N/A self starname N/A N/A N/A f_locals N/A N/A self starname N/A tuple N/A instances N/A N/A len N/A self names N/A instances N/A update_id_nodes N/A N/A self mapping N/A N/A N/A  Update the id nodes for this node.

        Parameters
        ----------
        mapping : sortedmap
            The mapping to fill with the identifier information.

         N/A N/A self names N/A N/A nodeiter N/A N/A self iternodes N/A name N/A self names N/A N/A N/A mapping N/A name N/A N/A nodeiter next N/A N/A N/A N/A super TemplateInstanceNode self update_id_nodes mapping N/A size N/A N/A self N/A N/A N/A  Return the size of the instantiated node.

         N/A N/A N/A N/A self template size N/A iternodes N/A N/A self N/A N/A N/A  Iterate over the nodes of the instantiation.

        Returns
        -------
        result : generator
            A generator which yields the unrolled nodes of the template
            instantiation.

         N/A N/A N/A N/A self template iternodes N/A copy N/A N/A self N/A N/A N/A  Create a copy of the node.

         N/A node N/A N/A N/A super TemplateInstanceNode self copy N/A N/A node template N/A N/A N/A self template copy N/A N/A node names N/A self names N/A N/A node starname N/A self starname N/A node N/A N/A