Skip to content

Commit

Permalink
add ! for if is ast_layout_node_type_is_single
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Jan 5, 2025
1 parent ef48e95 commit 4eceea7
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ ast_layout_attribute_type_t ast_layout_attribute_enduser_name_in_node_to_type(ch
}
}

if (ast_layout_node_type_is_single(parent_node_type)) {
if (! ast_layout_node_type_is_single(parent_node_type)) {
char *enduser_content = ast_layout_attribute_type_to_enduser_name(AST_LAYOUT_ATTRIBUTE_TYPE_CONTENT);
if (strcmp(name, enduser_content) == 0) {
return AST_LAYOUT_ATTRIBUTE_TYPE_CONTENT;
Expand Down
2 changes: 2 additions & 0 deletions src/generated-config/ast_block_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ERROR, "ERROR", "error")








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_style_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(unset, "حذف شده")








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_style_state_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPT








1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,6 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE_HIDE(AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_ERROR, "ERR






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -1510,5 +1510,6 @@ const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[] = {






Original file line number Diff line number Diff line change
Expand Up @@ -397,5 +397,6 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[];






2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_attribute_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ ADD_LAYOUT_ATTRIBUTE_TYPE(AST_LAYOUT_ATTRIBUTE_TYPE_RESPONSIVE_MIN_HEIGHT, "RESP








1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ const ast_layout_attribute_pair_t ast_layout_allowed_lang[] = {






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_value_extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_lang[];






2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ ADD_LAYOUT_TYPE_REPEAT(AST_LAYOUT_TYPE_MEDIA, "MEDIA", "media", "@media", "وا








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ else if (attribute->parent_node_type == AST_LAYOUT_TYPE_MEDIA) {








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ const size_t map_size = sizeof(layout_map) / sizeof(layout_map[0]);








2 changes: 2 additions & 0 deletions src/generated-config/ast_layout_type_attributes_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ const size_t valid_attributes_media_length = 0;








Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ extern const size_t valid_attributes_media_length;








2 changes: 2 additions & 0 deletions src/generated-config/ast_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ ADD_TYPE(AST_TYPE_ERROR, "ERROR", "error")








0 comments on commit 4eceea7

Please sign in to comment.