[ruby/prism] Flip incorrect names of OptionalKeywordParameterNode and RequiredKeywordParameterNode

https://github.com/ruby/prism/commit/c31f61e898
This commit is contained in:
Jemma Issroff 2023-11-01 09:36:15 -03:00 коммит произвёл git
Родитель d0625099e0
Коммит e80ca70b9b
37 изменённых файлов: 99 добавлений и 99 удалений

Просмотреть файл

@ -114,8 +114,8 @@ module Prism
AnonymousLocal
end
end,
*params.keywords.select { |kw| kw.is_a? OptionalKeywordParameterNode }.map(&:name),
*params.keywords.select { |kw| kw.is_a? RequiredKeywordParameterNode }.map(&:name),
*params.keywords.grep(RequiredKeywordParameterNode).map(&:name),
*params.keywords.grep(OptionalKeywordParameterNode).map(&:name),
]
sorted << AnonymousLocal if params.keywords.any?

Просмотреть файл

@ -1985,11 +1985,13 @@ nodes:
type: constant
- name: name_loc
type: location
- name: value
type: node
comment: |
Represents an optional keyword parameter to a method, block, or lambda definition.
def a(b: )
^^
def a(b: 1)
^^^^
end
- name: OptionalParameterNode
fields:
@ -2184,13 +2186,11 @@ nodes:
type: constant
- name: name_loc
type: location
- name: value
type: node
comment: |
Represents a required keyword parameter to a method, block, or lambda definition.
def a(b: 1)
^^^^
def a(b: )
^^
end
- name: RequiredParameterNode
fields:

Просмотреть файл

