mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Typo fixes
This commit is contained in:
@@ -65,7 +65,7 @@ CodeCompletionCommandKind getCommandKind(StringRef Command) {
|
||||
return CodeCompletionCommandKind::none;
|
||||
}
|
||||
|
||||
StringRef getCommnadName(CodeCompletionCommandKind Kind) {
|
||||
StringRef getCommandName(CodeCompletionCommandKind Kind) {
|
||||
#define CHECK_CASE(KIND) \
|
||||
if (CodeCompletionCommandKind::KIND == Kind) { \
|
||||
static std::string Name(#KIND); \
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
auto Text = TC->getText();
|
||||
std::vector<StringRef> Subs;
|
||||
splitTextByComma(Text, Subs);
|
||||
auto Kind = getCommnadName(CommandKind);
|
||||
auto Kind = getCommandName(CommandKind);
|
||||
for (auto S : Subs)
|
||||
Words.push_back(std::make_pair(Kind, S));
|
||||
} else
|
||||
@@ -223,7 +223,7 @@ public:
|
||||
void visitText(const Text *Text) override {
|
||||
if (Kind == CodeCompletionCommandKind::none)
|
||||
return;
|
||||
StringRef CommandName = getCommnadName(Kind);
|
||||
StringRef CommandName = getCommandName(Kind);
|
||||
std::vector<StringRef> Subs;
|
||||
splitTextByComma(Text->str(), Subs);
|
||||
for (auto S : Subs)
|
||||
|
||||
Reference in New Issue
Block a user