diff --git a/codergpt.explainer.html b/codergpt.explainer.html index 31a99d2..6780ed6 100644 --- a/codergpt.explainer.html +++ b/codergpt.explainer.html @@ -143,41 +143,53 @@
Code explanation module.
Bases: NodeVisitor
Evaluate the code expression and extract the source code of the specified function or class.
+Bases: object
Code Explainer class that extracts and explains code from a given file.
Visit a ClassDef (class definition) node in the AST.
-If the class name matches the target class name, it extracts the source segment.
+Explain the contents of the code file by invoking the runnable chain.
node (ast.ClassDef) – The node representing a class definition in the AST.
+path (Union
[str
, Path
]) – The path to the code file to be explained.
function (Optional
[str
]) – The name of the function to explain. Default is None.
classname (Optional
[str
]) – The name of the class to explain. Default is None.
Visit a FunctionDef (function definition) node in the AST.
-If the function name matches the target function name, it extracts the source segment.
+Extract and return the source code of the specified function or class from a file.
node (ast.FunctionDef) – The node representing a function definition in the AST.
+filename (str
) – The path to the file containing the code.
function_name (Optional
[str
]) – The name of the function to extract code for. Default is None.
class_name (Optional
[str
]) – The name of the class to extract code for. Default is None.
Optional
[str
]
The extracted source code of the specified function or class, if found.
Code explanation module.
CodeExplainer.get_function_code()
-ExpressionEvaluator
+
|
+
|
-
|
- | - |