Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Nov 20, 2024
1 parent 8d44a3c commit bfe4dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ open class SymbolResolver(ctx: TranslationContext) : ComponentPass(ctx) {

// Find a list of candidate symbols. Currently, this is only used the in the "next-gen" call
// resolution, but in future this will also be used in resolving regular references.
ref.candidates =
scopeManager.lookupSymbolByName(ref.name, ref.language, ref.location).toSet()
ref.candidates = scopeManager.lookupSymbolByNameOfNode(ref).toSet()

// Preparation for a future without legacy call resolving. Taking the first candidate is not
// ideal since we are running into an issue with function pointers here (see workaround
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class GoExtraPass(ctx: TranslationContext) : ComponentPass(ctx) {

// Try to see if we already know about this namespace somehow
val namespace =
scopeManager.lookupSymbolByName(import.name, null).filter {
scopeManager.lookupSymbolByNameOfNode(import).filter {
it is NamespaceDeclaration &&
it.path == import.importURL &&
it.language == import.language
Expand Down

0 comments on commit bfe4dff

Please sign in to comment.