aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-07-08 20:33:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-07-08 20:33:33 -0700
commit8e425c0c8d78acc64a4223a35010df478d5b7e16 (patch)
treeb08ffa0b517c132392e78e6dfb97c5424cac5697 /lib
parentbe0546d877e0df18201e73e803d8a966b57625c5 (diff)
downloadzig-8e425c0c8d78acc64a4223a35010df478d5b7e16.tar.gz
zig-8e425c0c8d78acc64a4223a35010df478d5b7e16.zip
stage2: `if` AST=>ZIR
Diffstat (limited to 'lib')
-rw-r--r--lib/std/zig/ast.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/zig/ast.zig b/lib/std/zig/ast.zig
index 370f42b463..72d8f3560e 100644
--- a/lib/std/zig/ast.zig
+++ b/lib/std/zig/ast.zig
@@ -959,6 +959,8 @@ pub const Node = struct {
};
/// The params are directly after the FnProto in memory.
+ /// TODO have a flags field for the optional nodes, and have them appended
+ /// before or after the parameters in memory.
pub const FnProto = struct {
base: Node = Node{ .id = .FnProto },
doc_comments: ?*DocComment,