summary refs log tree commit diff stats
path: root/compiler/semdata.nim
diff options
context:
space:
mode:
authorMichael Voronin <survivor.mail@gmail.com>2018-04-25 12:26:59 +0300
committerGitHub <noreply@github.com>2018-04-25 12:26:59 +0300
commit3949c9f977378ea3ab2b3c750f4dc2bc8d853022 (patch)
treee70fadb316aa330bd22694a71568316a103fecdd /compiler/semdata.nim
parent17d3c6f3f32649c7cc295e964e2fcc3af99eac20 (diff)
parente931f3b5a9643e0d7ac45b88b0bddb32dda4c540 (diff)
downloadNim-3949c9f977378ea3ab2b3c750f4dc2bc8d853022.tar.gz
Merge pull request #2 from nim-lang/devel
Pull 25-04-18
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r--compiler/semdata.nim6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim
index bcc1bba15..8159abf8f 100644
--- a/compiler/semdata.nim
+++ b/compiler/semdata.nim
@@ -130,6 +130,7 @@ type
     signatures*: TStrTable
     recursiveDep*: string
     suggestionsMade*: bool
+    features*: set[Feature]
     inTypeContext*: int
     typesWithOps*: seq[(PType, PType)] #\
       # We need to instantiate the type bound ops lazily after
@@ -225,7 +226,7 @@ proc newContext*(graph: ModuleGraph; module: PSym; cache: IdentCache): PContext
   result.graph = graph
   initStrTable(result.signatures)
   result.typesWithOps = @[]
-
+  result.features = graph.config.features
 
 proc inclSym(sq: var TSymSeq, s: PSym) =
   var L = len(sq)
@@ -398,6 +399,3 @@ proc checkMinSonsLen*(n: PNode, length: int) =
 
 proc isTopLevel*(c: PContext): bool {.inline.} =
   result = c.currentScope.depthLevel <= 2
-
-proc experimentalMode*(c: PContext): bool {.inline.} =
-  result = gExperimentalMode or sfExperimental in c.module.flags