mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Strictify state fields.
This commit is contained in:
parent
e4bcdf293f
commit
4b1365729b
@ -312,10 +312,10 @@ runAssignment toNode source = (\ assignment state -> disamb Left (Right . minimu
|
||||
|
||||
-- | State kept while running 'Assignment's.
|
||||
data State ast grammar = State
|
||||
{ stateOffset :: Int -- ^ The offset into the Source thus far reached, measured in bytes.
|
||||
, statePos :: Info.Pos -- ^ The (1-indexed) line/column position in the Source thus far reached.
|
||||
, stateErrorCounter :: Int -- ^ Monotonic counter tracking the number of error handlers invoked.
|
||||
, stateNodes :: [ast] -- ^ The remaining nodes to assign. Note that 'children' rules recur into subterms, and thus this does not necessarily reflect all of the terms remaining to be assigned in the overall algorithm, only those “in scope.”
|
||||
{ stateOffset :: !Int -- ^ The offset into the Source thus far reached, measured in bytes.
|
||||
, statePos :: !Info.Pos -- ^ The (1-indexed) line/column position in the Source thus far reached.
|
||||
, stateErrorCounter :: !Int -- ^ Monotonic counter tracking the number of error handlers invoked.
|
||||
, stateNodes :: ![ast] -- ^ The remaining nodes to assign. Note that 'children' rules recur into subterms, and thus this does not necessarily reflect all of the terms remaining to be assigned in the overall algorithm, only those “in scope.”
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user