This commit is contained in:
2026-01-08 21:47:58 -08:00
parent 4c058bfb77
commit 61f82a9d5d
6 changed files with 181 additions and 3 deletions

View File

@@ -19,7 +19,9 @@ lookup qn@(QN ns nm) top =
Just mod => lookupMap' qn mod.modDefs
Nothing => Nothing
-- TODO - look at imported namespaces, and either have a map of imported names or search imported namespaces..
lookupAll : String TopContext -> List TopEntry
lookupAll raw top =
mapMaybe (flip lookup top) $ (QN top.ns raw) :: map (flip QN raw) top.imported
lookupRaw : String -> TopContext -> Maybe TopEntry
lookupRaw raw top =