Skip to content

Commit 8931442

Browse files
committed
Simplify RequestLoader initialization
1 parent a7c90f6 commit 8931442

File tree

2 files changed

+127
-142
lines changed

2 files changed

+127
-142
lines changed

include/RequestLoader.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ class RequestLoader
2525
explicit RequestLoader(RequestOptions&& requestOptions, const SchemaLoader& schemaLoader);
2626

2727
private:
28-
std::shared_ptr<schema::Schema> buildSchema(const SchemaLoader& schemaLoader) const;
29-
void addTypesToSchema(const SchemaLoader& schemaLoader, const std::shared_ptr<schema::Schema>& schema) const;
28+
void buildSchema(const SchemaLoader& schemaLoader);
29+
void addTypesToSchema(const SchemaLoader& schemaLoader);
30+
std::shared_ptr<const schema::BaseType> getSchemaType(
31+
std::string_view type, const TypeModifierStack& modifiers) const noexcept;
3032
void validateRequest() const;
3133

32-
static std::shared_ptr<const schema::BaseType> getIntrospectionType(
33-
const std::shared_ptr<schema::Schema>& schema, std::string_view type,
34-
const TypeModifierStack& modifiers) noexcept;
35-
3634
const RequestOptions _requestOptions;
37-
peg::ast _ast;
3835
std::shared_ptr<schema::Schema> _schema;
36+
peg::ast _ast;
3937
};
4038

4139
} /* namespace graphql::generator */

0 commit comments

Comments
 (0)