From e6827571a076a2bbf959c3a65d6f74fd3b7f7840 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:21:05 +0000 Subject: [PATCH 1/2] Bump the minor-and-patch group across 1 directory with 3 updates Bumps the minor-and-patch group with 3 updates in the / directory: [graphql](https://github.com/rmosolgo/graphql-ruby), [kramdown](https://github.com/gettalong/kramdown) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). Updates `graphql` from 2.4.1 to 2.4.4 - [Release notes](https://github.com/rmosolgo/graphql-ruby/releases) - [Changelog](https://github.com/rmosolgo/graphql-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/rmosolgo/graphql-ruby/compare/v2.4.1...v2.4.4) Updates `kramdown` from 2.4.0 to 2.5.1 - [Release notes](https://github.com/gettalong/kramdown/releases) - [Changelog](https://github.com/gettalong/kramdown/blob/master/doc/news.page) - [Commits](https://github.com/gettalong/kramdown/commits) Updates `sorbet-static-and-runtime` from 0.5.11633 to 0.5.11647 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) --- updated-dependencies: - dependency-name: graphql dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: kramdown dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: sorbet-static-and-runtime dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index fa548251f..e92644b67 100644 --- a/Gemfile +++ b/Gemfile @@ -62,4 +62,4 @@ group :test do gem "webmock" end -gem "kramdown", "~> 2.4" +gem "kramdown", "~> 2.5" diff --git a/Gemfile.lock b/Gemfile.lock index fca5b0dd8..b3447c766 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -158,7 +158,7 @@ GEM google-protobuf (4.28.3-x86_64-linux) bigdecimal rake (>= 13) - graphql (2.4.1) + graphql (2.4.4) base64 fiber-storage hashdiff (1.1.1) @@ -179,8 +179,8 @@ GEM faraday (>= 1.10, < 3.0) faraday-gzip (>= 1.0, < 3.0) rack (>= 0.2) - kramdown (2.4.0) - rexml + kramdown (2.5.1) + rexml (>= 3.3.9) kredis (1.7.0) activemodel (>= 6.0.0) activesupport (>= 6.0.0) @@ -313,14 +313,14 @@ GEM rack (>= 2.2.4) redis-client (>= 0.22.2) smart_properties (1.17.0) - sorbet (0.5.11633) - sorbet-static (= 0.5.11633) - sorbet-runtime (0.5.11633) - sorbet-static (0.5.11633-universal-darwin) - sorbet-static (0.5.11633-x86_64-linux) - sorbet-static-and-runtime (0.5.11633) - sorbet (= 0.5.11633) - sorbet-runtime (= 0.5.11633) + sorbet (0.5.11647) + sorbet-static (= 0.5.11647) + sorbet-runtime (0.5.11647) + sorbet-static (0.5.11647-universal-darwin) + sorbet-static (0.5.11647-x86_64-linux) + sorbet-static-and-runtime (0.5.11647) + sorbet (= 0.5.11647) + sorbet-runtime (= 0.5.11647) spoom (1.5.0) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -375,7 +375,7 @@ DEPENDENCIES identity_cache irb json_api_client - kramdown (~> 2.4) + kramdown (~> 2.5) kredis minitest minitest-hooks From b8746d86ceadbc2012f4d15703836e924b15d21c Mon Sep 17 00:00:00 2001 From: Emily Samp Date: Mon, 18 Nov 2024 12:24:13 -0600 Subject: [PATCH 2/2] Update gem RBIs --- .../{graphql@2.4.1.rbi => graphql@2.4.4.rbi} | 485 +++++++++++------- ...{kramdown@2.4.0.rbi => kramdown@2.5.1.rbi} | 450 ++++++++-------- 2 files changed, 522 insertions(+), 413 deletions(-) rename sorbet/rbi/gems/{graphql@2.4.1.rbi => graphql@2.4.4.rbi} (98%) rename sorbet/rbi/gems/{kramdown@2.4.0.rbi => kramdown@2.5.1.rbi} (89%) diff --git a/sorbet/rbi/gems/graphql@2.4.1.rbi b/sorbet/rbi/gems/graphql@2.4.4.rbi similarity index 98% rename from sorbet/rbi/gems/graphql@2.4.1.rbi rename to sorbet/rbi/gems/graphql@2.4.4.rbi index 4c2c3595c..8c05d5206 100644 --- a/sorbet/rbi/gems/graphql@2.4.1.rbi +++ b/sorbet/rbi/gems/graphql@2.4.4.rbi @@ -2208,7 +2208,7 @@ class GraphQL::Execution::Lookahead # # @return [GraphQL::Execution::Lookahead] # - # source://graphql//lib/graphql/execution/lookahead.rb#140 + # source://graphql//lib/graphql/execution/lookahead.rb#147 def alias_selection(alias_name, selected_type: T.unsafe(nil), arguments: T.unsafe(nil)); end # @return [Hash] @@ -2226,7 +2226,7 @@ class GraphQL::Execution::Lookahead # source://graphql//lib/graphql/execution/lookahead.rb#47 def field; end - # source://graphql//lib/graphql/execution/lookahead.rb#209 + # source://graphql//lib/graphql/execution/lookahead.rb#216 def inspect; end # The method name of the field. @@ -2239,7 +2239,7 @@ class GraphQL::Execution::Lookahead # end # @return [Symbol] # - # source://graphql//lib/graphql/execution/lookahead.rb#205 + # source://graphql//lib/graphql/execution/lookahead.rb#212 def name; end # @return [GraphQL::Schema::Object, GraphQL::Schema::Union, GraphQL::Schema::Interface] @@ -2249,7 +2249,7 @@ class GraphQL::Execution::Lookahead # @return [Boolean] True if this lookahead represents a field that was requested # - # source://graphql//lib/graphql/execution/lookahead.rb#100 + # source://graphql//lib/graphql/execution/lookahead.rb#107 def selected?; end # Like {#selects?}, but can be used for chaining. @@ -2258,7 +2258,7 @@ class GraphQL::Execution::Lookahead # @param field_name [String, Symbol] # @return [GraphQL::Execution::Lookahead] # - # source://graphql//lib/graphql/execution/lookahead.rb#108 + # source://graphql//lib/graphql/execution/lookahead.rb#115 def selection(field_name, selected_type: T.unsafe(nil), arguments: T.unsafe(nil)); end # Like {#selection}, but for all nodes. @@ -2276,7 +2276,7 @@ class GraphQL::Execution::Lookahead # @param arguments [Hash] Arguments which must match in the selection # @return [Array] # - # source://graphql//lib/graphql/execution/lookahead.rb#174 + # source://graphql//lib/graphql/execution/lookahead.rb#181 def selections(arguments: T.unsafe(nil)); end # True if this node has a selection on `field_name`. @@ -2293,7 +2293,7 @@ class GraphQL::Execution::Lookahead # @param arguments [Hash] Arguments which must match in the selection # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#79 + # source://graphql//lib/graphql/execution/lookahead.rb#86 def selects?(field_name, selected_type: T.unsafe(nil), arguments: T.unsafe(nil)); end # True if this node has a selection with alias matching `alias_name`. @@ -2310,79 +2310,79 @@ class GraphQL::Execution::Lookahead # @param arguments [Hash] Arguments which must match in the selection # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#95 + # source://graphql//lib/graphql/execution/lookahead.rb#102 def selects_alias?(alias_name, arguments: T.unsafe(nil)); end private - # source://graphql//lib/graphql/execution/lookahead.rb#349 + # source://graphql//lib/graphql/execution/lookahead.rb#356 def alias_selections; end # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#319 + # source://graphql//lib/graphql/execution/lookahead.rb#326 def arguments_match?(arguments, field_defn, field_node); end # If a selection on `node` matches `field_name` (which is backed by `field_defn`) # and matches the `arguments:` constraints, then add that node to `matches` # - # source://graphql//lib/graphql/execution/lookahead.rb#297 + # source://graphql//lib/graphql/execution/lookahead.rb#304 def find_selected_nodes(node, field_name, field_defn, arguments:, matches:, alias_name: T.unsafe(nil)); end - # source://graphql//lib/graphql/execution/lookahead.rb#257 + # source://graphql//lib/graphql/execution/lookahead.rb#264 def find_selections(subselections_by_type, selections_on_type, selected_type, ast_selections, arguments); end - # source://graphql//lib/graphql/execution/lookahead.rb#333 + # source://graphql//lib/graphql/execution/lookahead.rb#340 def lookahead_for_selection(field_defn, selected_type, arguments, alias_name = T.unsafe(nil)); end - # source://graphql//lib/graphql/execution/lookahead.rb#354 + # source://graphql//lib/graphql/execution/lookahead.rb#361 def lookup_alias_node(nodes, name); end - # source://graphql//lib/graphql/execution/lookahead.rb#373 + # source://graphql//lib/graphql/execution/lookahead.rb#380 def lookup_fragment(ast_selection); end # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#245 + # source://graphql//lib/graphql/execution/lookahead.rb#252 def skipped_by_directive?(ast_selection); end - # source://graphql//lib/graphql/execution/lookahead.rb#362 + # source://graphql//lib/graphql/execution/lookahead.rb#369 def unwrap_fragments(node); end end # A singleton, so that misses don't come with overhead. # -# source://graphql//lib/graphql/execution/lookahead.rb#241 +# source://graphql//lib/graphql/execution/lookahead.rb#248 GraphQL::Execution::Lookahead::NULL_LOOKAHEAD = T.let(T.unsafe(nil), GraphQL::Execution::Lookahead::NullLookahead) # This is returned for {Lookahead#selection} when a non-existent field is passed # -# source://graphql//lib/graphql/execution/lookahead.rb#214 +# source://graphql//lib/graphql/execution/lookahead.rb#221 class GraphQL::Execution::Lookahead::NullLookahead < ::GraphQL::Execution::Lookahead # No inputs required here. # # @return [NullLookahead] a new instance of NullLookahead # - # source://graphql//lib/graphql/execution/lookahead.rb#216 + # source://graphql//lib/graphql/execution/lookahead.rb#223 def initialize; end - # source://graphql//lib/graphql/execution/lookahead.rb#235 + # source://graphql//lib/graphql/execution/lookahead.rb#242 def inspect; end # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#219 + # source://graphql//lib/graphql/execution/lookahead.rb#226 def selected?; end - # source://graphql//lib/graphql/execution/lookahead.rb#227 + # source://graphql//lib/graphql/execution/lookahead.rb#234 def selection(*_arg0); end - # source://graphql//lib/graphql/execution/lookahead.rb#231 + # source://graphql//lib/graphql/execution/lookahead.rb#238 def selections(*_arg0); end # @return [Boolean] # - # source://graphql//lib/graphql/execution/lookahead.rb#223 + # source://graphql//lib/graphql/execution/lookahead.rb#230 def selects?(*_arg0); end end @@ -7791,7 +7791,7 @@ class GraphQL::Schema class << self # @api private # - # source://graphql//lib/graphql/schema.rb#1503 + # source://graphql//lib/graphql/schema.rb#1553 def add_subscription_extension_if_necessary; end # Return a lazy if any of `maybe_lazies` are lazy, @@ -7800,7 +7800,7 @@ class GraphQL::Schema # @api private # @param maybe_lazies [Array] # - # source://graphql//lib/graphql/schema.rb#1568 + # source://graphql//lib/graphql/schema.rb#1618 def after_any_lazies(maybe_lazies); end # Call the given block at the right time, either: @@ -7809,17 +7809,17 @@ class GraphQL::Schema # # @api private # - # source://graphql//lib/graphql/schema.rb#1528 + # source://graphql//lib/graphql/schema.rb#1578 def after_lazy(value, &block); end - # source://graphql//lib/graphql/schema.rb#857 + # source://graphql//lib/graphql/schema.rb#899 def analysis_engine; end # Sets the attribute analysis_engine # # @param value the value to set the attribute analysis_engine to. # - # source://graphql//lib/graphql/schema.rb#855 + # source://graphql//lib/graphql/schema.rb#897 def analysis_engine=(_arg0); end # Return the Hash response of {Introspection::INTROSPECTION_QUERY}. @@ -7852,46 +7852,46 @@ class GraphQL::Schema # @param new_context_class [Class] A subclass to use when executing queries # - # source://graphql//lib/graphql/schema.rb#1024 + # source://graphql//lib/graphql/schema.rb#1074 def context_class(new_context_class = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#885 + # source://graphql//lib/graphql/schema.rb#927 def count_introspection_fields; end - # source://graphql//lib/graphql/schema.rb#716 + # source://graphql//lib/graphql/schema.rb#758 def cursor_encoder(new_encoder = T.unsafe(nil)); end # @api private # @see GraphQL::Dataloader # - # source://graphql//lib/graphql/schema.rb#640 + # source://graphql//lib/graphql/schema.rb#675 def dataloader_class; end # Sets the attribute dataloader_class # # @param value the value to set the attribute dataloader_class to. # - # source://graphql//lib/graphql/schema.rb#644 + # source://graphql//lib/graphql/schema.rb#679 def dataloader_class=(_arg0); end - # source://graphql//lib/graphql/schema.rb#993 + # source://graphql//lib/graphql/schema.rb#1043 def default_analysis_engine; end - # source://graphql//lib/graphql/schema.rb#1308 + # source://graphql//lib/graphql/schema.rb#1358 def default_directives; end - # source://graphql//lib/graphql/schema.rb#985 + # source://graphql//lib/graphql/schema.rb#1035 def default_execution_strategy; end # @param new_default_logger [#log] Something to use for logging messages # - # source://graphql//lib/graphql/schema.rb#1003 + # source://graphql//lib/graphql/schema.rb#1053 def default_logger(new_default_logger = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#723 + # source://graphql//lib/graphql/schema.rb#765 def default_max_page_size(new_default_max_page_size = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#742 + # source://graphql//lib/graphql/schema.rb#784 def default_page_size(new_default_page_size = T.unsafe(nil)); end # @param new_mode [Symbol] If configured, this will be used when `context: { trace_mode: ... }` isn't set. @@ -7910,7 +7910,7 @@ class GraphQL::Schema # Returns `DidYouMean` if it's defined. # Override this to return `nil` if you don't want to use `DidYouMean` # - # source://graphql//lib/graphql/schema.rb#1580 + # source://graphql//lib/graphql/schema.rb#1630 def did_you_mean(new_dym = T.unsafe(nil)); end # Attach a single directive to this schema @@ -7918,51 +7918,51 @@ class GraphQL::Schema # @param new_directive [Class] # @return void # - # source://graphql//lib/graphql/schema.rb#1300 + # source://graphql//lib/graphql/schema.rb#1350 def directive(new_directive); end # Add several directives at once # # @param new_directives [Class] # - # source://graphql//lib/graphql/schema.rb#1284 + # source://graphql//lib/graphql/schema.rb#1334 def directives(*new_directives); end - # source://graphql//lib/graphql/schema.rb#893 + # source://graphql//lib/graphql/schema.rb#935 def disable_introspection_entry_points; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#911 + # source://graphql//lib/graphql/schema.rb#953 def disable_introspection_entry_points?; end - # source://graphql//lib/graphql/schema.rb#899 + # source://graphql//lib/graphql/schema.rb#941 def disable_schema_introspection_entry_point; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#919 + # source://graphql//lib/graphql/schema.rb#961 def disable_schema_introspection_entry_point?; end - # source://graphql//lib/graphql/schema.rb#905 + # source://graphql//lib/graphql/schema.rb#947 def disable_type_introspection_entry_point; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#927 + # source://graphql//lib/graphql/schema.rb#969 def disable_type_introspection_entry_point?; end - # source://graphql//lib/graphql/schema.rb#861 + # source://graphql//lib/graphql/schema.rb#903 def error_bubbling(new_error_bubbling = T.unsafe(nil)); end # Sets the attribute error_bubbling # # @param value the value to set the attribute error_bubbling to. # - # source://graphql//lib/graphql/schema.rb#870 + # source://graphql//lib/graphql/schema.rb#912 def error_bubbling=(_arg0); end - # source://graphql//lib/graphql/schema.rb#1060 + # source://graphql//lib/graphql/schema.rb#1110 def error_handlers; end # Execute a query on itself. @@ -7970,13 +7970,13 @@ class GraphQL::Schema # @return [GraphQL::Query::Result] query result, ready to be serialized as JSON # @see {Query#initialize} for arguments. # - # source://graphql//lib/graphql/schema.rb#1451 + # source://graphql//lib/graphql/schema.rb#1501 def execute(query_str = T.unsafe(nil), **kwargs); end # @param new_extra_types [Module] Type definitions to include in printing and introspection, even though they aren't referenced in the schema # @return [Array] Type definitions added to this schema # - # source://graphql//lib/graphql/schema.rb#937 + # source://graphql//lib/graphql/schema.rb#979 def extra_types(*new_extra_types); end # source://graphql//lib/graphql/schema.rb#308 @@ -8001,10 +8001,10 @@ class GraphQL::Schema # source://graphql//lib/graphql/schema.rb#102 def from_introspection(introspection_result); end - # source://graphql//lib/graphql/schema.rb#671 + # source://graphql//lib/graphql/schema.rb#706 def get_field(type_or_name, field_name, context = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#694 + # source://graphql//lib/graphql/schema.rb#729 def get_fields(type, context = T.unsafe(nil)); end # @param type_name [String] @@ -8017,7 +8017,7 @@ class GraphQL::Schema # @api private # - # source://graphql//lib/graphql/schema.rb#1069 + # source://graphql//lib/graphql/schema.rb#1119 def handle_or_reraise(context, err); end # @return [Boolean] Does this schema have _any_ definition for a type named `type_name`, regardless of visibility? @@ -8039,63 +8039,70 @@ class GraphQL::Schema # @raise [GraphQL::RequiredImplementationMissingError] # @return [String] A stable identifier which can be passed to {.object_from_id} later to re-fetch `application_object` # - # source://graphql//lib/graphql/schema.rb#1181 + # source://graphql//lib/graphql/schema.rb#1231 def id_from_object(application_object, graphql_type, context); end - # source://graphql//lib/graphql/schema.rb#1133 + # source://graphql//lib/graphql/schema.rb#1183 def inherited(child_class); end - # source://graphql//lib/graphql/schema.rb#1272 + # source://graphql//lib/graphql/schema.rb#1322 def instrument(instrument_step, instrumenter, options = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1495 + # source://graphql//lib/graphql/schema.rb#1545 def instrumenters; end - # source://graphql//lib/graphql/schema.rb#698 + # Pass a custom introspection module here to use it for this schema. + # + # @param new_introspection_namespace [Module] If given, use this module for custom introspection on the schema + # @return [Module, nil] The configured namespace, if there is one + # + # source://graphql//lib/graphql/schema.rb#736 def introspection(new_introspection_namespace = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#708 + # @return [Schema::IntrospectionSystem] Based on {introspection} + # + # source://graphql//lib/graphql/schema.rb#749 def introspection_system; end # @return [Boolean] True if this object should be lazily resolved # - # source://graphql//lib/graphql/schema.rb#1560 + # source://graphql//lib/graphql/schema.rb#1610 def lazy?(obj); end # @return [Symbol, nil] The method name to lazily resolve `obj`, or nil if `obj`'s class wasn't registered with {#lazy_resolve}. # - # source://graphql//lib/graphql/schema.rb#1555 + # source://graphql//lib/graphql/schema.rb#1605 def lazy_method_name(obj); end - # source://graphql//lib/graphql/schema.rb#1268 + # source://graphql//lib/graphql/schema.rb#1318 def lazy_resolve(lazy_class, value_method); end # Called when a type is needed by name at runtime # - # source://graphql//lib/graphql/schema.rb#1199 + # source://graphql//lib/graphql/schema.rb#1249 def load_type(type_name, ctx); end - # source://graphql//lib/graphql/schema.rb#836 + # source://graphql//lib/graphql/schema.rb#878 def max_complexity(max_complexity = T.unsafe(nil), count_introspection_fields: T.unsafe(nil)); end # Sets the attribute max_complexity # # @param value the value to set the attribute max_complexity to. # - # source://graphql//lib/graphql/schema.rb#834 + # source://graphql//lib/graphql/schema.rb#876 def max_complexity=(_arg0); end - # source://graphql//lib/graphql/schema.rb#847 + # source://graphql//lib/graphql/schema.rb#889 def max_complexity_count_introspection_fields; end - # source://graphql//lib/graphql/schema.rb#874 + # source://graphql//lib/graphql/schema.rb#916 def max_depth(new_max_depth = T.unsafe(nil), count_introspection_fields: T.unsafe(nil)); end # Sets the attribute max_depth # # @param value the value to set the attribute max_depth to. # - # source://graphql//lib/graphql/schema.rb#872 + # source://graphql//lib/graphql/schema.rb#914 def max_depth=(_arg0); end # A limit on the number of tokens to accept on incoming query strings. @@ -8103,7 +8110,7 @@ class GraphQL::Schema # # @return [nil, Integer] # - # source://graphql//lib/graphql/schema.rb#734 + # source://graphql//lib/graphql/schema.rb#776 def max_query_string_tokens(new_max_tokens = T.unsafe(nil)); end # Execute several queries on itself, concurrently. @@ -8125,16 +8132,16 @@ class GraphQL::Schema # @see {Query#initialize} for query keyword arguments # @see {Execution::Multiplex#run_all} for multiplex keyword arguments # - # source://graphql//lib/graphql/schema.rb#1491 + # source://graphql//lib/graphql/schema.rb#1541 def multiplex(queries, **kwargs); end # @param new_analyzer [Class] An analyzer to run on multiplexes to this schema # @see GraphQL::Analysis the analysis system # - # source://graphql//lib/graphql/schema.rb#1432 + # source://graphql//lib/graphql/schema.rb#1482 def multiplex_analyzer(new_analyzer); end - # source://graphql//lib/graphql/schema.rb#1436 + # source://graphql//lib/graphql/schema.rb#1486 def multiplex_analyzers; end # Get or set the root `mutation { ... }` object for this schema. @@ -8145,10 +8152,10 @@ class GraphQL::Schema # @param lazy_load_block If a block is given, then it will be called when GraphQL-Ruby needs the root mutation type. # @return [Class, nil] The configured mutation root type, if there is one. # - # source://graphql//lib/graphql/schema.rb#469 + # source://graphql//lib/graphql/schema.rb#481 def mutation(new_mutation_object = T.unsafe(nil), &lazy_load_block); end - # source://graphql//lib/graphql/schema.rb#762 + # source://graphql//lib/graphql/schema.rb#804 def mutation_execution_strategy(new_mutation_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end # Create a trace instance which will include the trace modules specified for the optional mode. @@ -8159,7 +8166,7 @@ class GraphQL::Schema # @param options [Hash] Keywords that will be passed to the tracing class during `#initialize` # @return [Tracing::Trace] # - # source://graphql//lib/graphql/schema.rb#1395 + # source://graphql//lib/graphql/schema.rb#1445 def new_trace(mode: T.unsafe(nil), **options); end # Fetch an object based on an incoming ID and the current context. This method should return an object @@ -8176,10 +8183,18 @@ class GraphQL::Schema # @return [Object, nil] The application which `object_id` references, or `nil` if there is no object or the current operation shouldn't have access to the object # @see id_from_object which produces these IDs # - # source://graphql//lib/graphql/schema.rb#1164 + # source://graphql//lib/graphql/schema.rb#1214 def object_from_id(object_id, context); end - # source://graphql//lib/graphql/schema.rb#955 + # Tell the schema about these types so that they can be registered as implementations of interfaces in the schema. + # + # This method must be used when an object type is connected to the schema as an interface implementor but + # not as a return type of a field. In that case, if the object type isn't registered here, GraphQL-Ruby won't be able to find it. + # + # @param new_orphan_types [Array>] Object types to register as implementations of interfaces in the schema. + # @return [Array>] All previously-registered orphan types for this schema + # + # source://graphql//lib/graphql/schema.rb#1004 def orphan_types(*new_orphan_types); end # source://graphql//lib/graphql/schema.rb#204 @@ -8196,7 +8211,7 @@ class GraphQL::Schema # @param ctx [GraphQL::Query::Context] The context for the query where the error occurred # @return void # - # source://graphql//lib/graphql/schema.rb#1264 + # source://graphql//lib/graphql/schema.rb#1314 def parse_error(parse_err, ctx); end # source://graphql//lib/graphql/schema.rb#332 @@ -8208,7 +8223,7 @@ class GraphQL::Schema # @return [Hash] All possible types, if no `type` is given. # @return [Array] Possible types for `type`, if it's given. # - # source://graphql//lib/graphql/schema.rb#587 + # source://graphql//lib/graphql/schema.rb#622 def possible_types(type = T.unsafe(nil), context = T.unsafe(nil), use_visibility_profile = T.unsafe(nil)); end # Get or set the root `query { ... }` object for this schema. @@ -8225,18 +8240,18 @@ class GraphQL::Schema # @param new_analyzer [Class] An analyzer to run on queries to this schema # @see GraphQL::Analysis the analysis system # - # source://graphql//lib/graphql/schema.rb#1422 + # source://graphql//lib/graphql/schema.rb#1472 def query_analyzer(new_analyzer); end - # source://graphql//lib/graphql/schema.rb#1426 + # source://graphql//lib/graphql/schema.rb#1476 def query_analyzers; end # @param new_query_class [Class] A subclass to use when executing queries # - # source://graphql//lib/graphql/schema.rb#816 + # source://graphql//lib/graphql/schema.rb#858 def query_class(new_query_class = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#750 + # source://graphql//lib/graphql/schema.rb#792 def query_execution_strategy(new_query_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end # Called when execution encounters a `SystemStackError`. By default, it adds a client-facing error to the response. @@ -8246,10 +8261,10 @@ class GraphQL::Schema # @param err [SystemStackError] # @return [void] # - # source://graphql//lib/graphql/schema.rb#1520 + # source://graphql//lib/graphql/schema.rb#1570 def query_stack_error(query, err); end - # source://graphql//lib/graphql/schema.rb#646 + # source://graphql//lib/graphql/schema.rb#681 def references_to(to_type = T.unsafe(nil), from: T.unsafe(nil)); end # Register a handler for errors raised during execution. The handlers can return a new value or raise a new error. @@ -8266,7 +8281,7 @@ class GraphQL::Schema # @yieldparam context [GraphQL::Query::Context] The context for the currently-running operation # @yieldreturn [Object] Some object to use in the place where this error was raised # - # source://graphql//lib/graphql/schema.rb#1046 + # source://graphql//lib/graphql/schema.rb#1096 def rescue_from(*err_classes, &handler_block); end # GraphQL-Ruby calls this method during execution when it needs the application to determine the type to use for an object. @@ -8287,26 +8302,26 @@ class GraphQL::Schema # @raise [GraphQL::RequiredImplementationMissingError] # @return [Class] The root types (query, mutation, subscription) defined for this schema # - # source://graphql//lib/graphql/schema.rb#534 + # source://graphql//lib/graphql/schema.rb#569 def root_types; end - # source://graphql//lib/graphql/schema.rb#1440 + # source://graphql//lib/graphql/schema.rb#1490 def sanitized_printer(new_sanitized_printer = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1189 + # source://graphql//lib/graphql/schema.rb#1239 def schema_directive(dir_class, **options); end - # source://graphql//lib/graphql/schema.rb#1194 + # source://graphql//lib/graphql/schema.rb#1244 def schema_directives; end # source://graphql//lib/graphql/schema.rb#316 @@ -8320,10 +8335,10 @@ class GraphQL::Schema # @param lazy_load_block If a block is given, then it will be called when GraphQL-Ruby needs the root subscription type. # @return [Class, nil] The configured subscription root type, if there is one. # - # source://graphql//lib/graphql/schema.rb#496 + # source://graphql//lib/graphql/schema.rb#520 def subscription(new_subscription_object = T.unsafe(nil), &lazy_load_block); end - # source://graphql//lib/graphql/schema.rb#774 + # source://graphql//lib/graphql/schema.rb#816 def subscription_execution_strategy(new_subscription_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end # @return [GraphQL::Subscriptions] @@ -8340,7 +8355,7 @@ class GraphQL::Schema # @param value [Object] an instance of a class registered with {.lazy_resolve} # @return [Object] A GraphQL-ready (non-lazy) object # - # source://graphql//lib/graphql/schema.rb#1544 + # source://graphql//lib/graphql/schema.rb#1594 def sync_lazy(value); end # Return the GraphQL IDL for the schema @@ -8399,7 +8414,7 @@ class GraphQL::Schema # # @return [Hash] # - # source://graphql//lib/graphql/schema.rb#1373 + # source://graphql//lib/graphql/schema.rb#1423 def trace_options_for(mode); end # Mix `trace_mod` into this schema's `Trace` class so that its methods @@ -8411,13 +8426,13 @@ class GraphQL::Schema # @return [void] # @see GraphQL::Tracing::Trace for available tracing methods # - # source://graphql//lib/graphql/schema.rb#1343 + # source://graphql//lib/graphql/schema.rb#1393 def trace_with(trace_mod, mode: T.unsafe(nil), **options); end - # source://graphql//lib/graphql/schema.rb#1318 + # source://graphql//lib/graphql/schema.rb#1368 def tracer(new_tracer, silence_deprecation_warning: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1331 + # source://graphql//lib/graphql/schema.rb#1381 def tracers; end # Called at runtime when GraphQL-Ruby encounters a mismatch between the application behavior @@ -8432,10 +8447,10 @@ class GraphQL::Schema # @raise [GraphQL::Error] to crash the query and raise a developer-facing error # @return [void] # - # source://graphql//lib/graphql/schema.rb#1247 + # source://graphql//lib/graphql/schema.rb#1297 def type_error(type_error, ctx); end - # source://graphql//lib/graphql/schema.rb#667 + # source://graphql//lib/graphql/schema.rb#702 def type_from_ast(ast_node, context: T.unsafe(nil)); end # Build a map of `{ name => type }` and return it @@ -8459,7 +8474,7 @@ class GraphQL::Schema # @param unauthorized_error [GraphQL::UnauthorizedFieldError] # @return [Field] The returned field will be put in the GraphQL response # - # source://graphql//lib/graphql/schema.rb#1233 + # source://graphql//lib/graphql/schema.rb#1283 def unauthorized_field(unauthorized_error); end # This hook is called when an object fails an `authorized?` check. @@ -8478,10 +8493,10 @@ class GraphQL::Schema # @param unauthorized_error [GraphQL::UnauthorizedError] # @return [Object] The returned object will be put in the GraphQL response # - # source://graphql//lib/graphql/schema.rb#1217 + # source://graphql//lib/graphql/schema.rb#1267 def unauthorized_object(unauthorized_error); end - # source://graphql//lib/graphql/schema.rb#623 + # source://graphql//lib/graphql/schema.rb#658 def union_memberships(type = T.unsafe(nil)); end # Add `plugin` to this schema @@ -8494,13 +8509,13 @@ class GraphQL::Schema # @api private # - # source://graphql//lib/graphql/schema.rb#568 + # source://graphql//lib/graphql/schema.rb#603 def use_visibility_profile=(_arg0); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#572 + # source://graphql//lib/graphql/schema.rb#607 def use_visibility_profile?; end # Validate a query string according to this schema. @@ -8508,117 +8523,117 @@ class GraphQL::Schema # @param string_or_document [String, GraphQL::Language::Nodes::Document] # @return [Array] # - # source://graphql//lib/graphql/schema.rb#801 + # source://graphql//lib/graphql/schema.rb#843 def validate(string_or_document, rules: T.unsafe(nil), context: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#826 + # source://graphql//lib/graphql/schema.rb#868 def validate_max_errors(new_validate_max_errors = T.unsafe(nil)); end # Sets the attribute validate_max_errors # # @param value the value to set the attribute validate_max_errors to. # - # source://graphql//lib/graphql/schema.rb#824 + # source://graphql//lib/graphql/schema.rb#866 def validate_max_errors=(_arg0); end - # source://graphql//lib/graphql/schema.rb#788 + # source://graphql//lib/graphql/schema.rb#830 def validate_timeout(new_validate_timeout = T.unsafe(nil)); end # Sets the attribute validate_timeout # # @param value the value to set the attribute validate_timeout to. # - # source://graphql//lib/graphql/schema.rb#786 + # source://graphql//lib/graphql/schema.rb#828 def validate_timeout=(_arg0); end # @api private # - # source://graphql//lib/graphql/schema.rb#570 + # source://graphql//lib/graphql/schema.rb#605 def visibility; end # @api private # - # source://graphql//lib/graphql/schema.rb#570 + # source://graphql//lib/graphql/schema.rb#605 def visibility=(_arg0); end # @api private # - # source://graphql//lib/graphql/schema.rb#557 + # source://graphql//lib/graphql/schema.rb#592 def visibility_profile_class; end # @api private # - # source://graphql//lib/graphql/schema.rb#568 + # source://graphql//lib/graphql/schema.rb#603 def visibility_profile_class=(_arg0); end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#1185 + # source://graphql//lib/graphql/schema.rb#1235 def visible?(member, ctx); end # @api private # - # source://graphql//lib/graphql/schema.rb#543 + # source://graphql//lib/graphql/schema.rb#578 def warden_class; end # @api private # - # source://graphql//lib/graphql/schema.rb#554 + # source://graphql//lib/graphql/schema.rb#589 def warden_class=(_arg0); end private - # source://graphql//lib/graphql/schema.rb#1594 + # source://graphql//lib/graphql/schema.rb#1644 def add_trace_options_for(mode, new_options); end # @param t [Module, Array] # @return [void] # - # source://graphql//lib/graphql/schema.rb#1611 + # source://graphql//lib/graphql/schema.rb#1661 def add_type_and_traverse(t, root:); end # This is overridden in subclasses to check the inheritance chain # - # source://graphql//lib/graphql/schema.rb#1726 + # source://graphql//lib/graphql/schema.rb#1776 def get_references_to(type_defn); end - # source://graphql//lib/graphql/schema.rb#1663 + # source://graphql//lib/graphql/schema.rb#1713 def lazy_methods; end - # source://graphql//lib/graphql/schema.rb#1685 + # source://graphql//lib/graphql/schema.rb#1735 def non_introspection_types; end - # source://graphql//lib/graphql/schema.rb#1705 + # source://graphql//lib/graphql/schema.rb#1755 def own_directives; end - # source://graphql//lib/graphql/schema.rb#1709 + # source://graphql//lib/graphql/schema.rb#1759 def own_instrumenters; end - # source://graphql//lib/graphql/schema.rb#1721 + # source://graphql//lib/graphql/schema.rb#1771 def own_multiplex_analyzers; end - # source://graphql//lib/graphql/schema.rb#1693 + # source://graphql//lib/graphql/schema.rb#1743 def own_orphan_types; end - # source://graphql//lib/graphql/schema.rb#1689 + # source://graphql//lib/graphql/schema.rb#1739 def own_plugins; end - # source://graphql//lib/graphql/schema.rb#1697 + # source://graphql//lib/graphql/schema.rb#1747 def own_possible_types; end - # source://graphql//lib/graphql/schema.rb#1717 + # source://graphql//lib/graphql/schema.rb#1767 def own_query_analyzers; end - # source://graphql//lib/graphql/schema.rb#1681 + # source://graphql//lib/graphql/schema.rb#1731 def own_references_to; end - # source://graphql//lib/graphql/schema.rb#1713 + # source://graphql//lib/graphql/schema.rb#1763 def own_tracers; end - # source://graphql//lib/graphql/schema.rb#1677 + # source://graphql//lib/graphql/schema.rb#1727 def own_types; end - # source://graphql//lib/graphql/schema.rb#1701 + # source://graphql//lib/graphql/schema.rb#1751 def own_union_memberships; end end end @@ -9102,7 +9117,7 @@ end # @api private # -# source://graphql//lib/graphql/schema.rb#1751 +# source://graphql//lib/graphql/schema.rb#1801 module GraphQL::Schema::DefaultTraceClass; end # Subclasses of this can influence how {GraphQL::Execution::Interpreter} runs queries. @@ -12372,9 +12387,9 @@ class GraphQL::Schema::Scalar < ::GraphQL::Schema::Member end end -# source://graphql//lib/graphql/schema.rb#1731 +# source://graphql//lib/graphql/schema.rb#1781 module GraphQL::Schema::SubclassGetReferencesTo - # source://graphql//lib/graphql/schema.rb#1732 + # source://graphql//lib/graphql/schema.rb#1782 def get_references_to(type_defn); end end @@ -13105,12 +13120,21 @@ end class GraphQL::Schema::Visibility # @return [Visibility] a new instance of Visibility # - # source://graphql//lib/graphql/schema/visibility.rb#18 + # source://graphql//lib/graphql/schema/visibility.rb#22 def initialize(schema, dynamic:, preload:, profiles:, migration_errors:); end + # source://graphql//lib/graphql/schema/visibility.rb#44 + def all_directives; end + + # source://graphql//lib/graphql/schema/visibility.rb#49 + def all_interface_type_memberships; end + + # source://graphql//lib/graphql/schema/visibility.rb#54 + def all_references; end + # Returns the value of attribute cached_profiles. # - # source://graphql//lib/graphql/schema/visibility.rb#54 + # source://graphql//lib/graphql/schema/visibility.rb#146 def cached_profiles; end # Make another Visibility for `schema` based on this one @@ -13118,24 +13142,81 @@ class GraphQL::Schema::Visibility # @api private # @return [Visibility] # - # source://graphql//lib/graphql/schema/visibility.rb#40 + # source://graphql//lib/graphql/schema/visibility.rb#132 def dup_for(other_schema); end + # source://graphql//lib/graphql/schema/visibility.rb#59 + def get_type(type_name); end + + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#119 + def introspection_system_configured(introspection_system); end + # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility.rb#50 + # source://graphql//lib/graphql/schema/visibility.rb#142 def migration_errors?; end - # source://graphql//lib/graphql/schema/visibility.rb#56 + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#98 + def mutation_configured(mutation_type); end + + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#112 + def orphan_types_configured(orphan_types); end + + # source://graphql//lib/graphql/schema/visibility.rb#68 + def preload; end + + # @return [Boolean] + # + # source://graphql//lib/graphql/schema/visibility.rb#64 + def preload?; end + + # source://graphql//lib/graphql/schema/visibility.rb#148 def profile_for(context, visibility_profile); end + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#91 + def query_configured(query_type); end + + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#105 + def subscription_configured(subscription_type); end + + # Returns the value of attribute top_level. + # + # source://graphql//lib/graphql/schema/visibility.rb#172 + def top_level; end + + # source://graphql//lib/graphql/schema/visibility.rb#177 + def top_level_profile(refresh: T.unsafe(nil)); end + + # @api private + # + # source://graphql//lib/graphql/schema/visibility.rb#175 + def unfiltered_interface_type_memberships; end + + private + + # source://graphql//lib/graphql/schema/visibility.rb#186 + def ensure_all_loaded(types_to_visit); end + + # source://graphql//lib/graphql/schema/visibility.rb#199 + def load_all(types: T.unsafe(nil)); end + class << self # @param schema [Class] # @param profiles [Hash Hash>] A hash of `name => context` pairs for preloading visibility profiles # @param preload [Boolean] if `true`, load the default schema profile and all named profiles immediately (defaults to `true` for `Rails.env.production?`) # @param migration_errors [Boolean] if `true`, raise an error when `Visibility` and `Warden` return different results # - # source://graphql//lib/graphql/schema/visibility.rb#14 + # source://graphql//lib/graphql/schema/visibility.rb#15 def use(schema, dynamic: T.unsafe(nil), profiles: T.unsafe(nil), preload: T.unsafe(nil), migration_errors: T.unsafe(nil)); end end end @@ -13273,52 +13354,52 @@ class GraphQL::Schema::Visibility::Profile # source://graphql//lib/graphql/schema/visibility/profile.rb#34 def initialize(context:, schema:, name: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#281 + # source://graphql//lib/graphql/schema/visibility/profile.rb#223 def all_types; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#286 + # source://graphql//lib/graphql/schema/visibility/profile.rb#228 def all_types_h; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#234 + # source://graphql//lib/graphql/schema/visibility/profile.rb#176 def argument(owner, arg_name); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#230 + # source://graphql//lib/graphql/schema/visibility/profile.rb#172 def arguments(owner); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#295 + # source://graphql//lib/graphql/schema/visibility/profile.rb#237 def directive_exists?(dir_name); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#304 + # source://graphql//lib/graphql/schema/visibility/profile.rb#241 def directives; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#291 + # source://graphql//lib/graphql/schema/visibility/profile.rb#233 def enum_values(owner); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#196 + # source://graphql//lib/graphql/schema/visibility/profile.rb#138 def field(owner, field_name); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#142 + # source://graphql//lib/graphql/schema/visibility/profile.rb#89 def field_on_visible_interface?(field, owner); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#226 + # source://graphql//lib/graphql/schema/visibility/profile.rb#168 def fields(owner); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#261 + # source://graphql//lib/graphql/schema/visibility/profile.rb#203 def interfaces(obj_or_int_type); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#317 + # source://graphql//lib/graphql/schema/visibility/profile.rb#245 def loadable?(t, _ctx); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#321 + # source://graphql//lib/graphql/schema/visibility/profile.rb#250 def loaded_types; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#273 + # source://graphql//lib/graphql/schema/visibility/profile.rb#215 def mutation_root; end # @return [Symbol, nil] @@ -13326,57 +13407,51 @@ class GraphQL::Schema::Visibility::Profile # source://graphql//lib/graphql/schema/visibility/profile.rb#32 def name; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#257 + # source://graphql//lib/graphql/schema/visibility/profile.rb#199 def possible_types(type); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#269 + # source://graphql//lib/graphql/schema/visibility/profile.rb#211 def query_root; end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#325 - def reachable_type?(name); end + # source://graphql//lib/graphql/schema/visibility/profile.rb#254 + def reachable_type?(type_name); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#277 + # source://graphql//lib/graphql/schema/visibility/profile.rb#219 def subscription_root; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#166 + # source://graphql//lib/graphql/schema/visibility/profile.rb#113 def type(type_name); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#330 + # source://graphql//lib/graphql/schema/visibility/profile.rb#259 def visible_enum_value?(enum_value, _ctx = T.unsafe(nil)); end private - # source://graphql//lib/graphql/schema/visibility/profile.rb#336 - def add_if_visible(t); end - - # source://graphql//lib/graphql/schema/visibility/profile.rb#340 - def add_type(t, by_member); end - - # source://graphql//lib/graphql/schema/visibility/profile.rb#381 + # source://graphql//lib/graphql/schema/visibility/profile.rb#282 def load_all_types; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#359 + # source://graphql//lib/graphql/schema/visibility/profile.rb#265 def non_duplicate_items(definitions, visibility_cache); end + # source://graphql//lib/graphql/schema/visibility/profile.rb#310 + def possible_types_for(type); end + # @raise [DuplicateNamesError] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#372 + # source://graphql//lib/graphql/schema/visibility/profile.rb#278 def raise_duplicate_definition(first_defn, second_defn); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#376 - def referenced?(t); end - - # source://graphql//lib/graphql/schema/visibility/profile.rb#509 - def visit_directives(member); end + # source://graphql//lib/graphql/schema/visibility/profile.rb#306 + def referenced?(type_defn); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#441 - def visit_type(type); end + # source://graphql//lib/graphql/schema/visibility/profile.rb#342 + def visible_field_for(owner, field); end class << self # @return [Schema::Visibility::Profile] @@ -13389,6 +13464,31 @@ class GraphQL::Schema::Visibility::Profile end end +# source://graphql//lib/graphql/schema/visibility/visit.rb#5 +class GraphQL::Schema::Visibility::Visit + # @return [Visit] a new instance of Visit + # + # source://graphql//lib/graphql/schema/visibility/visit.rb#6 + def initialize(schema, &visit_block); end + + # source://graphql//lib/graphql/schema/visibility/visit.rb#28 + def entry_point_directives; end + + # source://graphql//lib/graphql/schema/visibility/visit.rb#16 + def entry_point_types; end + + # source://graphql//lib/graphql/schema/visibility/visit.rb#32 + def visit_each(types: T.unsafe(nil), directives: T.unsafe(nil)); end + + private + + # source://graphql//lib/graphql/schema/visibility/visit.rb#127 + def append_unvisited_type(owner, type); end + + # source://graphql//lib/graphql/schema/visibility/visit.rb#135 + def update_type_owner(owner, type); end +end + # Restrict access to a {GraphQL::Schema} with a user-defined `visible?` implementations. # # When validating and executing a query, all access to schema members @@ -14447,6 +14547,11 @@ end module GraphQL::StaticValidation::FieldsAreDefinedOnType # source://graphql//lib/graphql/static_validation/rules/fields_are_defined_on_type.rb#5 def on_field(node, parent); end + + private + + # source://graphql//lib/graphql/static_validation/rules/fields_are_defined_on_type.rb#34 + def possible_fields(context, parent_type); end end # source://graphql//lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb#4 @@ -15499,7 +15604,7 @@ class GraphQL::StaticValidation::ValidationContext # source://forwardable/1.3.3/forwardable.rb#231 def dependencies(*args, **_arg1, &block); end - # source://graphql//lib/graphql/static_validation/validation_context.rb#52 + # source://graphql//lib/graphql/static_validation/validation_context.rb#53 def did_you_mean_suggestion(name, options); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -15527,7 +15632,7 @@ class GraphQL::StaticValidation::ValidationContext # source://forwardable/1.3.3/forwardable.rb#231 def object_types(*args, **_arg1, &block); end - # source://graphql//lib/graphql/static_validation/validation_context.rb#36 + # source://graphql//lib/graphql/static_validation/validation_context.rb#37 def on_dependency_resolve(&handler); end # Returns the value of attribute on_dependency_resolve_handlers. @@ -15554,12 +15659,12 @@ class GraphQL::StaticValidation::ValidationContext # source://graphql//lib/graphql/static_validation/validation_context.rb#14 def schema; end - # source://graphql//lib/graphql/static_validation/validation_context.rb#48 + # source://graphql//lib/graphql/static_validation/validation_context.rb#49 def schema_directives; end # @return [Boolean] # - # source://graphql//lib/graphql/static_validation/validation_context.rb#44 + # source://graphql//lib/graphql/static_validation/validation_context.rb#45 def too_many_errors?; end # source://forwardable/1.3.3/forwardable.rb#231 @@ -15570,7 +15675,7 @@ class GraphQL::StaticValidation::ValidationContext # source://graphql//lib/graphql/static_validation/validation_context.rb#14 def types; end - # source://graphql//lib/graphql/static_validation/validation_context.rb#40 + # source://graphql//lib/graphql/static_validation/validation_context.rb#41 def validate_literal(ast_value, type); end # Returns the value of attribute visitor. diff --git a/sorbet/rbi/gems/kramdown@2.4.0.rbi b/sorbet/rbi/gems/kramdown@2.5.1.rbi similarity index 89% rename from sorbet/rbi/gems/kramdown@2.4.0.rbi rename to sorbet/rbi/gems/kramdown@2.5.1.rbi index ee2bcd8de..72b747da1 100644 --- a/sorbet/rbi/gems/kramdown@2.4.0.rbi +++ b/sorbet/rbi/gems/kramdown@2.5.1.rbi @@ -277,7 +277,7 @@ class Kramdown::Converter::Html < ::Kramdown::Converter::Base # Add the syntax highlighter name to the 'class' attribute of the given attribute hash. And # overwrites or add a "language-LANG" part using the +lang+ parameter if +lang+ is not nil. # - # source://kramdown//lib/kramdown/converter/html.rb#409 + # source://kramdown//lib/kramdown/converter/html.rb#417 def add_syntax_highlighter_to_class_attr(attr, lang = T.unsafe(nil)); end # Dispatch the conversion of the element +el+ to a +convert_TYPE+ method using the +type+ of @@ -286,79 +286,79 @@ class Kramdown::Converter::Html < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/html.rb#57 def convert(el, indent = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/converter/html.rb#272 + # source://kramdown//lib/kramdown/converter/html.rb#283 def convert_a(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#365 + # source://kramdown//lib/kramdown/converter/html.rb#377 def convert_abbreviation(el, _indent); end # source://kramdown//lib/kramdown/converter/html.rb#77 def convert_blank(_el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#141 + # source://kramdown//lib/kramdown/converter/html.rb#145 def convert_blockquote(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#268 + # source://kramdown//lib/kramdown/converter/html.rb#279 def convert_br(_el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#111 + # source://kramdown//lib/kramdown/converter/html.rb#115 def convert_codeblock(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#280 + # source://kramdown//lib/kramdown/converter/html.rb#291 def convert_codespan(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#260 + # source://kramdown//lib/kramdown/converter/html.rb#271 def convert_comment(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#178 + # source://kramdown//lib/kramdown/converter/html.rb#189 def convert_dd(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#174 + # source://kramdown//lib/kramdown/converter/html.rb#185 def convert_dl(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#190 + # source://kramdown//lib/kramdown/converter/html.rb#201 def convert_dt(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#319 + # source://kramdown//lib/kramdown/converter/html.rb#331 def convert_em(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#324 + # source://kramdown//lib/kramdown/converter/html.rb#336 def convert_entity(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#294 + # source://kramdown//lib/kramdown/converter/html.rb#305 def convert_footnote(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#145 + # source://kramdown//lib/kramdown/converter/html.rb#149 def convert_header(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#155 + # source://kramdown//lib/kramdown/converter/html.rb#166 def convert_hr(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#201 + # source://kramdown//lib/kramdown/converter/html.rb#212 def convert_html_element(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#276 + # source://kramdown//lib/kramdown/converter/html.rb#287 def convert_img(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#178 + # source://kramdown//lib/kramdown/converter/html.rb#189 def convert_li(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#351 + # source://kramdown//lib/kramdown/converter/html.rb#363 def convert_math(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#162 + # source://kramdown//lib/kramdown/converter/html.rb#173 def convert_ol(el, indent); end # source://kramdown//lib/kramdown/converter/html.rb#86 def convert_p(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#311 + # source://kramdown//lib/kramdown/converter/html.rb#323 def convert_raw(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#372 + # source://kramdown//lib/kramdown/converter/html.rb#384 def convert_root(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#347 + # source://kramdown//lib/kramdown/converter/html.rb#359 def convert_smart_quote(el, _indent); end # Helper method used by +convert_p+ to convert a paragraph that only contains a single :img @@ -367,71 +367,71 @@ class Kramdown::Converter::Html < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/html.rb#99 def convert_standalone_image(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#319 + # source://kramdown//lib/kramdown/converter/html.rb#331 def convert_strong(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#238 + # source://kramdown//lib/kramdown/converter/html.rb#249 def convert_table(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#238 + # source://kramdown//lib/kramdown/converter/html.rb#249 def convert_tbody(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#248 + # source://kramdown//lib/kramdown/converter/html.rb#259 def convert_td(el, indent); end # source://kramdown//lib/kramdown/converter/html.rb#81 def convert_text(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#238 + # source://kramdown//lib/kramdown/converter/html.rb#249 def convert_tfoot(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#238 + # source://kramdown//lib/kramdown/converter/html.rb#249 def convert_thead(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#238 + # source://kramdown//lib/kramdown/converter/html.rb#249 def convert_tr(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#339 + # source://kramdown//lib/kramdown/converter/html.rb#351 def convert_typographic_sym(el, _indent); end - # source://kramdown//lib/kramdown/converter/html.rb#162 + # source://kramdown//lib/kramdown/converter/html.rb#173 def convert_ul(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#228 + # source://kramdown//lib/kramdown/converter/html.rb#239 def convert_xml_comment(el, indent); end - # source://kramdown//lib/kramdown/converter/html.rb#228 + # source://kramdown//lib/kramdown/converter/html.rb#239 def convert_xml_pi(el, indent); end # Fixes the elements for use in a TOC entry. # - # source://kramdown//lib/kramdown/converter/html.rb#453 + # source://kramdown//lib/kramdown/converter/html.rb#461 def fix_for_toc_entry(elements); end # Return an HTML ordered list with the footnote content for the used footnotes. # - # source://kramdown//lib/kramdown/converter/html.rb#488 + # source://kramdown//lib/kramdown/converter/html.rb#496 def footnote_content; end # Format the given element as block HTML. # - # source://kramdown//lib/kramdown/converter/html.rb#397 + # source://kramdown//lib/kramdown/converter/html.rb#405 def format_as_block_html(name, attr, body, indent); end # Format the given element as block HTML with a newline after the start tag and indentation # before the end tag. # - # source://kramdown//lib/kramdown/converter/html.rb#403 + # source://kramdown//lib/kramdown/converter/html.rb#411 def format_as_indented_block_html(name, attr, body, indent); end # Format the given element as span HTML. # - # source://kramdown//lib/kramdown/converter/html.rb#392 + # source://kramdown//lib/kramdown/converter/html.rb#400 def format_as_span_html(name, attr, body); end # Generate and return an element tree for the table of contents. # - # source://kramdown//lib/kramdown/converter/html.rb#415 + # source://kramdown//lib/kramdown/converter/html.rb#423 def generate_toc_tree(toc, type, attr); end # The amount of indentation used when nesting HTML tags. @@ -455,30 +455,30 @@ class Kramdown::Converter::Html < ::Kramdown::Converter::Base # Obfuscate the +text+ by using HTML entities. # - # source://kramdown//lib/kramdown/converter/html.rb#476 + # source://kramdown//lib/kramdown/converter/html.rb#484 def obfuscate(text); end # Remove all footnotes from the given elements. # - # source://kramdown//lib/kramdown/converter/html.rb#468 + # source://kramdown//lib/kramdown/converter/html.rb#476 def remove_footnotes(elements); end # Remove all link elements by unwrapping them. # - # source://kramdown//lib/kramdown/converter/html.rb#460 + # source://kramdown//lib/kramdown/converter/html.rb#468 def unwrap_links(elements); end end -# source://kramdown//lib/kramdown/converter/html.rb#246 +# source://kramdown//lib/kramdown/converter/html.rb#257 Kramdown::Converter::Html::ENTITY_NBSP = T.let(T.unsafe(nil), Kramdown::Utils::Entities::Entity) -# source://kramdown//lib/kramdown/converter/html.rb#485 +# source://kramdown//lib/kramdown/converter/html.rb#493 Kramdown::Converter::Html::FOOTNOTE_BACKLINK_FMT = T.let(T.unsafe(nil), String) -# source://kramdown//lib/kramdown/converter/html.rb#328 +# source://kramdown//lib/kramdown/converter/html.rb#340 Kramdown::Converter::Html::TYPOGRAPHIC_SYMS = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/converter/html.rb#159 +# source://kramdown//lib/kramdown/converter/html.rb#170 Kramdown::Converter::Html::ZERO_TO_ONETWENTYEIGHT = T.let(T.unsafe(nil), Array) # Converts an element tree to the kramdown format. @@ -495,148 +495,148 @@ class Kramdown::Converter::Kramdown < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/kramdown.rb#34 def convert(el, opts = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#291 + # source://kramdown//lib/kramdown/converter/kramdown.rb#296 def convert_a(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#377 + # source://kramdown//lib/kramdown/converter/kramdown.rb#382 def convert_abbreviation(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#70 + # source://kramdown//lib/kramdown/converter/kramdown.rb#71 def convert_blank(_el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#107 + # source://kramdown//lib/kramdown/converter/kramdown.rb#111 def convert_blockquote(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#287 - def convert_br(_el, _opts); end + # source://kramdown//lib/kramdown/converter/kramdown.rb#292 + def convert_br(_el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#103 + # source://kramdown//lib/kramdown/converter/kramdown.rb#107 def convert_codeblock(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#324 + # source://kramdown//lib/kramdown/converter/kramdown.rb#329 def convert_codespan(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#279 + # source://kramdown//lib/kramdown/converter/kramdown.rb#284 def convert_comment(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#158 + # source://kramdown//lib/kramdown/converter/kramdown.rb#163 def convert_dd(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#124 + # source://kramdown//lib/kramdown/converter/kramdown.rb#129 def convert_dl(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#182 + # source://kramdown//lib/kramdown/converter/kramdown.rb#187 def convert_dt(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#346 + # source://kramdown//lib/kramdown/converter/kramdown.rb#351 def convert_em(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#356 + # source://kramdown//lib/kramdown/converter/kramdown.rb#361 def convert_entity(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#329 + # source://kramdown//lib/kramdown/converter/kramdown.rb#334 def convert_footnote(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#112 + # source://kramdown//lib/kramdown/converter/kramdown.rb#116 def convert_header(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#120 + # source://kramdown//lib/kramdown/converter/kramdown.rb#125 def convert_hr(_el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#195 + # source://kramdown//lib/kramdown/converter/kramdown.rb#200 def convert_html_element(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#308 + # source://kramdown//lib/kramdown/converter/kramdown.rb#313 def convert_img(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#130 + # source://kramdown//lib/kramdown/converter/kramdown.rb#135 def convert_li(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#373 + # source://kramdown//lib/kramdown/converter/kramdown.rb#378 def convert_math(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#124 + # source://kramdown//lib/kramdown/converter/kramdown.rb#129 def convert_ol(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#88 + # source://kramdown//lib/kramdown/converter/kramdown.rb#92 def convert_p(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#334 + # source://kramdown//lib/kramdown/converter/kramdown.rb#339 def convert_raw(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#381 + # source://kramdown//lib/kramdown/converter/kramdown.rb#386 def convert_root(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#369 + # source://kramdown//lib/kramdown/converter/kramdown.rb#374 def convert_smart_quote(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#351 + # source://kramdown//lib/kramdown/converter/kramdown.rb#356 def convert_strong(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#239 + # source://kramdown//lib/kramdown/converter/kramdown.rb#244 def convert_table(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#260 + # source://kramdown//lib/kramdown/converter/kramdown.rb#265 def convert_tbody(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#275 + # source://kramdown//lib/kramdown/converter/kramdown.rb#280 def convert_td(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#76 + # source://kramdown//lib/kramdown/converter/kramdown.rb#77 def convert_text(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#267 + # source://kramdown//lib/kramdown/converter/kramdown.rb#272 def convert_tfoot(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#244 + # source://kramdown//lib/kramdown/converter/kramdown.rb#249 def convert_thead(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#271 + # source://kramdown//lib/kramdown/converter/kramdown.rb#276 def convert_tr(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#365 + # source://kramdown//lib/kramdown/converter/kramdown.rb#370 def convert_typographic_sym(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#124 + # source://kramdown//lib/kramdown/converter/kramdown.rb#129 def convert_ul(el, opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#229 + # source://kramdown//lib/kramdown/converter/kramdown.rb#234 def convert_xml_comment(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#229 + # source://kramdown//lib/kramdown/converter/kramdown.rb#234 def convert_xml_pi(el, _opts); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#408 + # source://kramdown//lib/kramdown/converter/kramdown.rb#413 def create_abbrev_defs; end - # source://kramdown//lib/kramdown/converter/kramdown.rb#399 + # source://kramdown//lib/kramdown/converter/kramdown.rb#404 def create_footnote_defs; end - # source://kramdown//lib/kramdown/converter/kramdown.rb#389 + # source://kramdown//lib/kramdown/converter/kramdown.rb#394 def create_link_defs; end # Return the IAL containing the attributes of the element +el+. # - # source://kramdown//lib/kramdown/converter/kramdown.rb#419 + # source://kramdown//lib/kramdown/converter/kramdown.rb#424 def ial_for_element(el); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#54 + # source://kramdown//lib/kramdown/converter/kramdown.rb#55 def inner(el, opts = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/converter/kramdown.rb#444 + # source://kramdown//lib/kramdown/converter/kramdown.rb#449 def parse_title(attr); end end -# source://kramdown//lib/kramdown/converter/kramdown.rb#74 +# source://kramdown//lib/kramdown/converter/kramdown.rb#75 Kramdown::Converter::Kramdown::ESCAPED_CHAR_RE = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/converter/kramdown.rb#192 +# source://kramdown//lib/kramdown/converter/kramdown.rb#197 Kramdown::Converter::Kramdown::HTML_ELEMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/converter/kramdown.rb#190 +# source://kramdown//lib/kramdown/converter/kramdown.rb#195 Kramdown::Converter::Kramdown::HTML_TAGS_WITH_BODY = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/converter/kramdown.rb#360 +# source://kramdown//lib/kramdown/converter/kramdown.rb#365 Kramdown::Converter::Kramdown::TYPOGRAPHIC_SYMS = T.let(T.unsafe(nil), Hash) # Converts an element tree to LaTeX. @@ -665,7 +665,7 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # Return a LaTeX comment containing all attributes as 'key="value"' pairs. # - # source://kramdown//lib/kramdown/converter/latex.rb#599 + # source://kramdown//lib/kramdown/converter/latex.rb#600 def attribute_list(el); end # Dispatch the conversion of the element +el+ to a +convert_TYPE+ method using the +type+ of @@ -674,10 +674,10 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#41 def convert(el, opts = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/converter/latex.rb#216 + # source://kramdown//lib/kramdown/converter/latex.rb#217 def convert_a(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#569 + # source://kramdown//lib/kramdown/converter/latex.rb#570 def convert_abbreviation(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#61 @@ -686,16 +686,16 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#110 def convert_blockquote(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#209 + # source://kramdown//lib/kramdown/converter/latex.rb#210 def convert_br(_el, opts); end # source://kramdown//lib/kramdown/converter/latex.rb#87 def convert_codeblock(el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#239 + # source://kramdown//lib/kramdown/converter/latex.rb#240 def convert_codespan(el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#205 + # source://kramdown//lib/kramdown/converter/latex.rb#206 def convert_comment(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#151 @@ -707,13 +707,13 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#147 def convert_dt(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#263 + # source://kramdown//lib/kramdown/converter/latex.rb#264 def convert_em(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#533 + # source://kramdown//lib/kramdown/converter/latex.rb#534 def convert_entity(el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#250 + # source://kramdown//lib/kramdown/converter/latex.rb#251 def convert_footnote(el, opts); end # source://kramdown//lib/kramdown/converter/latex.rb#114 @@ -725,13 +725,13 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#155 def convert_html_element(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#225 + # source://kramdown//lib/kramdown/converter/latex.rb#226 def convert_img(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#143 def convert_li(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#556 + # source://kramdown//lib/kramdown/converter/latex.rb#557 def convert_math(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#129 @@ -740,13 +740,13 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#69 def convert_p(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#255 + # source://kramdown//lib/kramdown/converter/latex.rb#256 def convert_raw(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#57 def convert_root(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#550 + # source://kramdown//lib/kramdown/converter/latex.rb#551 def convert_smart_quote(el, opts); end # Helper method used by +convert_p+ to convert a paragraph that only contains a single :img @@ -755,48 +755,48 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # source://kramdown//lib/kramdown/converter/latex.rb#80 def convert_standalone_image(el, _opts, img); end - # source://kramdown//lib/kramdown/converter/latex.rb#267 + # source://kramdown//lib/kramdown/converter/latex.rb#268 def convert_strong(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#177 + # source://kramdown//lib/kramdown/converter/latex.rb#178 def convert_table(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#189 + # source://kramdown//lib/kramdown/converter/latex.rb#190 def convert_tbody(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#201 + # source://kramdown//lib/kramdown/converter/latex.rb#202 def convert_td(el, opts); end # source://kramdown//lib/kramdown/converter/latex.rb#65 def convert_text(el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#193 + # source://kramdown//lib/kramdown/converter/latex.rb#194 def convert_tfoot(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#185 + # source://kramdown//lib/kramdown/converter/latex.rb#186 def convert_thead(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#197 + # source://kramdown//lib/kramdown/converter/latex.rb#198 def convert_tr(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#542 + # source://kramdown//lib/kramdown/converter/latex.rb#543 def convert_typographic_sym(el, _opts); end # source://kramdown//lib/kramdown/converter/latex.rb#129 def convert_ul(el, opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#166 + # source://kramdown//lib/kramdown/converter/latex.rb#167 def convert_xml_comment(el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#170 + # source://kramdown//lib/kramdown/converter/latex.rb#171 def convert_xml_pi(_el, _opts); end - # source://kramdown//lib/kramdown/converter/latex.rb#522 + # source://kramdown//lib/kramdown/converter/latex.rb#523 def entity_to_latex(entity); end # Escape the special LaTeX characters in the string +str+. # - # source://kramdown//lib/kramdown/converter/latex.rb#618 + # source://kramdown//lib/kramdown/converter/latex.rb#619 def escape(str); end # Return the converted content of the children of +el+ as a string. @@ -808,38 +808,38 @@ class Kramdown::Converter::Latex < ::Kramdown::Converter::Base # the method #attribute_list -- the resulting string is appended to both the \\begin and the # \\end lines of the LaTeX environment for easier post-processing of LaTeX environments. # - # source://kramdown//lib/kramdown/converter/latex.rb#582 + # source://kramdown//lib/kramdown/converter/latex.rb#583 def latex_environment(type, el, text); end # Return a string containing a valid \hypertarget command if the element has an ID defined, or # +nil+ otherwise. If the parameter +add_label+ is +true+, a \label command will also be used # additionally to the \hypertarget command. # - # source://kramdown//lib/kramdown/converter/latex.rb#590 + # source://kramdown//lib/kramdown/converter/latex.rb#591 def latex_link_target(el, add_label = T.unsafe(nil)); end # Normalize the abbreviation key so that it only contains allowed ASCII character # - # source://kramdown//lib/kramdown/converter/latex.rb#575 + # source://kramdown//lib/kramdown/converter/latex.rb#576 def normalize_abbreviation_key(key); end end # Inspired by Maruku: entity conversion table based on the one from htmltolatex # (http://sourceforge.net/projects/htmltolatex/), with some small adjustments/additions # -# source://kramdown//lib/kramdown/converter/latex.rb#273 +# source://kramdown//lib/kramdown/converter/latex.rb#274 Kramdown::Converter::Latex::ENTITY_CONV_TABLE = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/converter/latex.rb#605 +# source://kramdown//lib/kramdown/converter/latex.rb#606 Kramdown::Converter::Latex::ESCAPE_MAP = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/converter/latex.rb#615 +# source://kramdown//lib/kramdown/converter/latex.rb#616 Kramdown::Converter::Latex::ESCAPE_RE = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/converter/latex.rb#175 +# source://kramdown//lib/kramdown/converter/latex.rb#176 Kramdown::Converter::Latex::TABLE_ALIGNMENT_CHAR = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/converter/latex.rb#537 +# source://kramdown//lib/kramdown/converter/latex.rb#538 Kramdown::Converter::Latex::TYPOGRAPHIC_SYMS = T.let(T.unsafe(nil), Hash) # Converts a Kramdown::Document to a manpage in groff format. See man(7), groff_man(7) and @@ -1714,7 +1714,7 @@ module Kramdown::Options # Merge the #defaults Hash with the *parsed* options from the given Hash, i.e. only valid option # names are considered and their value is run through the #parse method. # - # source://kramdown//lib/kramdown/options.rb#82 + # source://kramdown//lib/kramdown/options.rb#83 def merge(hash); end # Parse the given value +data+ as if it was a value for the option +name+ and return the parsed @@ -1725,7 +1725,7 @@ module Kramdown::Options # # @raise [ArgumentError] # - # source://kramdown//lib/kramdown/options.rb#96 + # source://kramdown//lib/kramdown/options.rb#97 def parse(name, data); end # Ensures that the option value +val+ for the option called +name+ is a valid array. The @@ -1736,7 +1736,7 @@ module Kramdown::Options # # Optionally, the array is checked for the correct size. # - # source://kramdown//lib/kramdown/options.rb#141 + # source://kramdown//lib/kramdown/options.rb#142 def simple_array_validator(val, name, size = T.unsafe(nil)); end # Ensures that the option value +val+ for the option called +name+ is a valid hash. The @@ -1747,7 +1747,7 @@ module Kramdown::Options # # @raise [Kramdown::Error] # - # source://kramdown//lib/kramdown/options.rb#158 + # source://kramdown//lib/kramdown/options.rb#159 def simple_hash_validator(val, name); end # Converts the given String +data+ into a Symbol or +nil+ with the @@ -1756,7 +1756,7 @@ module Kramdown::Options # - A leading colon is stripped from the string. # - An empty value or a value equal to "nil" results in +nil+. # - # source://kramdown//lib/kramdown/options.rb#122 + # source://kramdown//lib/kramdown/options.rb#123 def str_to_sym(data); end end end @@ -1847,16 +1847,16 @@ class Kramdown::Options::Definition < ::Struct end end -# source://kramdown//lib/kramdown/options.rb#396 +# source://kramdown//lib/kramdown/options.rb#406 Kramdown::Options::SMART_QUOTES_ENTITIES = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/options.rb#397 +# source://kramdown//lib/kramdown/options.rb#407 Kramdown::Options::SMART_QUOTES_STR = T.let(T.unsafe(nil), String) -# source://kramdown//lib/kramdown/options.rb#336 +# source://kramdown//lib/kramdown/options.rb#346 Kramdown::Options::TOC_LEVELS_ARRAY = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/options.rb#335 +# source://kramdown//lib/kramdown/options.rb#345 Kramdown::Options::TOC_LEVELS_RANGE = T.let(T.unsafe(nil), Range) # This module contains all available parsers. A parser takes an input string and converts the @@ -1901,19 +1901,19 @@ class Kramdown::Parser::Base # Modify the string +source+ to be usable by the parser (unifies line ending characters to # +\n+ and makes sure +source+ ends with a new line character). # - # source://kramdown//lib/kramdown/parser/base.rb#91 + # source://kramdown//lib/kramdown/parser/base.rb#97 def adapt_source(source); end # This helper method adds the given +text+ either to the last element in the +tree+ if it is a # +type+ element or creates a new text element with the given +type+. # - # source://kramdown//lib/kramdown/parser/base.rb#103 + # source://kramdown//lib/kramdown/parser/base.rb#109 def add_text(text, tree = T.unsafe(nil), type = T.unsafe(nil)); end # Extract the part of the StringScanner +strscan+ backed string specified by the +range+. This # method works correctly under Ruby 1.8 and Ruby 1.9. # - # source://kramdown//lib/kramdown/parser/base.rb#115 + # source://kramdown//lib/kramdown/parser/base.rb#121 def extract_string(range, strscan); end # The hash with the parsing options. @@ -1930,7 +1930,7 @@ class Kramdown::Parser::Base # # @raise [NotImplementedError] # - # source://kramdown//lib/kramdown/parser/base.rb#79 + # source://kramdown//lib/kramdown/parser/base.rb#85 def parse; end # The root element of element tree that is created from the source string. @@ -1945,7 +1945,7 @@ class Kramdown::Parser::Base # Add the given warning +text+ to the warning array. # - # source://kramdown//lib/kramdown/parser/base.rb#84 + # source://kramdown//lib/kramdown/parser/base.rb#90 def warning(text); end # The array with the parser warnings. @@ -1960,7 +1960,7 @@ class Kramdown::Parser::Base # Initializes a new instance of the calling class and then calls the +#parse+ method that must # be implemented by each subclass. # - # source://kramdown//lib/kramdown/parser/base.rb#67 + # source://kramdown//lib/kramdown/parser/base.rb#73 def parse(source, options = T.unsafe(nil)); end private @@ -1981,7 +1981,7 @@ class Kramdown::Parser::Html < ::Kramdown::Parser::Base # Parse the source string provided on initialization as HTML document. # - # source://kramdown//lib/kramdown/parser/html.rb#586 + # source://kramdown//lib/kramdown/parser/html.rb#593 def parse; end end @@ -1990,28 +1990,31 @@ end # source://kramdown//lib/kramdown/parser/html.rb#25 module Kramdown::Parser::Html::Constants; end -# source://kramdown//lib/kramdown/parser/html.rb#32 +# source://kramdown//lib/kramdown/parser/html.rb#33 Kramdown::Parser::Html::Constants::HTML_ATTRIBUTE_RE = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/parser/html.rb#59 +# source://kramdown//lib/kramdown/parser/html.rb#60 Kramdown::Parser::Html::Constants::HTML_BLOCK_ELEMENTS = T.let(T.unsafe(nil), Array) +# source://kramdown//lib/kramdown/parser/html.rb#32 +Kramdown::Parser::Html::Constants::HTML_CDATA_RE = T.let(T.unsafe(nil), Regexp) + # source://kramdown//lib/kramdown/parser/html.rb#30 Kramdown::Parser::Html::Constants::HTML_COMMENT_RE = T.let(T.unsafe(nil), Regexp) # The following elements are also parsed as raw since they need child elements that cannot # be expressed using kramdown syntax: colgroup table tbody thead tfoot tr ul ol # -# source://kramdown//lib/kramdown/parser/html.rb#48 +# source://kramdown//lib/kramdown/parser/html.rb#49 Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/parser/html.rb#37 +# source://kramdown//lib/kramdown/parser/html.rb#38 Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL_BLOCK = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#44 +# source://kramdown//lib/kramdown/parser/html.rb#45 Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL_RAW = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#41 +# source://kramdown//lib/kramdown/parser/html.rb#42 Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL_SPAN = T.let(T.unsafe(nil), Array) # :stopdoc: @@ -2020,13 +2023,13 @@ Kramdown::Parser::Html::Constants::HTML_CONTENT_MODEL_SPAN = T.let(T.unsafe(nil) # source://kramdown//lib/kramdown/parser/html.rb#29 Kramdown::Parser::Html::Constants::HTML_DOCTYPE_RE = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/parser/html.rb#66 +# source://kramdown//lib/kramdown/parser/html.rb#67 Kramdown::Parser::Html::Constants::HTML_ELEMENT = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/parser/html.rb#63 +# source://kramdown//lib/kramdown/parser/html.rb#64 Kramdown::Parser::Html::Constants::HTML_ELEMENTS_WITHOUT_BODY = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#35 +# source://kramdown//lib/kramdown/parser/html.rb#36 Kramdown::Parser::Html::Constants::HTML_ENTITY_RE = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/html.rb#31 @@ -2036,152 +2039,152 @@ Kramdown::Parser::Html::Constants::HTML_INSTRUCTION_RE = T.let(T.unsafe(nil), Re # span HTML) and don't appear therefore! # script, textarea # -# source://kramdown//lib/kramdown/parser/html.rb#56 +# source://kramdown//lib/kramdown/parser/html.rb#57 Kramdown::Parser::Html::Constants::HTML_SPAN_ELEMENTS = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#34 +# source://kramdown//lib/kramdown/parser/html.rb#35 Kramdown::Parser::Html::Constants::HTML_TAG_CLOSE_RE = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/parser/html.rb#33 +# source://kramdown//lib/kramdown/parser/html.rb#34 Kramdown::Parser::Html::Constants::HTML_TAG_RE = T.let(T.unsafe(nil), Regexp) # Converts HTML elements to native elements if possible. # -# source://kramdown//lib/kramdown/parser/html.rb#197 +# source://kramdown//lib/kramdown/parser/html.rb#200 class Kramdown::Parser::Html::ElementConverter include ::Kramdown::Parser::Html::Constants include ::Kramdown::Utils::Entities # @return [ElementConverter] a new instance of ElementConverter # - # source://kramdown//lib/kramdown/parser/html.rb#216 + # source://kramdown//lib/kramdown/parser/html.rb#219 def initialize(root); end - # source://kramdown//lib/kramdown/parser/html.rb#384 + # source://kramdown//lib/kramdown/parser/html.rb#388 def convert_a(el); end - # source://kramdown//lib/kramdown/parser/html.rb#394 + # source://kramdown//lib/kramdown/parser/html.rb#398 def convert_b(el); end - # source://kramdown//lib/kramdown/parser/html.rb#417 + # source://kramdown//lib/kramdown/parser/html.rb#421 def convert_code(el); end - # source://kramdown//lib/kramdown/parser/html.rb#394 + # source://kramdown//lib/kramdown/parser/html.rb#398 def convert_em(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h1(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h2(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h3(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h4(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h5(el); end - # source://kramdown//lib/kramdown/parser/html.rb#408 + # source://kramdown//lib/kramdown/parser/html.rb#412 def convert_h6(el); end - # source://kramdown//lib/kramdown/parser/html.rb#394 + # source://kramdown//lib/kramdown/parser/html.rb#398 def convert_i(el); end - # source://kramdown//lib/kramdown/parser/html.rb#417 + # source://kramdown//lib/kramdown/parser/html.rb#421 def convert_pre(el); end - # source://kramdown//lib/kramdown/parser/html.rb#563 + # source://kramdown//lib/kramdown/parser/html.rb#570 def convert_script(el); end - # source://kramdown//lib/kramdown/parser/html.rb#394 + # source://kramdown//lib/kramdown/parser/html.rb#398 def convert_strong(el); end - # source://kramdown//lib/kramdown/parser/html.rb#460 + # source://kramdown//lib/kramdown/parser/html.rb#465 def convert_table(el); end - # source://kramdown//lib/kramdown/parser/html.rb#380 + # source://kramdown//lib/kramdown/parser/html.rb#384 def convert_textarea(el); end - # source://kramdown//lib/kramdown/parser/html.rb#375 + # source://kramdown//lib/kramdown/parser/html.rb#379 def extract_text(el, raw); end - # source://kramdown//lib/kramdown/parser/html.rb#575 + # source://kramdown//lib/kramdown/parser/html.rb#582 def handle_math_tag(el); end # @return [Boolean] # - # source://kramdown//lib/kramdown/parser/html.rb#571 + # source://kramdown//lib/kramdown/parser/html.rb#578 def is_math_tag?(el); end # @return [Boolean] # - # source://kramdown//lib/kramdown/parser/html.rb#503 + # source://kramdown//lib/kramdown/parser/html.rb#508 def is_simple_table?(el); end # Convert the element +el+ and its children. # - # source://kramdown//lib/kramdown/parser/html.rb#225 + # source://kramdown//lib/kramdown/parser/html.rb#228 def process(el, do_conversion = T.unsafe(nil), preserve_text = T.unsafe(nil), parent = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/parser/html.rb#278 + # source://kramdown//lib/kramdown/parser/html.rb#282 def process_children(el, do_conversion = T.unsafe(nil), preserve_text = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/parser/html.rb#320 + # source://kramdown//lib/kramdown/parser/html.rb#324 def process_html_element(el, do_conversion = T.unsafe(nil), preserve_text = T.unsafe(nil)); end # Process the HTML text +raw+: compress whitespace (if +preserve+ is +false+) and convert # entities in entity elements. # - # source://kramdown//lib/kramdown/parser/html.rb#291 + # source://kramdown//lib/kramdown/parser/html.rb#295 def process_text(raw, preserve = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/parser/html.rb#326 + # source://kramdown//lib/kramdown/parser/html.rb#330 def remove_text_children(el); end - # source://kramdown//lib/kramdown/parser/html.rb#359 + # source://kramdown//lib/kramdown/parser/html.rb#363 def remove_whitespace_children(el); end - # source://kramdown//lib/kramdown/parser/html.rb#369 + # source://kramdown//lib/kramdown/parser/html.rb#373 def set_basics(el, type, opts = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/parser/html.rb#349 + # source://kramdown//lib/kramdown/parser/html.rb#353 def strip_whitespace(el); end - # source://kramdown//lib/kramdown/parser/html.rb#330 + # source://kramdown//lib/kramdown/parser/html.rb#334 def wrap_text_children(el); end class << self - # source://kramdown//lib/kramdown/parser/html.rb#220 + # source://kramdown//lib/kramdown/parser/html.rb#223 def convert(root, el = T.unsafe(nil)); end end end -# source://kramdown//lib/kramdown/parser/html.rb#393 +# source://kramdown//lib/kramdown/parser/html.rb#397 Kramdown::Parser::Html::ElementConverter::EMPHASIS_TYPE_MAP = T.let(T.unsafe(nil), Hash) -# source://kramdown//lib/kramdown/parser/html.rb#204 +# source://kramdown//lib/kramdown/parser/html.rb#207 Kramdown::Parser::Html::ElementConverter::REMOVE_TEXT_CHILDREN = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#208 +# source://kramdown//lib/kramdown/parser/html.rb#211 Kramdown::Parser::Html::ElementConverter::REMOVE_WHITESPACE_CHILDREN = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#213 +# source://kramdown//lib/kramdown/parser/html.rb#216 Kramdown::Parser::Html::ElementConverter::SIMPLE_ELEMENTS = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#210 +# source://kramdown//lib/kramdown/parser/html.rb#213 Kramdown::Parser::Html::ElementConverter::STRIP_WHITESPACE = T.let(T.unsafe(nil), Array) -# source://kramdown//lib/kramdown/parser/html.rb#206 +# source://kramdown//lib/kramdown/parser/html.rb#209 Kramdown::Parser::Html::ElementConverter::WRAP_TEXT_CHILDREN = T.let(T.unsafe(nil), Array) # Contains the parsing methods. This module can be mixed into any parser to get HTML parsing # functionality. The only thing that must be provided by the class are instance variable # parsing. # -# source://kramdown//lib/kramdown/parser/html.rb#77 +# source://kramdown//lib/kramdown/parser/html.rb#78 module Kramdown::Parser::Html::Parser include ::Kramdown::Parser::Html::Constants @@ -2192,12 +2195,12 @@ module Kramdown::Parser::Html::Parser # element is already closed, ie. contains no body; the third parameter specifies whether the # body - and the end tag - need to be handled in case closed=false). # - # source://kramdown//lib/kramdown/parser/html.rb#87 + # source://kramdown//lib/kramdown/parser/html.rb#88 def handle_html_start_tag(line = T.unsafe(nil)); end # Handle the raw HTML tag at the current position. # - # source://kramdown//lib/kramdown/parser/html.rb#127 + # source://kramdown//lib/kramdown/parser/html.rb#128 def handle_raw_html_tag(name); end # Parses the given string for HTML attributes and returns the resulting hash. @@ -2207,7 +2210,7 @@ module Kramdown::Parser::Html::Parser # If the optional +in_html_tag+ parameter is set to +false+, attributes are not modified to # contain only lowercase letters. # - # source://kramdown//lib/kramdown/parser/html.rb#114 + # source://kramdown//lib/kramdown/parser/html.rb#115 def parse_html_attributes(str, line = T.unsafe(nil), in_html_tag = T.unsafe(nil)); end # Parse raw HTML from the current source position, storing the found elements in +el+. @@ -2220,11 +2223,11 @@ module Kramdown::Parser::Html::Parser # When an HTML start tag is found, processing is deferred to #handle_html_start_tag, # providing the block given to this method. # - # source://kramdown//lib/kramdown/parser/html.rb#150 + # source://kramdown//lib/kramdown/parser/html.rb#151 def parse_raw_html(el, &block); end end -# source://kramdown//lib/kramdown/parser/html.rb#139 +# source://kramdown//lib/kramdown/parser/html.rb#140 Kramdown::Parser::Html::Parser::HTML_RAW_START = T.let(T.unsafe(nil), Regexp) # Used for parsing a document in kramdown format. @@ -2271,6 +2274,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base include ::Kramdown include ::Kramdown::Parser::Html::Constants include ::Kramdown::Parser::Html::Parser + include ::Kramdown::Utils::Html # Create a new Kramdown parser object with the given +options+. # @@ -2307,7 +2311,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # source://kramdown//lib/kramdown/parser/kramdown/extensions.rb#96 def handle_extension(name, opts, body, type, line_no = T.unsafe(nil)); end - # source://kramdown//lib/kramdown/parser/kramdown/html.rb#25 + # source://kramdown//lib/kramdown/parser/kramdown/html.rb#26 def handle_kramdown_html_tag(el, closed, handle_body); end # Normalize the link identifier. @@ -2357,7 +2361,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # Parse the HTML at the current position as block-level HTML. # - # source://kramdown//lib/kramdown/parser/kramdown/html.rb#71 + # source://kramdown//lib/kramdown/parser/kramdown/html.rb#73 def parse_block_html; end # Parse the math block at the current location. @@ -2521,7 +2525,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # Create a new block-level element, taking care of applying a preceding block IAL if it # exists. This method should always be used for creating a block-level element! # - # source://kramdown//lib/kramdown/parser/kramdown.rb#305 + # source://kramdown//lib/kramdown/parser/kramdown.rb#306 def new_block_el(*args); end # Parse all block-level elements in +text+ into the element +el+. @@ -2544,23 +2548,23 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # # The parameter +text_type+ specifies the type which should be used for created text nodes. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#214 + # source://kramdown//lib/kramdown/parser/kramdown.rb#215 def parse_spans(el, stop_re = T.unsafe(nil), parsers = T.unsafe(nil), text_type = T.unsafe(nil)); end # Reset the current parsing environment. The parameter +env+ can be used to set initial # values for one or more environment variables. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#253 + # source://kramdown//lib/kramdown/parser/kramdown.rb#254 def reset_env(opts = T.unsafe(nil)); end # Restore the current parsing environment. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#268 + # source://kramdown//lib/kramdown/parser/kramdown.rb#269 def restore_env(env); end # Return the current parsing environment. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#263 + # source://kramdown//lib/kramdown/parser/kramdown.rb#264 def save_env; end # Create the needed span parser regexps. @@ -2571,7 +2575,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # Update the given attributes hash +attr+ with the information from the inline attribute list # +ial+ and all referenced ALDs. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#274 + # source://kramdown//lib/kramdown/parser/kramdown.rb#275 def update_attr_with_ial(attr, ial); end # @@ -2586,7 +2590,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # Update the raw text for automatic ID generation. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#288 + # source://kramdown//lib/kramdown/parser/kramdown.rb#289 def update_raw_text(item); end # Update the tree by parsing all :+raw_text+ elements with the span-level parser (resets the @@ -2603,7 +2607,7 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # source://kramdown//lib/kramdown/parser/kramdown/list.rb#258 def fetch_pattern(type, indentation); end - # source://kramdown//lib/kramdown/parser/kramdown.rb#200 + # source://kramdown//lib/kramdown/parser/kramdown.rb#201 def span_pattern_cache(stop_re, span_start); end class << self @@ -2617,19 +2621,19 @@ class Kramdown::Parser::Kramdown < ::Kramdown::Parser::Base # to the registry. The method name is automatically derived from the +name+ or can explicitly # be set by using the +meth_name+ parameter. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#328 + # source://kramdown//lib/kramdown/parser/kramdown.rb#329 def define_parser(name, start_re, span_start = T.unsafe(nil), meth_name = T.unsafe(nil)); end # Return +true+ if there is a parser called +name+. # # @return [Boolean] # - # source://kramdown//lib/kramdown/parser/kramdown.rb#339 + # source://kramdown//lib/kramdown/parser/kramdown.rb#340 def has_parser?(name); end # Return the Data structure for the parser +name+. # - # source://kramdown//lib/kramdown/parser/kramdown.rb#334 + # source://kramdown//lib/kramdown/parser/kramdown.rb#335 def parser(name = T.unsafe(nil)); end end end @@ -2714,7 +2718,7 @@ Kramdown::Parser::Kramdown::DEFINITION_LIST_START = T.let(T.unsafe(nil), Regexp) # Struct class holding all the needed data for one block/span-level parser method. # -# source://kramdown//lib/kramdown/parser/kramdown.rb#317 +# source://kramdown//lib/kramdown/parser/kramdown.rb#318 class Kramdown::Parser::Kramdown::Data < ::Struct # Returns the value of attribute method # @@ -2811,14 +2815,14 @@ Kramdown::Parser::Kramdown::HEADER_ID = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/kramdown/horizontal_rule.rb#14 Kramdown::Parser::Kramdown::HR_START = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/parser/kramdown/html.rb#68 +# source://kramdown//lib/kramdown/parser/kramdown/html.rb#70 Kramdown::Parser::Kramdown::HTML_BLOCK_START = T.let(T.unsafe(nil), Regexp) # Mapping of markdown attribute value to content model. I.e. :raw when "0", :default when "1" # (use default content model for the HTML element), :span when "span", :block when block and # for everything else +nil+ is returned. # -# source://kramdown//lib/kramdown/parser/kramdown/html.rb#21 +# source://kramdown//lib/kramdown/parser/kramdown/html.rb#22 Kramdown::Parser::Kramdown::HTML_MARKDOWN_ATTR_MAP = T.let(T.unsafe(nil), Hash) # source://kramdown//lib/kramdown/parser/kramdown/html.rb#99 @@ -2838,7 +2842,7 @@ Kramdown::Parser::Kramdown::IAL_SPAN_START = T.let(T.unsafe(nil), Regexp) # Regexp for matching indentation (one tab or four spaces) # -# source://kramdown//lib/kramdown/parser/kramdown.rb#344 +# source://kramdown//lib/kramdown/parser/kramdown.rb#345 Kramdown::Parser::Kramdown::INDENT = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/kramdown/math.rb#41 @@ -2894,7 +2898,7 @@ Kramdown::Parser::Kramdown::LIST_START_UL = T.let(T.unsafe(nil), Regexp) # Regexp for matching the optional space (zero or up to three spaces) # -# source://kramdown//lib/kramdown/parser/kramdown.rb#346 +# source://kramdown//lib/kramdown/parser/kramdown.rb#347 Kramdown::Parser::Kramdown::OPT_SPACE = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/kramdown/paragraph.rb#28 @@ -2956,7 +2960,7 @@ Kramdown::Parser::Kramdown::TABLE_SEP_LINE = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/kramdown/table.rb#22 Kramdown::Parser::Kramdown::TABLE_START = T.let(T.unsafe(nil), Regexp) -# source://kramdown//lib/kramdown/parser/kramdown/html.rb#23 +# source://kramdown//lib/kramdown/parser/kramdown/html.rb#24 Kramdown::Parser::Kramdown::TRAILING_WHITESPACE = T.let(T.unsafe(nil), Regexp) # source://kramdown//lib/kramdown/parser/kramdown/typographic_symbol.rb#14 @@ -3069,20 +3073,20 @@ module Kramdown::Utils::Entities # Return the entity for the given code point or name +point_or_name+. # - # source://kramdown//lib/kramdown/utils/entities.rb#334 + # source://kramdown//lib/kramdown/utils/entities.rb#990 def entity(point_or_name); end class << self # Return the entity for the given code point or name +point_or_name+. # - # source://kramdown//lib/kramdown/utils/entities.rb#334 + # source://kramdown//lib/kramdown/utils/entities.rb#990 def entity(point_or_name); end end end # Contains the mapping of code point (or name) to the actual Entity object. # -# source://kramdown//lib/kramdown/utils/entities.rb#317 +# source://kramdown//lib/kramdown/utils/entities.rb#973 Kramdown::Utils::Entities::ENTITY_MAP = T.let(T.unsafe(nil), Hash) # Array of arrays. Each sub-array specifies a code point and the associated name.