diff --git a/core/ast/function_decl.go b/core/ast/function_decl.go index 61bd1e3..a4ee924 100644 --- a/core/ast/function_decl.go +++ b/core/ast/function_decl.go @@ -141,6 +141,11 @@ func (f *FunctionDeclarationNode) GetParentClassName() string { return f.parentClassName } +// GetFunctionNameNode returns the function name node +func (f *FunctionDeclarationNode) GetFunctionNameNode() *sitter.Node { + return f.functionNameNode +} + // IsAbstract returns true if the function is abstract func (f *FunctionDeclarationNode) IsAbstract() bool { return f.isAbstract