Add missing import in vscode, fix add missing cases at EOF
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled

This commit is contained in:
2026-02-07 22:23:45 -08:00
parent 83e4adb45b
commit d36f6ddacb
5 changed files with 44 additions and 7 deletions

View File

@@ -19,9 +19,14 @@ lookup qn@(QN ns nm) top =
Just mod => lookupMap' qn mod.modDefs
Nothing => Nothing
lookupImported : String TopContext -> List TopEntry
lookupImported raw top =
mapMaybe (flip lookup top) $ (QN top.ns raw) :: map (flip QN raw) top.imported
-- For repl / out of scope errors
lookupAll : String TopContext -> List TopEntry
lookupAll raw top =
mapMaybe (flip lookup top) $ (QN top.ns raw) :: map (flip QN raw) top.imported
mapMaybe (flip lookup top) $ (QN top.ns raw) :: map (flip QN raw) (map fst $ toList top.modules)
lookupRaw : String -> TopContext -> Maybe TopEntry
lookupRaw raw top =