mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
📝 AssignmentState itself.
This commit is contained in:
parent
8caea50b14
commit
a7b47952eb
@ -147,6 +147,7 @@ advanceState state@AssignmentState{..}
|
||||
| Rose (_ :. range :. span :. _) _ : rest <- stateNodes = AssignmentState (Info.end range) (Info.spanEnd span) (Source.drop (Info.end range - stateOffset) stateSource) rest
|
||||
| otherwise = state
|
||||
|
||||
-- | State kept while running 'Assignment's.
|
||||
data AssignmentState grammar = AssignmentState
|
||||
{ stateOffset :: Int -- ^ The offset into the Source thus far reached, measured in bytes.
|
||||
, statePos :: Info.SourcePos -- ^ The (1-indexed) line/column position in the Source thus far reached.
|
||||
|
Loading…
Reference in New Issue
Block a user