@ -3326,14 +3326,14 @@ pm_keyword_hash_node_elements_append(pm_keyword_hash_node_t *hash, pm_node_t *el
hash->base.location.end = element->location.end;
}
// Allocate a new OptionalKeywordParameterNode node.
static pm_optional_keyword_parameter_node_t *
pm_optional_keyword_parameter_node_create(pm_parser_t *parser, const pm_token_t *name) {
pm_optional_keyword_parameter_node_t *node = PM_ALLOC_NODE(parser, pm_optional_keyword_parameter_node_t);
// Allocate a new RequiredKeywordParameterNode node.
static pm_required_keyword_parameter_node_t *
pm_required_keyword_parameter_node_create(pm_parser_t *parser, const pm_token_t *name) {
pm_required_keyword_parameter_node_t *node = PM_ALLOC_NODE(parser, pm_required_keyword_parameter_node_t);
*node = (pm_optional_keyword_parameter_node_t) {
*node = (pm_required_keyword_parameter_node_t) {
{
.type = PM_OPTIONAL_KEYWORD_PARAMETER_NODE,
.type = PM_REQUIRED_KEYWORD_PARAMETER_NODE,
.location = {
.start = name->start,
.end = name->end
@ -3346,14 +3346,14 @@ pm_optional_keyword_parameter_node_create(pm_parser_t *parser, const pm_token_t
return node;
}
// Allocate a new RequiredKeywordParameterNode node.
static pm_required_keyword_parameter_node_t *
pm_required_keyword_parameter_node_create(pm_parser_t *parser, const pm_token_t *name, pm_node_t *value) {
pm_required_keyword_parameter_node_t *node = PM_ALLOC_NODE(parser, pm_required_keyword_parameter_node_t);
// Allocate a new OptionalKeywordParameterNode node.
static pm_optional_keyword_parameter_node_t *
pm_optional_keyword_parameter_node_create(pm_parser_t *parser, const pm_token_t *name, pm_node_t *value) {
pm_optional_keyword_parameter_node_t *node = PM_ALLOC_NODE(parser, pm_optional_keyword_parameter_node_t);
*node = (pm_required_keyword_parameter_node_t) {
*node = (pm_optional_keyword_parameter_node_t) {
{
.type = PM_REQUIRED_KEYWORD_PARAMETER_NODE,
.type = PM_OPTIONAL_KEYWORD_PARAMETER_NODE,
.location = {
.start = name->start,
.end = value->location.end
@ -10502,7 +10502,7 @@ parse_parameters(
case PM_TOKEN_COMMA:
case PM_TOKEN_PARENTHESIS_RIGHT:
case PM_TOKEN_PIPE: {
pm_node_t *param = (pm_node_t *) pm_optional_keyword_parameter_node_create(parser, &name);
pm_node_t *param = (pm_node_t *) pm_required_keyword_parameter_node_create(parser, &name);
pm_parameters_node_keywords_append(params, param);
break;
}
@ -10513,7 +10513,7 @@ parse_parameters(
break;
}
pm_node_t *param = (pm_node_t *) pm_optional_keyword_parameter_node_create(parser, &name);
pm_node_t *param = (pm_node_t *) pm_required_keyword_parameter_node_create(parser, &name);
pm_parameters_node_keywords_append(params, param);
break;
}
@ -10524,10 +10524,10 @@ parse_parameters(
context_push(parser, PM_CONTEXT_DEFAULT_PARAMS);
pm_node_t *value = parse_expression(parser, binding_power, PM_ERR_PARAMETER_NO_DEFAULT_KW);
context_pop(parser);
param = (pm_node_t *) pm_required_keyword_parameter_node_create(parser, &name, value);
param = (pm_node_t *) pm_optional_keyword_parameter_node_create(parser, &name, value);
}
else {
param = (pm_node_t *) pm_optional_keyword_parameter_node_create(parser, &name);
param = (pm_node_t *) pm_required_keyword_parameter_node_create(parser, &name);
}
pm_parameters_node_keywords_append(params, param);

Просмотреть файл

@ -746,7 +746,7 @@ module Prism
[],
nil,
[RequiredParameterNode(:a)],
[OptionalKeywordParameterNode(:b, Location())],
[RequiredKeywordParameterNode(:b, Location())],
nil,
nil
),
@ -774,7 +774,7 @@ module Prism
[],
nil,
[],
[OptionalKeywordParameterNode(:b, Location())],
[RequiredKeywordParameterNode(:b, Location())],
KeywordRestParameterNode(:rest, Location(), Location()),
nil
),
@ -824,7 +824,7 @@ module Prism
[],
nil,
[RequiredParameterNode(:a)],
[OptionalKeywordParameterNode(:b, Location())],
[RequiredKeywordParameterNode(:b, Location())],
KeywordRestParameterNode(:args, Location(), Location()),
nil
),
@ -854,7 +854,7 @@ module Prism
[],
nil,
[RequiredParameterNode(:a)],
[OptionalKeywordParameterNode(:b, Location())],
[RequiredKeywordParameterNode(:b, Location())],
KeywordRestParameterNode(:args, Location(), Location()),
nil
),
@ -884,7 +884,7 @@ module Prism
[],
nil,
[RequiredParameterNode(:a)],
[OptionalKeywordParameterNode(:b, Location())],
[RequiredKeywordParameterNode(:b, Location())],
KeywordRestParameterNode(:args, Location(), Location()),
nil
),

Просмотреть файл

@ -600,7 +600,7 @@ module Prism
end
def test_OptionalKeywordParameterNode
assert_location(OptionalKeywordParameterNode, "def foo(bar:); end", 8...12) do |node|
assert_location(OptionalKeywordParameterNode, "def foo(bar: nil); end", 8...16) do |node|
node.parameters.keywords.first
end
end
@ -670,7 +670,7 @@ module Prism
end
def test_RequiredKeywordParameterNode
assert_location(RequiredKeywordParameterNode, "def foo(bar: nil); end", 8...16) do |node|
assert_location(RequiredKeywordParameterNode, "def foo(bar:); end", 8...12) do |node|
node.parameters.keywords.first
end
end

Просмотреть файл

@ -517,7 +517,7 @@
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 1)
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (33,17)-(33,19))
│ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (33,17)-(33,19))
│ │ │ │ │ ├── name: :z
│ │ │ │ │ └── name_loc: (33,17)-(33,19) = "z:"
│ │ │ │ ├── keyword_rest: ∅
@ -695,13 +695,13 @@
│ │ │ │ │ │ ├── rest: ∅
│ │ │ │ │ │ ├── posts: (length: 0)
│ │ │ │ │ │ ├── keywords: (length: 2)
│ │ │ │ │ │ │ ├── @ RequiredKeywordParameterNode (location: (49,2)-(49,6))
│ │ │ │ │ │ │ ├── @ OptionalKeywordParameterNode (location: (49,2)-(49,6))
│ │ │ │ │ │ │ │ ├── name: :a
│ │ │ │ │ │ │ │ ├── name_loc: (49,2)-(49,4) = "a:"
│ │ │ │ │ │ │ │ └── value:
│ │ │ │ │ │ │ │ @ IntegerNode (location: (49,5)-(49,6))
│ │ │ │ │ │ │ │ └── flags: decimal
│ │ │ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (50,2)-(50,6))
│ │ │ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (50,2)-(50,6))
│ │ │ │ │ │ │ ├── name: :b
│ │ │ │ │ │ │ ├── name_loc: (50,2)-(50,4) = "b:"
│ │ │ │ │ │ │ └── value:

Просмотреть файл

@ -39,7 +39,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (5,3)-(5,13))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (5,3)-(5,13))
│ │ │ │ ├── name: :x
│ │ │ │ ├── name_loc: (5,3)-(5,5) = "x:"
│ │ │ │ └── value:
@ -89,7 +89,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (7,3)-(7,11))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (7,3)-(7,11))
│ │ │ │ ├── name: :a
│ │ │ │ ├── name_loc: (7,3)-(7,5) = "a:"
│ │ │ │ └── value:
@ -173,7 +173,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (11,3)-(11,11))
│ │ │ └── @ OptionalKeywordParameterNode (location: (11,3)-(11,11))
│ │ │ ├── name: :foo
│ │ │ ├── name_loc: (11,3)-(11,7) = "foo:"
│ │ │ └── value:

