refactor Compiler_completer.cpp