mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
📝 AssignmentState’s fields.
This commit is contained in:
parent
806aa944d0
commit
8caea50b14
@ -148,10 +148,10 @@ advanceState state@AssignmentState{..}
|
|||||||
| otherwise = state
|
| otherwise = state
|
||||||
|
|
||||||
data AssignmentState grammar = AssignmentState
|
data AssignmentState grammar = AssignmentState
|
||||||
{ stateOffset :: Int
|
{ stateOffset :: Int -- ^ The offset into the Source thus far reached, measured in bytes.
|
||||||
, statePos :: Info.SourcePos
|
, statePos :: Info.SourcePos -- ^ The (1-indexed) line/column position in the Source thus far reached.
|
||||||
, stateSource :: Source.Source
|
, stateSource :: Source.Source -- ^ The remaining Source. Equal to dropping 'stateOffset' bytes off the original input Source.
|
||||||
, stateNodes :: [AST grammar]
|
, stateNodes :: [AST grammar] -- ^ 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)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user