diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-11-11 20:39:08 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2012-11-11 20:39:08 +0000 |
commit | 0c49659f6d956d2d09d5df0b7019dc8f44aa86ed (patch) | |
tree | a9760687e987892530bfd2556511f2d5594cf8dd /src/webidl-ast.c | |
parent | 21be3e136e5dc995bd53e9484e7693c4efc481b5 (diff) | |
download | nsgenbind-0c49659f6d956d2d09d5df0b7019dc8f44aa86ed.tar.gz nsgenbind-0c49659f6d956d2d09d5df0b7019dc8f44aa86ed.tar.bz2 |
add AST construction of constants in interfaces
Diffstat (limited to 'src/webidl-ast.c')
-rw-r--r-- | src/webidl-ast.c | 4 |
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"; } |