mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Reformat AssignmentState across several lines.
This commit is contained in:
parent
cbe44c66e7
commit
3705f960f4
@ -147,7 +147,12 @@ 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
|
||||
|
||||
data AssignmentState grammar = AssignmentState { stateOffset :: Int, statePos :: Info.SourcePos, stateSource :: Source.Source, stateNodes :: [AST grammar] }
|
||||
data AssignmentState grammar = AssignmentState
|
||||
{ stateOffset :: Int
|
||||
, statePos :: Info.SourcePos
|
||||
, stateSource :: Source.Source
|
||||
, stateNodes :: [AST grammar]
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
instance Alternative (Assignment symbol) where
|
||||
|
Loading…
Reference in New Issue
Block a user