mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +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
|
| Rose (_ :. range :. span :. _) _ : rest <- stateNodes = AssignmentState (Info.end range) (Info.spanEnd span) (Source.drop (Info.end range - stateOffset) stateSource) rest
|
||||||
| otherwise = state
|
| 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)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
instance Alternative (Assignment symbol) where
|
instance Alternative (Assignment symbol) where
|
||||||
|
Loading…
Reference in New Issue
Block a user