summaryrefslogtreecommitdiff
path: root/src/webidl-ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/webidl-ast.c')
-rw-r--r--src/webidl-ast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webidl-ast.c b/src/webidl-ast.c
index a1f2276..bc4ab01 100644
--- a/src/webidl-ast.c
+++ b/src/webidl-ast.c
@@ -232,6 +232,7 @@ webidl_node_getint(struct webidl_node *node)
switch(node->type) {
case WEBIDL_NODE_TYPE_MODIFIER:
case WEBIDL_NODE_TYPE_TYPE_BASE:
+ case WEBIDL_NODE_TYPE_LITERAL_INT:
return node->r.number;
default:
@@ -318,6 +319,9 @@ static const char *webidl_node_type_to_str(enum webidl_node_type type)
case WEBIDL_NODE_TYPE_CONST:
return "Const";
+ case WEBIDL_NODE_TYPE_LITERAL_INT:
+ return "Literal (int)";
+
default:
return "Unknown";
}