- Load the source file: refFunc->getFileName()
- Load the function: refFunc->getStartLine() to refFunc->getEndLine()
- Get tokens: token_get_all()
- Loop through each token calling a function to handle the token name
- oikai_handle_token_T_CONSTANT_ENCAPSED_STRING() – Handle a T_CONSTANT_ENCAPSED_STRING token
- oikai_handle_token_T_DOC_COMMENT() – Handle a T_DOC_COMMENT
- oikai_handle_token_T_STRING() – Handle a T_STRING token