pkgcheck.bash package¶
Module contents¶
bash parsing support
- class pkgcheck.bash.ParseTree(data: bytes, **kwargs)[source]¶
Bases:
objectBash parse tree object and support.
- func_query(query: QueryCursor | SortedQueryCursor)[source]¶
Run a given parse tree query returning only those nodes in function scope.
- global_query(query: QueryCursor | SortedQueryCursor)[source]¶
Run a given parse tree query returning only those nodes in global scope.
- class pkgcheck.bash.SortedQueryCursor(query_cursor: QueryCursor)[source]¶
Bases:
objectSort query results by line and column. It’s been observed that query results from tree-sitter are not consistently returned in the same order, so this class acts as a decorator for QueryCursor to sort the returned captures.