From 6031dd6e55216bd4d9a78c4869bb8b5e5f5aa3c3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 9 Jan 2014 18:29:29 +0000 Subject: Expand implements statements in the AST after it has been built This greatly simplifies output generation because instead of dealing with implements on every traverse they are expanded once. Additionaly errors in expansion are found and generate error early. --- src/jsapi-libdom.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jsapi-libdom.c') diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c index 1bb6d28..5e994b9 100644 --- a/src/jsapi-libdom.c +++ b/src/jsapi-libdom.c @@ -47,6 +47,10 @@ read_webidl(struct genbind_node *genbind_ast, struct webidl_node **webidl_ast) webidl_file_cb, webidl_ast); + if (res == 0) { + res = webidl_intercalate_implements(*webidl_ast); + } + /* debug dump of web idl AST */ if (options->verbose) { webidl_ast_dump(*webidl_ast, 0); -- cgit v1.2.3