Skip to content

Commit 20d39e6

Browse files
author
Robert Mosolgo
committed
Remove InternalRepresentation and related methods
1 parent 3469bd4 commit 20d39e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+23
-1680
lines changed

cop/development/context_is_passed_cop.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class ContextIsPassedCop < RuboCop::Cop::Cop
1111
# These are already context-aware or else not query-related
1212
def_node_matcher :likely_query_specific_receiver?, "
1313
{
14-
(send _ {:irep_node :ast_node :query :context :warden :ctx :query_ctx :query_context})
15-
(lvar {:irep_node :ast_node :query :context :warden :ctx :query_ctx :query_context})
14+
(send _ {:ast_node :query :context :warden :ctx :query_ctx :query_context})
15+
(lvar {:ast_node :query :context :warden :ctx :query_ctx :query_context})
1616
(ivar {:@query :@context :@warden})
1717
(send _ {:introspection_system})
1818
}

lib/graphql.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def self.scan_with_ragel(graphql_string)
103103
require "graphql/types"
104104
require "graphql/dataloader"
105105
require "graphql/filter"
106-
require "graphql/internal_representation"
107106
require "graphql/directive"
108107
require "graphql/static_validation"
109108
require "graphql/execution"
@@ -125,7 +124,6 @@ def self.scan_with_ragel(graphql_string)
125124
require "graphql/backtrace"
126125

127126
require "graphql/deprecated_dsl"
128-
require "graphql/authorization"
129127
require "graphql/unauthorized_error"
130128
require "graphql/unauthorized_field_error"
131129
require "graphql/load_application_object_failed_error"

lib/graphql/analysis.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
# frozen_string_literal: true
22
require "graphql/analysis/ast"
3-
require "graphql/analysis/max_query_complexity"
4-
require "graphql/analysis/max_query_depth"
5-
require "graphql/analysis/query_complexity"
6-
require "graphql/analysis/query_depth"
7-
require "graphql/analysis/reducer_state"
8-
require "graphql/analysis/analyze_query"
9-
require "graphql/analysis/field_usage"

lib/graphql/analysis/analyze_query.rb

Lines changed: 0 additions & 98 deletions
This file was deleted.

lib/graphql/analysis/ast/query_complexity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Analysis
55
module AST
66
class QueryComplexity < Analyzer
77
# State for the query complexity calculation:
8-
# - `complexities_on_type` holds complexity scores for each type in an IRep node
8+
# - `complexities_on_type` holds complexity scores for each type
99
def initialize(query)
1010
super
1111
@complexities_on_type_by_query = {}

lib/graphql/analysis/field_usage.rb

Lines changed: 0 additions & 45 deletions
This file was deleted.

lib/graphql/analysis/max_query_complexity.rb

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/graphql/analysis/max_query_depth.rb

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/graphql/analysis/query_complexity.rb

Lines changed: 0 additions & 88 deletions
This file was deleted.

lib/graphql/analysis/query_depth.rb

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)