Module ImportFrom alias alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad TupleLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert Call NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd ListLoad AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A atom.api List Typed N/A block_compiler block N/A compiler_common cmn enaml_ast ConstExpr Template collect_local_names N/A N/A node N/A N/A N/A  Collect the compile-time local variable names for the node.

    Parameters
    ----------
    node : Template
        The enaml ast template node of interest.

    Returns
    -------
    result : tuple
        A 2-tuple of (const_names, param_names) lists for the template.

     N/A const_names N/A N/A param_names N/A N/A params N/A node parameters N/A param N/A N/A params positional N/A params keywords N/A N/A N/A N/A param_names append N/A param name N/A N/A params starparam N/A N/A N/A N/A param_names append N/A params starparam N/A item N/A node body N/A N/A N/A isinstance item ConstExpr N/A N/A N/A N/A const_names append N/A item name N/A N/A const_names param_names N/A FirstPassTemplateCompiler N/A N/A block FirstPassBlockCompiler N/A N/A  The first pass template compiler.

    This compiler generates the code which builds the compiler nodes
    for the template definition. The main entry point is the 'compile'
    class method.

     N/A const_names N/A List compile N/A N/A cls node args local_names filename N/A N/A N/A  Invoke the compiler for the given node.

        The generated code object expects the SCOPE_KEY to be passed as
        one of the arguments. The code object will return a 2-tuple of
        compiler node list and const expression value tuple.

        Parameters
        ----------
        node : Template
            The enaml ast Template node of interest.

        args : list
            The list of argument names which will be passed to the
            code object when it is invoked.

        local_names : set
            The set of local names which are available to the code
            object. This should be the combination of const expression
            names and template parameter names.

        filename : str
            The filename of the node being compiled.

        Returns
        -------
        result : tuple
            A 2-tuple of (code, index_map) which is the generated code
            object for the first compiler pass, and a mapping of ast
            node to relevant compiler node index.

         N/A compiler N/A cls N/A N/A compiler filename filename N/A N/A compiler local_names local_names N/A cg N/A compiler code_generator N/A N/A N/A cmn fetch_helpers cg N/A N/A N/A cmn make_node_list cg N/A N/A cmn count_nodes node N/A N/A N/A compiler visit node N/A N/A cg name N/A node name N/A N/A cg firstlineno N/A node lineno N/A N/A cg newlocals True N/A N/A cg args args N/A code N/A N/A cg to_code N/A final_index_map N/A dict N/A compiler index_map N/A N/A N/A final_index_map update N/A compiler aux_index_map N/A N/A code final_index_map N/A classmethod visit_Template N/A N/A self node N/A N/A N/A N/A N/A cmn warn_pragmas node N/A self filename N/A index N/A len N/A self index_map N/A N/A N/A self index_map N/A node index N/A cg N/A self code_generator N/A N/A N/A cg set_lineno N/A node lineno N/A N/A N/A cmn load_helper cg template_node N/A N/A N/A cg load_fast N/A cmn SCOPE_KEY N/A N/A N/A cg call_function 1 N/A N/A N/A cmn store_node cg index N/A item N/A node body N/A N/A N/A N/A self visit item N/A N/A N/A cmn load_node cg 0 N/A N/A N/A cg load_attr update_id_nodes N/A N/A N/A cg call_function N/A N/A N/A cg pop_top N/A N/A N/A cg load_fast N/A cmn NODE_LIST N/A name N/A self const_names N/A N/A N/A N/A cg load_fast name N/A N/A N/A cg build_tuple N/A len N/A self const_names N/A N/A N/A cg build_tuple 2 N/A N/A N/A cg return_value N/A visit_ConstExpr N/A N/A self node N/A N/A N/A N/A N/A N/A self const_names append N/A node name N/A cg N/A self code_generator N/A N/A N/A cg set_lineno N/A node lineno N/A names N/A self local_names N/A N/A N/A cmn safe_eval_ast cg N/A N/A node expr ast N/A node name N/A node lineno names N/A N/A node typename N/A N/A N/A N/A cg try_squash_raise N/A N/A N/A N/A cg dup_top N/A N/A N/A cmn load_helper cg type_check_expr N/A N/A N/A cg rot_two N/A N/A N/A cmn load_name cg N/A node typename names N/A N/A N/A cg call_function 2 N/A N/A N/A cg pop_top N/A N/A N/A cg store_fast N/A node name N/A N/A SecondPassTemplateCompiler N/A N/A block SecondPassBlockCompiler N/A N/A  The second pass template compiler.

    This compiler generates code which binds the data to the compiler
    nodes for the template definition. The main entry point is the
    'compile' class method.

     N/A const_indices N/A Typed dict N/A compile N/A N/A cls node args local_names index_map consts filename N/A N/A N/A  Invoke the compiler for the given node.

        The generated code object expects NODE_LIST and T_CONSTS to be
        passed as part of the arguments.

        Parameters
        ----------
        node : Template
            The enaml ast Template node of interest.

        args : list
            The list of argument names which will be passed to the
            code object when it is invoked.

        local_names : set
            The set of local names which are available to the code
            object. This should be the combination of const expression
            names and template parameter names.

        index_map : dict
            A mapping of ast node to compiler node index in the node list.

        consts : list
            The list of const expression names for the block.

        filename : str
            The filename of the node being compiled.

        Returns
        -------
        result : CodeType
            The code object which will bind the data for the block.

         N/A compiler N/A cls N/A N/A compiler filename filename N/A N/A compiler local_names local_names N/A N/A compiler index_map index_map N/A N/A index name N/A enumerate consts N/A N/A N/A N/A compiler const_indices N/A name index N/A cg N/A compiler code_generator N/A N/A N/A cmn fetch_helpers cg N/A N/A N/A cmn fetch_globals cg N/A N/A N/A compiler visit node N/A N/A cg name N/A node name N/A N/A cg firstlineno N/A node lineno N/A N/A cg newlocals True N/A N/A cg args args N/A N/A N/A cg to_code N/A classmethod visit_Template N/A N/A self node N/A N/A N/A item N/A node body N/A N/A N/A N/A self visit item N/A cg N/A self code_generator N/A N/A N/A cg load_const None N/A N/A N/A cg return_value N/A visit_ConstExpr N/A N/A self node N/A N/A N/A cg N/A self code_generator N/A N/A N/A cg set_lineno N/A node lineno N/A N/A N/A cg load_fast N/A cmn T_CONSTS N/A N/A N/A cg load_const N/A N/A self const_indices N/A N/A node name N/A N/A N/A cg binary_subscr N/A N/A N/A cg store_fast N/A node name N/A N/A TemplateCompiler N/A N/A cmn CompilerBase N/A N/A  A compiler which will compile an Enaml template definition.

    The entry point is the `compile` classmethod which will compile
    the ast into a python code object which will generate a template
    instance compiler node when invoked.

     compile N/A N/A cls node filename N/A N/A N/A  The main entry point to the compiler.

        Parameters
        ----------
        node : Template
            The enaml ast Template node to compile.

        filename : str
            The filename of the node being compiled.

        Returns
        -------
        result : CodeType
            The compiled code object for the node.

         N/A N/A isinstance node Template invalid node N/A compiler N/A cls filename filename N/A N/A N/A compiler visit node N/A classmethod visit_Template N/A N/A self node N/A N/A N/A cg N/A self code_generator N/A filename N/A self filename N/A N/A const_names param_names N/A collect_local_names node N/A local_names N/A set N/A const_names param_names N/A first_args N/A N/A N/A cmn SCOPE_KEY param_names N/A N/A first_code index_map N/A N/A FirstPassTemplateCompiler compile node first_args local_names filename N/A second_args N/A N/A N/A cmn NODE_LIST N/A cmn T_CONSTS param_names N/A second_code N/A N/A SecondPassTemplateCompiler compile node second_args local_names index_map const_names filename N/A N/A N/A cmn fetch_helpers cg N/A N/A N/A cmn load_helper cg make_object N/A N/A N/A cg call_function N/A N/A N/A cg store_fast N/A cmn SCOPE_KEY N/A N/A N/A cg load_const first_code N/A N/A N/A cg make_function N/A arg first_args N/A N/A N/A N/A cg load_fast arg N/A N/A N/A cg call_function N/A len first_args N/A N/A N/A cg unpack_sequence 2 N/A N/A N/A cg store_fast N/A cmn NODE_LIST N/A N/A N/A cg store_fast N/A cmn T_CONSTS N/A N/A N/A cg load_const second_code N/A N/A N/A cg make_function N/A arg second_args N/A N/A N/A N/A cg load_fast arg N/A N/A N/A cg call_function N/A len second_args N/A N/A N/A cg pop_top N/A N/A N/A cmn load_node cg 0 N/A N/A N/A cg dup_top N/A N/A N/A cmn load_helper cg add_template_scope N/A N/A N/A cg rot_two N/A N/A N/A cg load_const N/A tuple N/A param_names const_names N/A name param_names N/A N/A N/A N/A cg load_fast name N/A N/A N/A cg build_tuple N/A len param_names N/A N/A N/A cg load_fast N/A cmn T_CONSTS N/A N/A N/A cg binary_add N/A N/A N/A cg call_function 3 N/A N/A N/A cg pop_top N/A N/A N/A cg return_value N/A N/A cg name N/A node name N/A N/A cg firstlineno N/A node lineno N/A N/A cg newlocals True N/A N/A cg args param_names N/A N/A cg docstring N/A node docstring N/A N/A cg varargs N/A bool N/A N/A node parameters starparam N/A N/A N/A cg to_code N/A N/A