| ... | @@ -964,6 +964,9 @@ static void anal_dump_node(AnalDumpCtx *ctx, const AstNode *node) { | ... | @@ -964,6 +964,9 @@ static void anal_dump_node(AnalDumpCtx *ctx, const AstNode *node) { |
| 964 | case NodeTypeStructField: | 964 | case NodeTypeStructField: |
| 965 | name_buf = node->data.struct_field.name; | 965 | name_buf = node->data.struct_field.name; |
| 966 | break; | 966 | break; |
| | 967 | case NodeTypeParamDecl: |
| | 968 | name_buf = node->data.param_decl.name; |
| | 969 | break; |
| 967 | default: | 970 | default: |
| 968 | name_buf = nullptr; | 971 | name_buf = nullptr; |
| 969 | break; | 972 | break; |
| ... | @@ -978,6 +981,9 @@ static void anal_dump_node(AnalDumpCtx *ctx, const AstNode *node) { | ... | @@ -978,6 +981,9 @@ static void anal_dump_node(AnalDumpCtx *ctx, const AstNode *node) { |
| 978 | case NodeTypeContainerDecl: | 981 | case NodeTypeContainerDecl: |
| 979 | fieldNodes = &node->data.container_decl.fields; | 982 | fieldNodes = &node->data.container_decl.fields; |
| 980 | break; | 983 | break; |
| | 984 | case NodeTypeFnProto: |
| | 985 | fieldNodes = &node->data.fn_proto.params; |
| | 986 | break; |
| 981 | default: | 987 | default: |
| 982 | fieldNodes = nullptr; | 988 | fieldNodes = nullptr; |
| 983 | break; | 989 | break; |