d_scan

Provide a scanner for finding dependencies on d files

waflib.Tools.d_scan.filter_comments(filename)[source]
Parameters:filename (string) – d file name
Return type:list
Returns:a list of characters
class waflib.Tools.d_scan.d_parser(env, incpaths)[source]

Bases: object

Parser for d files

tryfind(filename)[source]

Search file a file matching an module/import directive

Parameters:filename (string) – file to read
get_strings(code)[source]
Parameters:code (string) – d code to parse
Returns:the modules that the code uses
Return type:a list of match objects
start(node)[source]

The parsing starts here

Parameters:node (waflib.Node.Node) – input file
iter(node)[source]

Find all the modules that a file depends on, uses waflib.Tools.d_scan.d_parser.tryfind() to process dependent files

Parameters:node (waflib.Node.Node) – input file
waflib.Tools.d_scan.scan(self)[source]

look for .d/.di used by a d file