Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused field from ScoperState #3073

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Juvix/Compiler/Concrete/Data/Scope/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ data ScoperState = ScoperState
{ -- | Local and top modules currently in scope - used to look up qualified symbols
_scoperModules :: HashMap S.NameId ScopedModule,
_scoperAlias :: HashMap S.NameId PreSymbolEntry,
_scoperScopedNameSignatures :: HashMap S.NameId (NameSignature 'Scoped),
_scoperNameSignatures :: HashMap S.NameId (NameSignature 'Parsed),
-- | Indexed by the inductive type. This is used for record updates
_scoperRecordFields :: HashMap S.NameId RecordInfo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ iniScoperState :: InfoTable -> ScoperState
iniScoperState tab =
ScoperState
{ _scoperModules = mempty,
_scoperScopedNameSignatures = tab ^. infoNameSigs,
_scoperNameSignatures = tab ^. infoParsedNameSigs,
_scoperRecordFields = tab ^. infoRecords,
_scoperAlias = tab ^. infoScoperAlias,
Expand Down Expand Up @@ -252,7 +251,6 @@ registerNameSignature ::
Sem r ()
registerNameSignature uid d = do
sig <- mkNameSignature d
modify (set (scoperScopedNameSignatures . at uid) (Just sig))
registerNameSig uid sig

registerConstructorSignature ::
Expand Down
Loading