aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-09-04 23:34:44 +0300
committerVexu <git@vexu.eu>2020-09-30 16:56:45 +0300
commit20ae15917c5cded10a01b85c2cba77041dacef1c (patch)
tree583b4b57b3f0329b73e8198efbe4a797b0486005 /src/Module.zig
parentfe117d9961c3622fda5c359733d01de686509af0 (diff)
downloadzig-20ae15917c5cded10a01b85c2cba77041dacef1c.tar.gz
zig-20ae15917c5cded10a01b85c2cba77041dacef1c.zip
stage2: add import builtin stub
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig5
1 files changed, 5 insertions, 0 deletions
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,