diff options
| author | Vexu <git@vexu.eu> | 2020-11-17 21:33:26 +0200 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-11-18 00:52:56 +0200 |
| commit | bace1181b2f6d63e51b6e511aa8318481e2eafee (patch) | |
| tree | 9b39b68f01cebd79808f051b6f6bc5e85491ca40 /src/Module.zig | |
| parent | c1e19f4c0a62047c26d5baabe25887e533cc739f (diff) | |
| download | zig-bace1181b2f6d63e51b6e511aa8318481e2eafee.tar.gz zig-bace1181b2f6d63e51b6e511aa8318481e2eafee.zip | |
stage2: handle opaque containers
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 831aedf054..4b41d4c737 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -1515,7 +1515,6 @@ pub fn analyzeContainer(self: *Module, container_scope: *Scope.Container) !void // an incremental update. This code handles both cases. const tree = try self.getAstTree(container_scope); const decls = tree.root_node.decls(); - // const decls = container_scope.root_node.decls(); try self.comp.work_queue.ensureUnusedCapacity(decls.len); try container_scope.decls.ensureCapacity(self.gpa, decls.len); @@ -2302,6 +2301,7 @@ pub fn createContainerDecl( } fn getAnonTypeName(self: *Module, scope: *Scope, base_token: std.zig.ast.TokenIndex) ![]u8 { + // TODO add namespaces, generic function signatrues const tree = scope.tree(); const base_name = switch (tree.token_ids[base_token]) { .Keyword_struct => "struct", |
