I am trying to write a program which will print a list of all the function names in a PL/SQL file and the subsequent function calls of each function.
Eg -
FUNCTION Fn_ABC (field_status IN VARCHAR)
BEGIN
Dbg('In Fn_ABC ');
IF NOT Fn_xyz(field_status) THEN
Dbg('Failed in Fn_ABC');
field_status := 'T';
RETURN FALSE;
END IF;
END Fn_ABC;
The output on running the required code on the above file should be:
Fn_ABC
Fn_xyz
A depth first traversal through each function seems to be the logical choice but I am confused as to how to run it to get each function name.