We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6d2eb commit 0023709Copy full SHA for 0023709
src/GraphQL/Internal/Syntax/AST.hs
@@ -68,6 +68,10 @@ data QueryDocument = QueryDocument {
68
, position :: PositionInfo
69
} deriving (Eq,Show)
70
71
+-- | PositionInfo for a start position and an end position.
72
+--
73
+-- When the AST is constructed elsewhere(not by parsing), for encoding as an example,
74
+-- the PositionInfo shall be Nothing
75
type PositionInfo = Maybe (Int, Int)
76
data Definition = DefinitionOperation OperationDefinition PositionInfo
77
| DefinitionFragment FragmentDefinition PositionInfo
0 commit comments