The type context is now used by passes, not the parser.

This commit is contained in:
Adam Sampson 2008-04-06 02:59:34 +00:00
parent c39503c175
commit 249fd23e75

View File

@ -84,9 +84,9 @@ data CompState = CompState {
csNames :: Map String A.NameDef,
csUnscopedNames :: Map String String,
csNameCounter :: Int,
csTypeContext :: [Maybe A.Type],
-- Set by passes
csTypeContext :: [Maybe A.Type],
csNonceCounter :: Int,
csFunctionReturns :: Map String [A.Type],
csPulledItems :: [[PulledItem]],
@ -115,8 +115,8 @@ emptyState = CompState {
csNames = Map.empty,
csUnscopedNames = Map.empty,
csNameCounter = 0,
csTypeContext = [],
csTypeContext = [],
csNonceCounter = 0,
csFunctionReturns = Map.empty,
csPulledItems = [],
@ -327,4 +327,4 @@ ghostVarPrefix = "##"
-- | A suffix put on all ghost variables, such as Rain's timers
ghostVarSuffix :: String
ghostVarSuffix = "_##"
ghostVarSuffix = "_##"