ast¶
Utils for ast-based patching.
Warning
This only supports C++ with tree-sitter-cpp yet
- class ptcx.ast.FuncSign(source, lang_str, query_str=None)View on GitHub ¶
Signature of a Cpp function or declaration
-
lang_str:
str
¶ language as str, has to be valid for sourcetypes3
- property params: List [List [bytes ]]View on GitHub ¶
Parameters in the form
- rplace(node)View on GitHub ¶
Place
ptcx.FuncSign.ast.body
in other node at same or similar function signature.- Parameters:
node (
Node
)
-
lang_str: