summary refs log tree commit diff stats
path: root/compiler/rod.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rod.nim')
-rw-r--r--compiler/rod.nim26
1 files changed, 26 insertions, 0 deletions
diff --git a/compiler/rod.nim b/compiler/rod.nim
new file mode 100644
index 000000000..c144f15ef
--- /dev/null
+++ b/compiler/rod.nim
@@ -0,0 +1,26 @@
+#
+#
+#           The Nim Compiler
+#        (c) Copyright 2017 Andreas Rumpf
+#
+#    See the file "copying.txt", included in this
+#    distribution, for details about the copyright.
+#
+
+## This module implements the canonalization for the various caching mechanisms.
+
+import ast, idgen, msgs
+
+when not defined(nimSymbolfiles):
+  template setupModuleCache* = discard
+  template storeNode*(module: PSym; n: PNode) = discard
+  template loadNode*(module: PSym; index: var int): PNode = PNode(nil)
+
+  template getModuleId*(fileIdx: FileIndex; fullpath: string): int = getID()
+
+  template addModuleDep*(module, fileIdx: FileIndex; isIncludeFile: bool) = discard
+
+  template storeRemaining*(module: PSym) = discard
+
+else:
+  include rodimpl