Commit 0dbdc4d1 authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/ast: Add BM_AST_NODE_PROP.

parent c6cef2f9
......@@ -138,6 +138,12 @@ struct bm_ast_node_data_pack
struct bm_ast_class_path path;
};
struct bm_ast_node_data_prop
{
enum bm_ast_visibility visibility;
struct bm_ast_decl decl;
};
struct bm_ast_node_data_proto
{
struct bm_ast_decl_func decl;
......@@ -415,6 +421,7 @@ union bm_ast_node_data
struct bm_ast_node_data_func as_func;
struct bm_ast_node_data_interface as_interface;
struct bm_ast_node_data_pack as_pack;
struct bm_ast_node_data_prop as_prop;
struct bm_ast_node_data_proto as_proto;
struct bm_ast_node_data_use as_use;
......
......@@ -29,6 +29,7 @@ enum bm_ast_node_type
BM_AST_NODE_FUNC,
BM_AST_NODE_INTERFACE,
BM_AST_NODE_PACK,
BM_AST_NODE_PROP,
BM_AST_NODE_PROTO,
BM_AST_NODE_USE,
......
......@@ -147,6 +147,7 @@ const wchar_t *debug_node_type(enum bm_ast_node_type type)
CASE_WSTR(BM_AST_NODE_FUNC);
CASE_WSTR(BM_AST_NODE_INTERFACE);
CASE_WSTR(BM_AST_NODE_PACK);
CASE_WSTR(BM_AST_NODE_PROP);
CASE_WSTR(BM_AST_NODE_PROTO);
CASE_WSTR(BM_AST_NODE_USE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment