@@ -740,7 +740,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
740740 // / Extensions redeclare all generic parameters of their extended type to add
741741 // / their additional restrictions. There are two issues with this model for
742742 // / indexing:
743- // / - The generic paramter declarations of the extension are implicit so we
743+ // / - The generic parameter declarations of the extension are implicit so we
744744 // / wouldn't report them in the index. Any usage of the generic param in
745745 // / the extension references this implicit declaration so we don't include
746746 // / it in the index either.
@@ -749,7 +749,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
749749 // / declaration of the param in the extended type.
750750 // /
751751 // / To fix these issues, we replace the reference to the implicit generic
752- // / parameter defined in the extension by a reference to the generic paramter
752+ // / parameter defined in the extension by a reference to the generic parameter
753753 // / defined in the extended type.
754754 // /
755755 // / \returns the canonicalized replaced generic param decl if it can be found
@@ -759,7 +759,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
759759 auto Extension = dyn_cast_or_null<ExtensionDecl>(
760760 GenParam->getDeclContext ()->getAsDecl ());
761761 if (!Extension) {
762- // We are not referencing a generic paramter defined in an extension.
762+ // We are not referencing a generic parameter defined in an extension.
763763 // Nothing to do.
764764 return GenParam;
765765 }
@@ -1241,8 +1241,8 @@ bool IndexSwiftASTWalker::startEntityDecl(ValueDecl *D) {
12411241 return false ;
12421242 }
12431243
1244- for (auto Overriden : collectAllOverriddenDecls (D, /* IncludeProtocolReqs=*/ false )) {
1245- addRelation (Info, (SymbolRoleSet) SymbolRole::RelationOverrideOf, Overriden );
1244+ for (auto Overridden : collectAllOverriddenDecls (D, /* IncludeProtocolReqs=*/ false )) {
1245+ addRelation (Info, (SymbolRoleSet) SymbolRole::RelationOverrideOf, Overridden );
12461246 }
12471247
12481248 if (auto Parent = getParentDecl ()) {
0 commit comments