Просмотреть файл

@ -260,7 +260,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (31,6)-(31,8))
│ │ │ └── @ RequiredKeywordParameterNode (location: (31,6)-(31,8))
│ │ │ ├── name: :b
│ │ │ └── name_loc: (31,6)-(31,8) = "b:"
│ │ ├── keyword_rest: ∅
@ -290,7 +290,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (35,6)-(35,8))
│ │ │ └── @ RequiredKeywordParameterNode (location: (35,6)-(35,8))
│ │ │ ├── name: :b
│ │ │ └── name_loc: (35,6)-(35,8) = "b:"
│ │ ├── keyword_rest: ∅
@ -426,10 +426,10 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ OptionalKeywordParameterNode (location: (53,6)-(53,8))
│ │ │ ├── @ RequiredKeywordParameterNode (location: (53,6)-(53,8))
│ │ │ │ ├── name: :b
│ │ │ │ └── name_loc: (53,6)-(53,8) = "b:"
│ │ │ └── @ RequiredKeywordParameterNode (location: (53,10)-(53,14))
│ │ │ └── @ OptionalKeywordParameterNode (location: (53,10)-(53,14))
│ │ │ ├── name: :c
│ │ │ ├── name_loc: (53,10)-(53,12) = "c:"
│ │ │ └── value:
@ -456,10 +456,10 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ OptionalKeywordParameterNode (location: (56,6)-(56,8))
│ │ │ ├── @ RequiredKeywordParameterNode (location: (56,6)-(56,8))
│ │ │ │ ├── name: :b
│ │ │ │ └── name_loc: (56,6)-(56,8) = "b:"
│ │ │ └── @ RequiredKeywordParameterNode (location: (56,10)-(56,14))
│ │ │ └── @ OptionalKeywordParameterNode (location: (56,10)-(56,14))
│ │ │ ├── name: :c
│ │ │ ├── name_loc: (56,10)-(56,12) = "c:"
│ │ │ └── value:
@ -486,13 +486,13 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ RequiredKeywordParameterNode (location: (59,6)-(60,3))
│ │ │ ├── @ OptionalKeywordParameterNode (location: (59,6)-(60,3))
│ │ │ │ ├── name: :b
│ │ │ │ ├── name_loc: (59,6)-(59,8) = "b:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (60,2)-(60,3))
│ │ │ │ └── flags: decimal
│ │ │ └── @ OptionalKeywordParameterNode (location: (60,5)-(60,7))
│ │ │ └── @ RequiredKeywordParameterNode (location: (60,5)-(60,7))
│ │ │ ├── name: :c
│ │ │ └── name_loc: (60,5)-(60,7) = "c:"
│ │ ├── keyword_rest: ∅
@ -1307,7 +1307,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (142,8)-(142,19))
│ │ │ └── @ OptionalKeywordParameterNode (location: (142,8)-(142,19))
│ │ │ ├── name: :a
│ │ │ ├── name_loc: (142,8)-(142,10) = "a:"
│ │ │ └── value:
@ -1347,7 +1347,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (145,8)-(145,18))
│ │ │ └── @ OptionalKeywordParameterNode (location: (145,8)-(145,18))
│ │ │ ├── name: :a
│ │ │ ├── name_loc: (145,8)-(145,10) = "a:"
│ │ │ └── value:
@ -1385,7 +1385,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (148,8)-(148,17))
│ │ │ └── @ OptionalKeywordParameterNode (location: (148,8)-(148,17))
│ │ │ ├── name: :a
│ │ │ ├── name_loc: (148,8)-(148,10) = "a:"
│ │ │ └── value:

