Fix up indentation [ci skip]
This commit is contained in:
parent
414c781158
commit
d2c5867357
@ -155,13 +155,15 @@ parse_symbol(const uint8_t *start, const uint8_t *end)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline ID
|
static inline ID
|
||||||
parse_string_symbol(pm_string_t *string) {
|
parse_string_symbol(pm_string_t *string)
|
||||||
|
{
|
||||||
const uint8_t *start = pm_string_source(string);
|
const uint8_t *start = pm_string_source(string);
|
||||||
return parse_symbol(start, start + pm_string_length(string));
|
return parse_symbol(start, start + pm_string_length(string));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline ID
|
static inline ID
|
||||||
parse_location_symbol(pm_location_t *location) {
|
parse_location_symbol(pm_location_t *location)
|
||||||
|
{
|
||||||
return parse_symbol(location->start, location->end);
|
return parse_symbol(location->start, location->end);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,7 +179,8 @@ pm_optimizable_range_item_p(pm_node_t *node)
|
|||||||
* set.
|
* set.
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
pm_static_node_literal_p(pm_node_t *node) {
|
pm_static_node_literal_p(pm_node_t *node)
|
||||||
|
{
|
||||||
return node->flags & PM_NODE_FLAG_STATIC_LITERAL;
|
return node->flags & PM_NODE_FLAG_STATIC_LITERAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,7 +305,8 @@ again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
pm_compile_if(rb_iseq_t *iseq, const int line, pm_statements_node_t *node_body, pm_node_t *node_else, pm_node_t *predicate, LINK_ANCHOR *const ret, const uint8_t *src, bool popped, pm_compile_context_t *compile_context) {
|
pm_compile_if(rb_iseq_t *iseq, const int line, pm_statements_node_t *node_body, pm_node_t *node_else, pm_node_t *predicate, LINK_ANCHOR *const ret, const uint8_t *src, bool popped, pm_compile_context_t *compile_context)
|
||||||
|
{
|
||||||
NODE dummy_line_node = generate_dummy_line_node(line, line);
|
NODE dummy_line_node = generate_dummy_line_node(line, line);
|
||||||
|
|
||||||
DECL_ANCHOR(cond_seq);
|
DECL_ANCHOR(cond_seq);
|
||||||
@ -540,7 +544,8 @@ pm_compile_class_path(LINK_ANCHOR *const ret, rb_iseq_t *iseq, const pm_node_t *
|
|||||||
* path).
|
* path).
|
||||||
*/
|
*/
|
||||||
static uint8_t
|
static uint8_t
|
||||||
pm_compile_multi_write_lhs(rb_iseq_t *iseq, NODE dummy_line_node, const pm_node_t *node, LINK_ANCHOR *const ret, pm_compile_context_t *compile_context, uint8_t pushed, bool nested) {
|
pm_compile_multi_write_lhs(rb_iseq_t *iseq, NODE dummy_line_node, const pm_node_t *node, LINK_ANCHOR *const ret, pm_compile_context_t *compile_context, uint8_t pushed, bool nested)
|
||||||
|
{
|
||||||
switch (PM_NODE_TYPE(node)) {
|
switch (PM_NODE_TYPE(node)) {
|
||||||
case PM_MULTI_TARGET_NODE: {
|
case PM_MULTI_TARGET_NODE: {
|
||||||
pm_multi_target_node_t *cast = (pm_multi_target_node_t *) node;
|
pm_multi_target_node_t *cast = (pm_multi_target_node_t *) node;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user