| ... | ... | @@ -1583,11 +1583,19 @@ fn analyzeRootSrcFile(self: *Module, root_scope: *Scope.File) !void { |
| 1583 | 1583 | } |
| 1584 | 1584 | } |
| 1585 | 1585 | } |
| 1586 | } else if (src_decl.castTag(.VarDecl)) |var_decl| { |
| 1587 | log.err("TODO: analyze var decl", .{}); |
| 1588 | } else if (src_decl.castTag(.Comptime)) |comptime_node| { |
| 1589 | log.err("TODO: analyze comptime decl", .{}); |
| 1590 | } else if (src_decl.castTag(.ContainerField)) |container_field| { |
| 1591 | log.err("TODO: analyze container field", .{}); |
| 1592 | } else if (src_decl.castTag(.TestDecl)) |test_decl| { |
| 1593 | log.err("TODO: analyze test decl", .{}); |
| 1594 | } else if (src_decl.castTag(.Use)) |use_decl| { |
| 1595 | log.err("TODO: analyze usingnamespace decl", .{}); |
| 1586 | 1596 | } else { |
| 1587 | | std.debug.panic("TODO: analyzeRootSrcFile {}", .{src_decl.tag}); |
| 1597 | unreachable; |
| 1588 | 1598 | } |
| 1589 | | // TODO also look for global variable declarations |
| 1590 | | // TODO also look for comptime blocks and exported globals |
| 1591 | 1599 | } |
| 1592 | 1600 | // Handle explicitly deleted decls from the source code. Not to be confused |
| 1593 | 1601 | // with when we delete decls because they are no longer referenced. |