Просмотреть файл

@ -144,10 +144,10 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 2)
│ │ │ │ ├── @ OptionalKeywordParameterNode (location: (17,13)-(17,15))
│ │ │ │ ├── @ RequiredKeywordParameterNode (location: (17,13)-(17,15))
│ │ │ │ │ ├── name: :c
│ │ │ │ │ └── name_loc: (17,13)-(17,15) = "c:"
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (17,17)-(17,19))
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (17,17)-(17,19))
│ │ │ │ ├── name: :d
│ │ │ │ └── name_loc: (17,17)-(17,19) = "d:"
│ │ │ ├── keyword_rest: ∅
@ -192,10 +192,10 @@
│ │ │ │ └── operator_loc: (19,14)-(19,15) = "*"
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 2)
│ │ │ │ ├── @ OptionalKeywordParameterNode (location: (19,18)-(19,20))
│ │ │ │ ├── @ RequiredKeywordParameterNode (location: (19,18)-(19,20))
│ │ │ │ │ ├── name: :d
│ │ │ │ │ └── name_loc: (19,18)-(19,20) = "d:"
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (19,22)-(19,24))
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (19,22)-(19,24))
│ │ │ │ ├── name: :e
│ │ │ │ └── name_loc: (19,22)-(19,24) = "e:"
│ │ │ ├── keyword_rest:
@ -244,10 +244,10 @@
│ │ │ │ └── operator_loc: (21,14)-(21,15) = "*"
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 2)
│ │ │ │ ├── @ OptionalKeywordParameterNode (location: (21,18)-(21,20))
│ │ │ │ ├── @ RequiredKeywordParameterNode (location: (21,18)-(21,20))
│ │ │ │ │ ├── name: :d
│ │ │ │ │ └── name_loc: (21,18)-(21,20) = "d:"
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (21,22)-(21,24))
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (21,22)-(21,24))
│ │ │ │ ├── name: :e
│ │ │ │ └── name_loc: (21,22)-(21,24) = "e:"
│ │ │ ├── keyword_rest:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :a
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
│ │ └── value:

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,8)-(1,12))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,8)-(1,12))
│ │ │ │ ├── name: :k
│ │ │ │ ├── name_loc: (1,8)-(1,10) = "k:"
│ │ │ │ └── value:

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,9)-(1,11))
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,9)-(1,11))
│ │ │ │ ├── name: :k
│ │ │ │ └── name_loc: (1,9)-(1,11) = "k:"
│ │ │ ├── keyword_rest: ∅

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,14))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,14))
│ │ │ │ ├── name: :kw
│ │ │ │ ├── name_loc: (1,6)-(1,9) = "kw:"
│ │ │ │ └── value:

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 2)
│ │ │ │ ├── @ RequiredKeywordParameterNode (location: (1,6)-(1,14))
│ │ │ │ ├── @ OptionalKeywordParameterNode (location: (1,6)-(1,14))
│ │ │ │ │ ├── name: :kw
│ │ │ │ │ ├── name_loc: (1,6)-(1,9) = "kw:"
│ │ │ │ │ └── value:
@ -31,7 +31,7 @@
│ │ │ │ │ ├── value_loc: (1,11)-(1,14) = "val"
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ └── unescaped: "val"
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,16)-(1,26))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,16)-(1,26))
│ │ │ │ ├── name: :kw2
│ │ │ │ ├── name_loc: (1,16)-(1,20) = "kw2:"
│ │ │ │ └── value:

