aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-25 19:23:52 +0000
committergingerBill <bill@gingerbill.org>2018-02-25 19:23:52 +0000
commitd63885a495d2314a5ef76337605a9ebeefb26218 (patch)
treea47a575251d0be0020e3120e970e71ba55d3a651 /src/parser.hpp
parentf28a34fa99d68ce54c76272385ff9c172cc2ae59 (diff)
`array_make`
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 5f8bf8a19..0fb12a460 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -148,13 +148,6 @@ enum StmtAllowFlag {
-Array<AstNode *> make_ast_node_array(AstFile *f, isize init_capacity = 8) {
- Array<AstNode *> a;
- array_init(&a, heap_allocator(), init_capacity);
- return a;
-}
-
-
// NOTE(bill): This massive define is so it is possible to create a discriminated union (and extra debug info)
// for the AstNode. I personally prefer discriminated unions over subtype polymorphism as I can preallocate
// all the nodes and even memcpy in a different kind of node