Skip to content

Commit

Permalink
pr #2231. Added scope limit to lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertford committed Jul 27, 2023
1 parent f7755ba commit 279d8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/psyclone/psyir/frontend/fparser2.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ def _find_or_create_unresolved_symbol(location, name, scope_limit=None,
# Are there any interfaces that might be hiding the symbol declaration?
symbol_table = location.scope.symbol_table
try:
_ = symbol_table.lookup("_psyclone_internal_interface")
_ = symbol_table.lookup(
"_psyclone_internal_interface", scope_limit=scope_limit)
# There is an unknown interface so add this symbol.
return location.scope.symbol_table.new_symbol(
name, interface=UnresolvedInterface(), **kargs)
Expand Down

0 comments on commit 279d8aa

Please sign in to comment.