Просмотреть файл

@ -16,13 +16,13 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 2)
│ │ ├── @ RequiredKeywordParameterNode (location: (1,9)-(1,13))
│ │ ├── @ OptionalKeywordParameterNode (location: (1,9)-(1,13))
│ │ │ ├── name: :b
│ │ │ ├── name_loc: (1,9)-(1,11) = "b:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
│ │ │ └── flags: decimal
│ │ └── @ RequiredKeywordParameterNode (location: (1,15)-(1,19))
│ │ └── @ OptionalKeywordParameterNode (location: (1,15)-(1,19))
│ │ ├── name: :c
│ │ ├── name_loc: (1,15)-(1,17) = "c:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :b
│ │ ├── name_loc: (1,6)-(1,8) = "b:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :b
│ │ ├── name_loc: (1,6)-(1,8) = "b:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,8)-(1,16))
│ │ └── @ OptionalKeywordParameterNode (location: (1,8)-(1,16))
│ │ ├── name: :kw
│ │ ├── name_loc: (1,8)-(1,11) = "kw:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :a
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
│ │ └── value:

Просмотреть файл

@ -16,7 +16,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,9)-(1,12))
│ │ └── @ OptionalKeywordParameterNode (location: (1,9)-(1,12))
│ │ ├── name: :b
│ │ ├── name_loc: (1,9)-(1,11) = "b:"
│ │ └── value:

Просмотреть файл

@ -15,7 +15,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,11)-(1,15))
│ │ └── @ OptionalKeywordParameterNode (location: (1,11)-(1,15))
│ │ ├── name: :b
│ │ ├── name_loc: (1,11)-(1,13) = "b:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :k
│ │ ├── name_loc: (1,6)-(1,8) = "k:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,8))
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,8))
│ │ ├── name: :k
│ │ └── name_loc: (1,6)-(1,8) = "k:"
│ ├── keyword_rest: ∅

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,5)-(1,9))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,5)-(1,9))
│ │ │ │ ├── name: :b
│ │ │ │ ├── name_loc: (1,5)-(1,7) = "b:"
│ │ │ │ └── value:

Просмотреть файл

@ -22,7 +22,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,5)-(1,9))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,5)-(1,9))
│ │ │ │ ├── name: :b
│ │ │ │ ├── name_loc: (1,5)-(1,7) = "b:"
│ │ │ │ └── value:

Просмотреть файл

@ -14,10 +14,10 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 2)
│ │ ├── @ OptionalKeywordParameterNode (location: (1,6)-(1,8))
│ │ ├── @ RequiredKeywordParameterNode (location: (1,6)-(1,8))
│ │ │ ├── name: :a
│ │ │ └── name_loc: (1,6)-(1,8) = "a:"
│ │ └── @ OptionalKeywordParameterNode (location: (1,10)-(1,12))
│ │ └── @ RequiredKeywordParameterNode (location: (1,10)-(1,12))
│ │ ├── name: :b
│ │ └── name_loc: (1,10)-(1,12) = "b:"
│ ├── keyword_rest: ∅

