Align expr fix

This commit is contained in:
Alexandros Naskos
2020-06-18 20:30:58 +03:00
parent d4e6ddd780
commit e59e1f08e5
2 changed files with 31 additions and 7 deletions

View File

@@ -754,6 +754,16 @@ pub fn resolveTypeOfNodeInternal(
return innermostContainer(handle, handle.tree.token_locs[builtin_call.firstToken()].start);
}
if (std.mem.eql(u8, call_name, "@cImport")) {
// @TODO
if (builtin_call.params_len != 1) return null;
// 1 - Get innermost container scope.
if (builtin_call.paramsConst()[0].cast(ast.Node.Block)) |block| {
std.debug.warn("cImport block: {}\n", .{block});
}
}
const cast_map = std.ComptimeStringMap(void, .{
.{"@as"},
.{"@bitCast"},