Module Expr Str Assign NameStore Str Import alias Import alias Import alias ClassDef bases NameLoad body Pass decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Import alias TryExcept body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return TupleLoad Assign NameStore BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad NameLoad NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Return TupleLoad If UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad body Expr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Dict If Call NameLoad NameLoad Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad body Return Call Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Return ListLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore Call NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad orelse Assign NameStore BinOpAdd Call NameLoad NameLoad TupleLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A SCons.Scanner

The Scanner package for the SCons software construction utility.

 N/A __revision__ src/engine/SCons/Scanner/__init__.py  2014/07/05 09:42:21 garyo N/A re N/A SCons.Node.FS N/A SCons.Util _Null N/A object N/A N/A N/A N/A _null _Null Scanner N/A N/A function N/A args kw N/A N/A 
    Public interface factory function for creating different types
    of Scanners based on the different types of "functions" that may
    be supplied.

    TODO:  Deprecate this some day.  We've moved the functionality
    inside the Base class and really don't need this factory function
    any more.  It was, however, used by some of our Tool modules, so
    the call probably ended up in various people's custom modules
    patterned on SCons code.
     N/A N/A N/A N/A SCons Util is_Dict function N/A N/A N/A Selector function args kw N/A N/A N/A Base function args kw N/A FindPathDirs N/A object N/A N/A A class to bind a specific *PATH variable name to a function that
    will return all of the *path directories. __init__ N/A N/A self variable N/A N/A N/A N/A self variable variable N/A __call__ N/A N/A self env dir target source argument N/A None None None None N/A N/A SCons.PathList N/A N/A N/A path N/A env N/A N/A self variable N/A N/A N/A KeyError N/A N/A N/A N/A dir N/A dir N/A N/A env fs _cwd N/A path N/A N/A N/A N/A N/A SCons PathList PathList path subst_path env target source N/A N/A tuple N/A N/A dir Rfindalldirs path N/A N/A Base N/A object N/A N/A 
    The base class for dependency scanners.  This implements
    straightforward, single-pass scanning of a single file.
     __init__ N/A N/A self function name argument skeys path_function node_class node_factory scan_check recursive N/A NONE _null _null None N/A N/A N/A SCons Node FS Base None None None N/A N/A 
        Construct a new scanner object given a scanner function.

        'function' - a scanner function taking two or three
        arguments and returning a list of strings.

        'name' - a name for identifying this scanner object.

        'argument' - an optional argument that, if specified, will be
        passed to both the scanner function and the path_function.

        'skeys' - an optional list argument that can be used to determine
        which scanner should be used for a given Node. In the case of File
        nodes, for example, the 'skeys' would be file suffixes.

        'path_function' - a function that takes four or five arguments
        (a construction environment, Node for the directory containing
        the SConscript file that defined the primary target, list of
        target nodes, list of source nodes, and optional argument for
        this instance) and returns a tuple of the directories that can
        be searched for implicit dependency files.  May also return a
        callable() which is called with no args and returns the tuple
        (supporting Bindable class).

        'node_class' - the class of Nodes which this scan will return.
        If node_class is None, then this scanner will not enforce any
        Node conversion and will return the raw results from the
        underlying scanner function.

        'node_factory' - the factory function to be called to translate
        the raw results returned by the scanner function into the
        expected node_class objects.

        'scan_check' - a function to be called to first check whether
        this node really needs to be scanned.

        'recursive' - specifies that this scanner should be invoked
        recursively on all of the implicit dependencies it returns
        (the canonical example being #include lines in C source files).
        May be a callable, which will be called to filter the list
        of nodes found to select a subset for recursive scanning
        (the canonical example being only recursively scanning
        subdirectories within a directory).

        The scanner function's first argument will be a Node that should
        be scanned for dependencies, the second argument will be an
        Environment object, the third argument will be the tuple of paths
        returned by the path_function, and the fourth argument will be
        the value passed into 'argument', and the returned list should
        contain the Nodes for all the direct dependencies of the file.

        Examples:

        s = Scanner(my_scanner_function)

        s = Scanner(function = my_scanner_function)

        s = Scanner(function = my_scanner_function, argument = 'foo')

         N/A N/A self function function N/A N/A self path_function path_function N/A N/A self name name N/A N/A self argument argument N/A N/A skeys _null N/A N/A N/A N/A N/A SCons Util is_Dict function N/A N/A skeys N/A list N/A N/A function keys N/A N/A skeys N/A N/A N/A self skeys skeys N/A N/A self node_class node_class N/A N/A self node_factory node_factory N/A N/A self scan_check scan_check N/A N/A callable recursive N/A N/A N/A self recurse_nodes recursive N/A N/A recursive N/A N/A N/A self recurse_nodes N/A self _recurse_all_nodes N/A N/A N/A self recurse_nodes N/A self _recurse_no_nodes N/A path N/A N/A self env dir target source N/A None None None N/A N/A N/A N/A self path_function N/A N/A N/A N/A N/A N/A N/A self argument _null N/A N/A N/A N/A self path_function env dir target source N/A self argument N/A N/A N/A N/A self path_function env dir target source N/A __call__ N/A N/A self node env path N/A N/A N/A N/A 
        This method scans a single object. 'node' is the node
        that will be passed to the scanner function, and 'env' is the
        environment that will be passed to the scanner function. A list of
        direct dependency nodes for the specified node will be returned.
         N/A N/A N/A self scan_check N/A N/A N/A self scan_check node env N/A N/A N/A N/A self N/A N/A self select node N/A N/A N/A N/A self argument _null N/A N/A list N/A N/A self function node env path N/A self argument N/A N/A list N/A N/A self function node env path N/A kw N/A N/A N/A hasattr node dir N/A N/A N/A kw N/A directory N/A node dir N/A node_factory N/A N/A env get_factory N/A self node_factory N/A nodes N/A N/A l list N/A N/A N/A N/A self node_class N/A N/A isinstance l N/A self node_class N/A N/A l N/A node_factory l kw N/A N/A N/A nodes append l N/A nodes N/A __cmp__ N/A N/A self other N/A N/A N/A N/A N/A N/A cmp N/A self __dict__ N/A other __dict__ N/A N/A N/A AttributeError N/A N/A N/A cmp N/A self __dict__ other N/A __hash__ N/A N/A self N/A N/A N/A N/A id self N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A add_skey N/A N/A self skey N/A N/A N/A Add a skey to the list of skeys N/A N/A N/A N/A self skeys append skey N/A get_skeys N/A N/A self env N/A None N/A N/A N/A env N/A N/A N/A SCons Util is_String N/A self skeys N/A N/A N/A N/A N/A env subst_list N/A self skeys N/A 0 N/A N/A self skeys N/A select N/A N/A self node N/A N/A N/A N/A N/A N/A SCons Util is_Dict N/A self function N/A N/A key N/A N/A node scanner_key N/A N/A N/A N/A N/A self function N/A key N/A N/A N/A KeyError N/A N/A None N/A N/A self N/A _recurse_all_nodes N/A N/A self nodes N/A N/A N/A nodes N/A _recurse_no_nodes N/A N/A self nodes N/A N/A N/A N/A N/A N/A recurse_nodes _recurse_no_nodes add_scanner N/A N/A self skey scanner N/A N/A N/A N/A N/A self function N/A skey scanner N/A N/A N/A self add_skey skey N/A N/A Selector N/A Base N/A N/A 
    A class for selecting a more specific scanner based on the
    scanner_key() (suffix) for a specific Node.

    TODO:  This functionality has been moved into the inner workings of
    the Base class, and this class will be deprecated at some point.
    (It was never exposed directly as part of the public interface,
    although it is used by the Scanner() factory function that was
    used by various Tool modules and therefore was likely a template
    for custom modules that may be out there.)
     __init__ N/A N/A self dict N/A args kw N/A N/A N/A N/A Base __init__ self None args kw N/A N/A self dict dict N/A N/A self skeys N/A list N/A N/A dict keys N/A __call__ N/A N/A self node env path N/A N/A N/A N/A N/A N/A N/A self select node node env path N/A select N/A N/A self node N/A N/A N/A N/A N/A N/A N/A self dict N/A N/A N/A node scanner_key N/A N/A N/A KeyError N/A N/A None N/A add_scanner N/A N/A self skey scanner N/A N/A N/A N/A N/A self dict N/A skey scanner N/A N/A N/A self add_skey skey N/A N/A Current N/A Base N/A N/A 
    A class for scanning files that are source files (have no builder)
    or are derived files and are current (which implies that they exist,
    either locally or in a repository).
     __init__ N/A N/A self N/A args kw N/A current_check N/A N/A node env N/A N/A N/A N/A N/A N/A N/A node has_builder N/A N/A node is_up_to_date N/A N/A N/A kw N/A scan_check current_check N/A N/A N/A Base __init__ self args kw N/A N/A Classic N/A Current N/A N/A 
    A Scanner subclass to contain the common logic for classic CPP-style
    include scanning, but which can be customized to use different
    regular expressions to find the includes.

    Note that in order for this to work "out of the box" (without
    overriding the find_include() and sort_key() methods), the regular
    expression passed to the constructor must return the name of the
    include file in group 0.
     __init__ N/A N/A self name suffixes path_variable regex N/A args kw N/A N/A N/A self cre N/A N/A re compile regex N/A re M _scan N/A N/A node env path self N/A N/A self N/A N/A node N/A N/A node rfile N/A N/A N/A N/A node exists N/A N/A N/A N/A N/A N/A self scan node path N/A N/A N/A kw N/A function _scan N/A N/A kw N/A path_function N/A FindPathDirs path_variable N/A N/A kw N/A recursive 1 N/A N/A kw N/A skeys suffixes N/A N/A kw N/A name name N/A N/A N/A Current __init__ self args kw N/A find_include N/A N/A self include source_dir path N/A N/A N/A n N/A N/A N/A N/A SCons Node FS find_file include N/A N/A source_dir N/A tuple path N/A N/A n include N/A sort_key N/A N/A self include N/A N/A N/A N/A N/A N/A N/A SCons Node FS _my_normcase include N/A find_include_names N/A N/A self node N/A N/A N/A N/A N/A N/A self cre findall N/A N/A node get_text_contents N/A scan N/A N/A self node path N/A N/A N/A N/A N/A N/A node includes None N/A N/A includes N/A node includes N/A N/A includes N/A N/A self find_include_names node N/A N/A node includes N/A list N/A map N/A N/A SCons Util silent_intern includes N/A nodes N/A N/A source_dir N/A N/A node get_dir N/A N/A callable path N/A N/A path N/A path N/A include includes N/A N/A N/A n i N/A N/A self find_include include source_dir path N/A N/A n None N/A N/A N/A N/A N/A SCons Warnings warn N/A N/A SCons Warnings DependencyWarning N/A No dependency generated for file: %s (included from: %s) -- file not found N/A i node N/A N/A N/A N/A nodes append N/A N/A N/A self sort_key include n N/A N/A N/A pair N/A 1 N/A pair N/A sorted nodes N/A N/A ClassicCPP N/A Classic N/A N/A 
    A Classic Scanner subclass which takes into account the type of
    bracketing used to include the file, and uses classic CPP rules
    for searching for the files based on the bracketing.

    Note that in order for this to work, the regular expression passed
    to the constructor must return the leading bracket in group 0, and
    the contained filename in group 1.
     find_include N/A N/A self include source_dir path N/A N/A N/A N/A N/A include N/A 0 " N/A N/A paths N/A N/A source_dir N/A tuple path N/A N/A paths N/A N/A tuple path N/A source_dir N/A n N/A N/A N/A N/A SCons Node FS find_file N/A include N/A 1 paths N/A i N/A N/A N/A SCons Util silent_intern N/A include N/A 1 N/A N/A n i N/A sort_key N/A N/A self include N/A N/A N/A N/A N/A N/A N/A SCons Node FS _my_normcase N/A N/A join include N/A N/A