split the inline and closure iterators into different symbol kinds for easier discrimination between them
This commit is contained in:
parent
5324c9ebba
commit
862c0ef83d
26 changed files with 110 additions and 84 deletions
|
|
@ -1247,7 +1247,7 @@ proc computeSize(typ: PType): BiggestInt =
|
|||
|
||||
proc getReturnType*(s: PSym): PType =
|
||||
# Obtains the return type of a iterator/proc/macro/template
|
||||
assert s.kind in {skProc, skTemplate, skMacro, skIterator}
|
||||
assert s.kind in skProcKinds
|
||||
result = s.typ.sons[0]
|
||||
|
||||
proc getSize(typ: PType): BiggestInt =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue