diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-09-28 07:59:50 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-09-28 07:59:50 +0100 |
commit | c80955dcc6b663c250a1f2552b626770fbd46a94 (patch) | |
tree | 4b6b98eb03095cbc722b7f5bc2e0bbfa9568e8b3 /src/nsgenbind-ast.h | |
parent | 767e69459ca7b4c13fe93875177040ab3eec8b56 (diff) | |
download | nsgenbind-c80955dcc6b663c250a1f2552b626770fbd46a94.tar.gz nsgenbind-c80955dcc6b663c250a1f2552b626770fbd46a94.tar.bz2 |
annotates binding AST with source linenumber and file
Uses annotated AST to put line directives in the generated source so
any code errors in the binding can be easily located.
Diffstat (limited to 'src/nsgenbind-ast.h')
-rw-r--r-- | src/nsgenbind-ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nsgenbind-ast.h b/src/nsgenbind-ast.h index b130db2..49db23b 100644 --- a/src/nsgenbind-ast.h +++ b/src/nsgenbind-ast.h @@ -16,6 +16,8 @@ enum genbind_node_type { GENBIND_NODE_TYPE_MODIFIER, /**< node modifier */ GENBIND_NODE_TYPE_CDATA, /**< verbatim block of character data */ GENBIND_NODE_TYPE_STRING, /**< text string */ + GENBIND_NODE_TYPE_LINE, /**< linenumber */ + GENBIND_NODE_TYPE_FILE, /**< file name */ GENBIND_NODE_TYPE_BINDING, /**< Binding */ GENBIND_NODE_TYPE_WEBIDL, @@ -28,6 +30,7 @@ enum genbind_node_type { GENBIND_NODE_TYPE_METHOD, /**< binding method */ GENBIND_NODE_TYPE_METHOD_TYPE, /**< binding method type */ + GENBIND_NODE_TYPE_PARAMETER, /**< method parameter */ }; |