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.

pkgcheck.bash.query(self, source, /)

Create a new Query from a string containing one or more S-expression patterns.