diff --git a/Sources/GraphQL/Language/Parser.swift b/Sources/GraphQL/Language/Parser.swift index 21b1eec5..57159646 100644 --- a/Sources/GraphQL/Language/Parser.swift +++ b/Sources/GraphQL/Language/Parser.swift @@ -2,7 +2,7 @@ * Given a GraphQL source, parses it into a Document. * Throws GraphQLError if a syntax error is encountered. */ -func parse( +public func parse( instrumentation: Instrumentation = NoOpInstrumentation, source: String, noLocation: Bool = false diff --git a/Sources/GraphQL/Language/Printer.swift b/Sources/GraphQL/Language/Printer.swift index a91d85a6..0ab59bef 100644 --- a/Sources/GraphQL/Language/Printer.swift +++ b/Sources/GraphQL/Language/Printer.swift @@ -2,7 +2,7 @@ import Foundation /// Converts an AST into a string, using one set of reasonable /// formatting rules. -func print(ast: Node) -> String { +public func print(ast: Node) -> String { ast.printed } diff --git a/Sources/GraphQL/Subscription/EventStream.swift b/Sources/GraphQL/Subscription/EventStream.swift index 8e594567..54eaf102 100644 --- a/Sources/GraphQL/Subscription/EventStream.swift +++ b/Sources/GraphQL/Subscription/EventStream.swift @@ -27,7 +27,7 @@ open class EventStream { -> ConcurrentEventStream { let newStream = stream.mapStream(closure) - return ConcurrentEventStream.init(newStream) + return ConcurrentEventStream(newStream) } } diff --git a/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift b/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift index edf70e11..cb1ac196 100644 --- a/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift +++ b/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift @@ -35,7 +35,7 @@ import GraphQL ) subscribers.append(subscriber) } - return ConcurrentEventStream.init(asyncStream) + return ConcurrentEventStream(asyncStream) } }