Просмотреть файл

@ -17,7 +17,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (1,4)-(1,8))
│ │ │ └── @ OptionalKeywordParameterNode (location: (1,4)-(1,8))
│ │ │ ├── name: :k
│ │ │ ├── name_loc: (1,4)-(1,6) = "k:"
│ │ │ └── value:

Просмотреть файл

@ -17,7 +17,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (1,4)-(1,6))
│ │ │ └── @ RequiredKeywordParameterNode (location: (1,4)-(1,6))
│ │ │ ├── name: :k
│ │ │ └── name_loc: (1,4)-(1,6) = "k:"
│ │ ├── keyword_rest: ∅

Просмотреть файл

@ -194,10 +194,10 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ OptionalKeywordParameterNode (location: (21,8)-(21,12))
│ │ │ ├── @ RequiredKeywordParameterNode (location: (21,8)-(21,12))
│ │ │ │ ├── name: :bar
│ │ │ │ └── name_loc: (21,8)-(21,12) = "bar:"
│ │ │ └── @ OptionalKeywordParameterNode (location: (21,14)-(21,18))
│ │ │ └── @ RequiredKeywordParameterNode (location: (21,14)-(21,18))
│ │ │ ├── name: :baz
│ │ │ └── name_loc: (21,14)-(21,18) = "baz:"
│ │ ├── keyword_rest: ∅
@ -627,7 +627,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (74,8)-(74,14))
│ │ │ └── @ OptionalKeywordParameterNode (location: (74,8)-(74,14))
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (74,8)-(74,12) = "bar:"
│ │ │ └── value:
@ -654,7 +654,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (77,8)-(77,16))
│ │ │ └── @ OptionalKeywordParameterNode (location: (77,8)-(77,16))
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (77,8)-(77,12) = "bar:"
│ │ │ └── value:
@ -689,7 +689,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (80,8)-(80,18))
│ │ │ └── @ OptionalKeywordParameterNode (location: (80,8)-(80,18))
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (80,8)-(80,12) = "bar:"
│ │ │ └── value:
@ -1090,10 +1090,10 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ OptionalKeywordParameterNode (location: (123,8)-(123,12))
│ │ │ ├── @ RequiredKeywordParameterNode (location: (123,8)-(123,12))
│ │ │ │ ├── name: :bar
│ │ │ │ └── name_loc: (123,8)-(123,12) = "bar:"
│ │ │ └── @ RequiredKeywordParameterNode (location: (123,14)-(123,26))
│ │ │ └── @ OptionalKeywordParameterNode (location: (123,14)-(123,26))
│ │ │ ├── name: :baz
│ │ │ ├── name_loc: (123,14)-(123,18) = "baz:"
│ │ │ └── value:

Просмотреть файл

@ -369,7 +369,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (23,7)-(23,13))
│ │ │ └── @ OptionalKeywordParameterNode (location: (23,7)-(23,13))
│ │ │ ├── name: :foo
│ │ │ ├── name_loc: (23,7)-(23,11) = "foo:"
│ │ │ └── value:
@ -400,13 +400,13 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
│ │ │ ├── @ RequiredKeywordParameterNode (location: (25,7)-(25,13))
│ │ │ ├── @ OptionalKeywordParameterNode (location: (25,7)-(25,13))
│ │ │ │ ├── name: :foo
│ │ │ │ ├── name_loc: (25,7)-(25,11) = "foo:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (25,12)-(25,13))
│ │ │ │ └── flags: decimal
│ │ │ └── @ RequiredKeywordParameterNode (location: (25,15)-(25,21))
│ │ │ └── @ OptionalKeywordParameterNode (location: (25,15)-(25,21))
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (25,15)-(25,19) = "bar:"
│ │ │ └── value:
@ -811,7 +811,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (51,6)-(51,10))
│ │ │ └── @ RequiredKeywordParameterNode (location: (51,6)-(51,10))
│ │ │ ├── name: :foo
│ │ │ └── name_loc: (51,6)-(51,10) = "foo:"
│ │ ├── keyword_rest: ∅
@ -835,7 +835,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ RequiredKeywordParameterNode (location: (54,6)-(54,13))
│ │ │ └── @ OptionalKeywordParameterNode (location: (54,6)-(54,13))
│ │ │ ├── name: :foo
│ │ │ ├── name_loc: (54,6)-(54,10) = "foo:"
│ │ │ └── value:

