Skip to content

Commit cc0098b

Browse files
Added doc comment from graphql-js
1 parent 3a0c18b commit cc0098b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/GraphQL/Language/Visitor.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ public enum VisitResult {
327327
}
328328
}
329329

330+
/// A visitor is provided to visit, it contains the collection of
331+
/// relevant functions to be called during the visitor's traversal.
330332
public struct Visitor {
333+
/// A visitor is comprised of visit functions, which are called on each node during the visitor's traversal.
331334
public typealias Visit = (Node, IndexPathElement?, NodeResult?, [IndexPathElement], [NodeResult]) -> VisitResult
332335
private let enter: Visit
333336
private let leave: Visit

0 commit comments

Comments
 (0)