sorbet-result 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2033,10 +2033,10 @@ module RuboCop::AST::MethodDispatchNode
2033
2033
  #
2034
2034
  # @return [Boolean] whether the dispatched method is an access modifier
2035
2035
  #
2036
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#53
2036
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64
2037
2037
  def access_modifier?; end
2038
2038
 
2039
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#262
2039
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#273
2040
2040
  def adjacent_def_modifier?(param0 = T.unsafe(nil)); end
2041
2041
 
2042
2042
  # Checks whether this node is an arithmetic operation
@@ -2044,14 +2044,14 @@ module RuboCop::AST::MethodDispatchNode
2044
2044
  # @return [Boolean] whether the dispatched method is an arithmetic
2045
2045
  # operation
2046
2046
  #
2047
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#164
2047
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#175
2048
2048
  def arithmetic_operation?; end
2049
2049
 
2050
2050
  # Checks whether the dispatched method is a setter method.
2051
2051
  #
2052
2052
  # @return [Boolean] whether the dispatched method is a setter
2053
2053
  #
2054
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96
2054
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107
2055
2055
  def assignment?; end
2056
2056
 
2057
2057
  # Checks whether the dispatched method is a bare access modifier that
@@ -2060,10 +2060,10 @@ module RuboCop::AST::MethodDispatchNode
2060
2060
  # @return [Boolean] whether the dispatched method is a bare
2061
2061
  # access modifier
2062
2062
  #
2063
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#62
2063
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73
2064
2064
  def bare_access_modifier?; end
2065
2065
 
2066
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#267
2066
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#278
2067
2067
  def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
2068
2068
 
2069
2069
  # Checks whether this is a binary operation.
@@ -2073,14 +2073,14 @@ module RuboCop::AST::MethodDispatchNode
2073
2073
  # foo + bar
2074
2074
  # @return [Boolean] whether this method is a binary operation
2075
2075
  #
2076
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#237
2076
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#248
2077
2077
  def binary_operation?; end
2078
2078
 
2079
2079
  # Whether this method dispatch has an explicit block.
2080
2080
  #
2081
2081
  # @return [Boolean] whether the dispatched method has a block
2082
2082
  #
2083
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#156
2083
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167
2084
2084
  def block_literal?; end
2085
2085
 
2086
2086
  # The `block` or `numblock` node associated with this method dispatch, if any.
@@ -2088,7 +2088,7 @@ module RuboCop::AST::MethodDispatchNode
2088
2088
  # @return [BlockNode, nil] the `block` or `numblock` node associated with this method
2089
2089
  # call or `nil`
2090
2090
  #
2091
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#35
2091
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46
2092
2092
  def block_node; end
2093
2093
 
2094
2094
  # Checks whether the name of the dispatched method matches the argument
@@ -2097,7 +2097,7 @@ module RuboCop::AST::MethodDispatchNode
2097
2097
  # @param name [Symbol, String] the method name to check for
2098
2098
  # @return [Boolean] whether the method name matches the argument
2099
2099
  #
2100
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#89
2100
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#100
2101
2101
  def command?(name); end
2102
2102
 
2103
2103
  # Checks whether the *explicit* receiver of this method dispatch is a
@@ -2106,7 +2106,7 @@ module RuboCop::AST::MethodDispatchNode
2106
2106
  # @return [Boolean] whether the receiver of this method dispatch
2107
2107
  # is a `const` node
2108
2108
  #
2109
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#141
2109
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#152
2110
2110
  def const_receiver?; end
2111
2111
 
2112
2112
  # Checks if this node is part of a chain of `def` or `defs` modifiers.
@@ -2118,7 +2118,7 @@ module RuboCop::AST::MethodDispatchNode
2118
2118
  # private def foo; end
2119
2119
  # @return [Node | nil] returns the `def|defs` node this is a modifier for,
2120
2120
  #
2121
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#188
2121
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#199
2122
2122
  def def_modifier(node = T.unsafe(nil)); end
2123
2123
 
2124
2124
  # Checks if this node is part of a chain of `def` or `defs` modifiers.
@@ -2130,7 +2130,7 @@ module RuboCop::AST::MethodDispatchNode
2130
2130
  # private def foo; end
2131
2131
  # @return [Boolean] whether the `def|defs` node is a modifier or not.
2132
2132
  #
2133
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#176
2133
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#187
2134
2134
  def def_modifier?(node = T.unsafe(nil)); end
2135
2135
 
2136
2136
  # Checks whether the dispatched method uses a dot to connect the
@@ -2141,7 +2141,7 @@ module RuboCop::AST::MethodDispatchNode
2141
2141
  #
2142
2142
  # @return [Boolean] whether the method was called with a connecting dot
2143
2143
  #
2144
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#108
2144
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#119
2145
2145
  def dot?; end
2146
2146
 
2147
2147
  # Checks whether the dispatched method uses a double colon to connect the
@@ -2149,7 +2149,7 @@ module RuboCop::AST::MethodDispatchNode
2149
2149
  #
2150
2150
  # @return [Boolean] whether the method was called with a connecting dot
2151
2151
  #
2152
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#116
2152
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#127
2153
2153
  def double_colon?; end
2154
2154
 
2155
2155
  # Checks whether the method dispatch is the implicit form of `#call`,
@@ -2157,10 +2157,10 @@ module RuboCop::AST::MethodDispatchNode
2157
2157
  #
2158
2158
  # @return [Boolean] whether the method is the implicit form of `#call`
2159
2159
  #
2160
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#149
2160
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160
2161
2161
  def implicit_call?; end
2162
2162
 
2163
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#246
2163
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#257
2164
2164
  def in_macro_scope?(param0 = T.unsafe(nil)); end
2165
2165
 
2166
2166
  # Checks whether this is a lambda. Some versions of parser parses
@@ -2168,7 +2168,7 @@ module RuboCop::AST::MethodDispatchNode
2168
2168
  #
2169
2169
  # @return [Boolean] whether this method is a lambda
2170
2170
  #
2171
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#202
2171
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213
2172
2172
  def lambda?; end
2173
2173
 
2174
2174
  # Checks whether this is a lambda literal (stabby lambda.)
@@ -2178,7 +2178,7 @@ module RuboCop::AST::MethodDispatchNode
2178
2178
  # -> (foo) { bar }
2179
2179
  # @return [Boolean] whether this method is a lambda literal
2180
2180
  #
2181
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213
2181
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224
2182
2182
  def lambda_literal?; end
2183
2183
 
2184
2184
  # Checks whether the dispatched method is a macro method. A macro method
@@ -2188,7 +2188,7 @@ module RuboCop::AST::MethodDispatchNode
2188
2188
  # @note This does not include DSLs that use nested blocks, like RSpec
2189
2189
  # @return [Boolean] whether the dispatched method is a macro method
2190
2190
  #
2191
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46
2191
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#57
2192
2192
  def macro?; end
2193
2193
 
2194
2194
  # The name of the dispatched method as a symbol.
@@ -2204,10 +2204,10 @@ module RuboCop::AST::MethodDispatchNode
2204
2204
  # @return [Boolean] whether the dispatched method is a non-bare
2205
2205
  # access modifier
2206
2206
  #
2207
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#71
2207
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82
2208
2208
  def non_bare_access_modifier?; end
2209
2209
 
2210
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#272
2210
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#283
2211
2211
  def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
2212
2212
 
2213
2213
  # The receiving node of the method dispatch.
@@ -2222,22 +2222,29 @@ module RuboCop::AST::MethodDispatchNode
2222
2222
  #
2223
2223
  # @return [Boolean] whether the method was called with a connecting dot
2224
2224
  #
2225
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#124
2225
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#135
2226
2226
  def safe_navigation?; end
2227
2227
 
2228
+ # The source range for the method name or keyword that dispatches this call.
2229
+ #
2230
+ # @return [Parser::Source::Range] the source range for the method name or keyword
2231
+ #
2232
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#34
2233
+ def selector; end
2234
+
2228
2235
  # Checks whether the *explicit* receiver of this method dispatch is
2229
2236
  # `self`.
2230
2237
  #
2231
2238
  # @return [Boolean] whether the receiver of this method dispatch is `self`
2232
2239
  #
2233
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#132
2240
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#143
2234
2241
  def self_receiver?; end
2235
2242
 
2236
2243
  # Checks whether the dispatched method is a setter method.
2237
2244
  #
2238
2245
  # @return [Boolean] whether the dispatched method is a setter
2239
2246
  #
2240
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96
2247
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107
2241
2248
  def setter_method?; end
2242
2249
 
2243
2250
  # Checks whether the dispatched method is a bare `private` or `protected`
@@ -2246,7 +2253,7 @@ module RuboCop::AST::MethodDispatchNode
2246
2253
  # @return [Boolean] whether the dispatched method is a bare
2247
2254
  # `private` or `protected` access modifier
2248
2255
  #
2249
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#80
2256
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#91
2250
2257
  def special_modifier?; end
2251
2258
 
2252
2259
  # Checks whether this is a unary operation.
@@ -2256,7 +2263,7 @@ module RuboCop::AST::MethodDispatchNode
2256
2263
  # -foo
2257
2264
  # @return [Boolean] whether this method is a unary operation
2258
2265
  #
2259
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224
2266
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#235
2260
2267
  def unary_operation?; end
2261
2268
  end
2262
2269
 
@@ -5109,6 +5116,9 @@ RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil),
5109
5116
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5110
5117
  RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set)
5111
5118
 
5119
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5120
+ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
5121
+
5112
5122
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5113
5123
  RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
5114
5124
 
@@ -5226,6 +5236,9 @@ RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.un
5226
5236
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5227
5237
  RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set)
5228
5238
 
5239
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5240
+ RuboCop::AST::NodePattern::Sets::SET_NEW_COMPILE = T.let(T.unsafe(nil), Set)
5241
+
5229
5242
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5230
5243
  RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
5231
5244
 
@@ -5271,6 +5284,9 @@ RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(ni
5271
5284
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5272
5285
  RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
5273
5286
 
5287
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5288
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
5289
+
5274
5290
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5275
5291
  RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
5276
5292