further improvements for thread analysis
This commit is contained in:
parent
9f9f0f0818
commit
ca637c019c
7 changed files with 36 additions and 17 deletions
|
|
@ -40,6 +40,7 @@ type
|
|||
generics*: PNode # a list of the things to compile; list of
|
||||
# nkExprEqExpr nodes which contain the
|
||||
# generic symbol and the instantiated symbol
|
||||
threadEntries*: PNode # list of thread entries to check
|
||||
lastGenericIdx*: int # used for the generics stack
|
||||
tab*: TSymTab # each module has its own symbol table
|
||||
AmbiguousSymbols*: TIntSet # ids of all ambiguous symbols (cannot
|
||||
|
|
@ -123,6 +124,7 @@ proc newContext(module: PSym, nimfile: string): PContext =
|
|||
append(result.optionStack, newOptionEntry())
|
||||
result.module = module
|
||||
result.generics = newNode(nkStmtList)
|
||||
result.threadEntries = newNode(nkStmtList)
|
||||
result.converters = @[]
|
||||
result.filename = nimfile
|
||||
IntSetInit(result.includedFiles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue