typeof(voidStmt) now works (#17807)
* `typeof(voidStmt)` now works * remove typeOrVoid * add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193 * fixup * changelog [skip ci] * fixup
This commit is contained in:
parent
3516f57e17
commit
2abc936d51
8 changed files with 78 additions and 12 deletions
|
|
@ -90,6 +90,9 @@ type
|
|||
TContext* = object of TPassContext # a context represents the module
|
||||
# that is currently being compiled
|
||||
enforceVoidContext*: PType
|
||||
# for `if cond: stmt else: foo`, `foo` will be evaluated under
|
||||
# enforceVoidContext != nil
|
||||
voidType*: PType # for typeof(stmt)
|
||||
module*: PSym # the module sym belonging to the context
|
||||
currentScope*: PScope # current scope
|
||||
moduleScope*: PScope # scope for modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue