Closed klkvr closed 1 month ago
Makes sol! macro respect namespaces.
sol!
current_namespace
ExpCtxt
all_items
custom_types
overloaded_items
NamespacedMap
SolPath
cc @DaniPopes please take a look and lmk if I should switch base to master instead
Motivation
Makes
sol!
macro respect namespaces.Solution
current_namespace
context variable is added toExpCtxt
which is switched when we enter/exit contract body during AST traversal or expansion.all_items
,custom_types
andoverloaded_items
are wrapped intoNamespacedMap
which resolves fullSolPath
s depending on current namespacecc @DaniPopes please take a look and lmk if I should switch base to master instead
PR Checklist