Просмотреть файл

@ -963,7 +963,7 @@
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 1)
│ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (57,4)-(57,10))
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (57,4)-(57,10))
│ │ │ │ │ ├── name: :foo
│ │ │ │ │ ├── name_loc: (57,4)-(57,8) = "foo:"
│ │ │ │ │ └── value:
@ -1002,13 +1002,13 @@
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 2)
│ │ │ │ │ ├── @ RequiredKeywordParameterNode (location: (59,4)-(59,10))
│ │ │ │ │ ├── @ OptionalKeywordParameterNode (location: (59,4)-(59,10))
│ │ │ │ │ │ ├── name: :foo
│ │ │ │ │ │ ├── name_loc: (59,4)-(59,8) = "foo:"
│ │ │ │ │ │ └── value:
│ │ │ │ │ │ @ IntegerNode (location: (59,9)-(59,10))
│ │ │ │ │ │ └── flags: decimal
│ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (59,12)-(59,18))
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (59,12)-(59,18))
│ │ │ │ │ ├── name: :bar
│ │ │ │ │ ├── name_loc: (59,12)-(59,16) = "bar:"
│ │ │ │ │ └── value:
@ -1051,7 +1051,7 @@
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 1)
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (61,4)-(61,8))
│ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (61,4)-(61,8))
│ │ │ │ │ ├── name: :foo
│ │ │ │ │ └── name_loc: (61,4)-(61,8) = "foo:"
│ │ │ │ ├── keyword_rest: ∅

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,10))
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,10))
│ │ ├── name: :foo
│ │ └── name_loc: (1,6)-(1,10) = "foo:"
│ ├── keyword_rest: ∅

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,12))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,12))
│ │ ├── name: :foo
│ │ ├── name_loc: (1,6)-(1,10) = "foo:"
│ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 1)
│ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,12))
│ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,12))
│ │ ├── name: :a
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
│ │ └── value:

Просмотреть файл

@ -80,7 +80,7 @@
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 1)
│ │ │ │ │ └── @ RequiredKeywordParameterNode (location: (3,5)-(3,14))
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (3,5)-(3,14))
│ │ │ │ │ ├── name: :a
│ │ │ │ │ ├── name_loc: (3,5)-(3,7) = "a:"
│ │ │ │ │ └── value:

Просмотреть файл

@ -14,7 +14,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (1,6)-(1,8))
│ │ │ └── @ RequiredKeywordParameterNode (location: (1,6)-(1,8))
│ │ │ ├── name: :b
│ │ │ └── name_loc: (1,6)-(1,8) = "b:"
│ │ ├── keyword_rest: ∅

Просмотреть файл

@ -17,7 +17,7 @@
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ RequiredKeywordParameterNode (location: (1,3)-(1,7))
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,3)-(1,7))
│ │ │ │ ├── name: :a
│ │ │ │ ├── name_loc: (1,3)-(1,5) = "a:"
│ │ │ │ └── value:
@ -43,7 +43,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
│ │ │ └── @ OptionalKeywordParameterNode (location: (3,3)-(3,5))
│ │ │ └── @ RequiredKeywordParameterNode (location: (3,3)-(3,5))
│ │ │ ├── name: :a
│ │ │ └── name_loc: (3,3)-(3,5) = "a:"
│ │ ├── keyword_rest: ∅