From 20ae15917c5cded10a01b85c2cba77041dacef1c Mon Sep 17 00:00:00 2001 From: Vexu Date: Fri, 4 Sep 2020 23:34:44 +0300 Subject: stage2: add import builtin stub --- src/Module.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 4fcf72f4ff..9d6510fe7f 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -2381,6 +2381,11 @@ pub fn analyzeSlice(self: *Module, scope: *Scope, src: usize, array_ptr: *Inst, return self.fail(scope, src, "TODO implement analysis of slice", .{}); } +pub fn analyzeImport(self: *Module, scope: *Scope, src: usize, target_string: []const u8) InnerError!*Inst { + // TODO actually try to import + return self.constType(scope, src, Type.initTag(.empty_struct)); +} + /// Asserts that lhs and rhs types are both numeric. pub fn cmpNumeric( self: *Module, -- cgit v1.2.3