Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/master' into 'master'
Browse files Browse the repository at this point in the history
ast.py: fix variable declaration mis-parenting

See merge request eng/libadalang/libadalang!1587
  • Loading branch information
pmderodat committed Mar 21, 2024
2 parents c950b72 + 35f47bb commit 8ec2ba0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ada/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -18676,11 +18676,13 @@ def designated_env():
lambda p: p.is_a(GenericPackageInstantiation)
))

env_el = Var(Self.env_get_first_visible(
env,
lookup_type=If(Self.is_prefix, LK.recursive, LK.flat),
from_node=Self.origin_node,
)).cast(T.BasicDecl)
env_el = Var(
Self.env_get_first_visible(
env,
lookup_type=If(Self.is_prefix, LK.recursive, LK.flat),
from_node=Self.origin_node,
).cast(T.BasicDecl)
)

return If(
# If first element is a package, then return the pkg env
Expand Down

0 comments on commit 8ec2ba0

Please sign in to comment.