Skip to content

Commit

Permalink
try fix a recursive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Jun 21, 2024
1 parent 8506089 commit af0ecc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EmmyLua/CodeAnalysis/Compilation/Search/Members.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ private IEnumerable<IDeclaration> GetRelatedMembers(LuaType luaType)
var relatedType = context.Compilation.Db.QueryRelatedType(variableRefType.Id);
if (relatedType is not null && !relatedType.Equals(luaType))
{
return GetNormalTypeMembers(relatedType);
return GetMembers(relatedType);
}
}
else if (luaType is GlobalNameType globalNameType)
{
var relatedType = context.Compilation.Db.QueryRelatedGlobalType(globalNameType.Name);
if (relatedType is not null && !relatedType.Equals(luaType))
{
return GetNormalTypeMembers(relatedType);
return GetMembers(relatedType);
}
}

Expand Down

0 comments on commit af0ecc6

Please sign in to comment.