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

Method Analyze

CodeFormatCore/src/Diagnostic/Spell/CodeSpellChecker.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void CodeSpellChecker::Analyze(DiagnosticBuilder &d, const LuaSyntaxTree &t) {
22 for (auto &token: t.GetTokens()) {
23 if (token.GetTokenKind(t) == TK_NAME) {
24 IdentifyAnalyze(d, token, t);
25 } else if (token.GetTokenKind(t) == TK_STRING) {
26 TextAnalyze(d, token, t);
27 }
28 }
29}
30
31std::vector<SuggestItem> CodeSpellChecker::GetSuggests(std::string word) {
32 enum class ParseState {

Callers 3

CodeStyleCheckMethod · 0.45
NameStyleCheckMethod · 0.45
SpellCheckMethod · 0.45

Calls 2

GetTokensMethod · 0.80
GetTokenKindMethod · 0.45

Tested by

no test coverage detected