pkgcheck.bash package

Module contents

bash parsing support

class pkgcheck.bash.ParseTree(data: bytes, **kwargs)[source]

Bases: object

Bash parse tree object and support.

func_query(query: Query)[source]

Run a given parse tree query returning only those nodes in function scope.

global_query(query: Query)[source]

Run a given parse tree query returning only those nodes in global scope.

node_str(node)[source]

Return the ebuild string associated with a given parse tree node.