summary refs log tree commit diff stats
path: root/compiler/modulepaths.nim
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2018-08-23 10:23:02 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-23 10:23:02 +0200
commitd6d3f092a369ae24ab4f51a332a8056e18c215b0 (patch)
tree21b6b34249eefc397dd5b84230974e12720c0fe9 /compiler/modulepaths.nim
parentbf973d29da48fc6e6d6eeedce3adda84e0b45a64 (diff)
downloadNim-d6d3f092a369ae24ab4f51a332a8056e18c215b0.tar.gz
Fix for module alias inside brackets (#8726)
Diffstat (limited to 'compiler/modulepaths.nim')
-rw-r--r--compiler/modulepaths.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/modulepaths.nim b/compiler/modulepaths.nim
index e5cbf3a2c..118002fcf 100644
--- a/compiler/modulepaths.nim
+++ b/compiler/modulepaths.nim
@@ -126,13 +126,6 @@ proc getModuleName*(conf: ConfigRef; n: PNode): string =
   of nkInfix:
     let n0 = n[0]
     let n1 = n[1]
-    if n0.kind == nkIdent and n0.ident.s == "as":
-      # XXX hack ahead:
-      n.kind = nkImportAs
-      n.sons[0] = n.sons[1]
-      n.sons[1] = n.sons[2]
-      n.sons.setLen(2)
-      return getModuleName(conf, n.sons[0])
     when false:
       if n1.kind == nkPrefix and n1[0].kind == nkIdent and n1[0].ident.s == "$":
         if n0.kind == nkIdent and n0.ident.s == "/":