Skip to content

Commit

Permalink
Ignore self-references when reconstructing full names of nested classes
Browse files Browse the repository at this point in the history
  • Loading branch information
HoundThe committed Jul 25, 2023
1 parent f7e82bb commit 2bddda9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ bool DotnetTypeReconstructor::reconstructNestedClasses()
if (enclosingItr == defClassTable.end())
continue;

// Ignore self-references
if (nestedItr == enclosingItr)
continue;

const std::string& namespac = nestedItr->second->getNameSpace();
if (namespac.empty())
{
Expand Down

0 comments on commit 2bddda9

Please sign in to comment.