MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / GetCode

Method GetCode

CodeFormatServer/src/Service/CodeActionService.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39std::string CodeActionService::GetCode(DiagnosticType code) {
40 auto it = _diagnosticMap.find(code);
41 if (it != _diagnosticMap.end()) {
42 return it->second;
43 }
44
45 return "";
46}
47
48void CodeActionService::CodeProtocol(DiagnosticType type, std::string_view code, CodeActionHandleMember handle) {
49 _diagnosticMap[type] = code;

Callers 1

DiagnosticMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected