mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Generalize makeState to arbitrary term types.
This commit is contained in:
parent
9d4fb0920b
commit
360ef63ab4
@ -249,7 +249,7 @@ data AssignmentState term = AssignmentState
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
makeState :: Source.Source -> [Cofree [] (Record (node ': Location))] -> AssignmentState (Cofree [] (Record (node ': Location)))
|
||||
makeState :: Source.Source -> [term] -> AssignmentState term
|
||||
makeState source nodes = AssignmentState 0 (Info.SourcePos 1 1) source nodes
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user