fix: should detect method-definition by the line-hook.