Skip to content

Commit

Permalink
Merge branch 'topic/langkit_710' into 'master'
Browse files Browse the repository at this point in the history
Remove unhelpful memoization.

See merge request eng/libadalang/libadalang!1644
  • Loading branch information
Roldak committed May 21, 2024
2 parents 921c206 + d0d1c3e commit 0583911
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ada/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3461,8 +3461,7 @@ def array_ndims():
is_array = Property(Entity.array_ndims > 0, dynamic_vars=[origin])

@langkit_property(return_type=T.BaseTypeDecl.entity,
dynamic_vars=[origin],
memoized=True)
dynamic_vars=[origin])
def expr_type():
"""
Return the type declaration corresponding to this basic declaration
Expand Down Expand Up @@ -7024,7 +7023,7 @@ def direct_primitives_env():
transitive_parent=False
)

@langkit_property(memoized=True)
@langkit_property()
def primitives_env():
return EmptyEnv

Expand Down

0 comments on commit 0583911

Please sign in to comment.