| 19 | } |
| 20 | |
| 21 | void 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 | |
| 31 | std::vector<SuggestItem> CodeSpellChecker::GetSuggests(std::string word) { |
| 32 | enum class ParseState { |
no test coverage detected