summaryrefslogtreecommitdiff
path: root/src/wast-parser-lexer-shared.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-06-23 18:41:59 -0700
committerGitHub <noreply@github.com>2017-06-23 18:41:59 -0700
commit29e8e9ee0068b0f90f30c69c4f6c0c3fd30bf96e (patch)
tree07ac2e58343a65309726118ab2908a61a7144f05 /src/wast-parser-lexer-shared.h
parent72edc598a20d79d5d19caf7b397be4254a7d5fb8 (diff)
downloadwabt-29e8e9ee0068b0f90f30c69c4f6c0c3fd30bf96e.tar.gz
wabt-29e8e9ee0068b0f90f30c69c4f6c0c3fd30bf96e.tar.bz2
wabt-29e8e9ee0068b0f90f30c69c4f6c0c3fd30bf96e.zip
Refactor Expr as class hierarchy instead of union (#524)
This has the benefit of making things much more type-safe, as well as simplifying destroying member variables. For now, many of the members are still raw pointers, but they probably should become unique_ptrs or ordinary values.
Diffstat (limited to 'src/wast-parser-lexer-shared.h')
-rw-r--r--src/wast-parser-lexer-shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wast-parser-lexer-shared.h b/src/wast-parser-lexer-shared.h
index 7cd6288b..56367ab7 100644
--- a/src/wast-parser-lexer-shared.h
+++ b/src/wast-parser-lexer-shared.h
@@ -92,6 +92,7 @@ union Token {
Script* script;
Table* table;
TextList text_list;
+ TryExpr* try_expr;
TypeVector* types;
uint32_t u32;
uint64_t u64;