lazy loading of body ast implemented
This commit is contained in:
parent
78f37b2336
commit
c517639155
21 changed files with 152 additions and 83 deletions
|
|
@ -333,6 +333,11 @@ type
|
|||
# mean: never)
|
||||
TSymKinds* = set[TSymKind]
|
||||
|
||||
const
|
||||
routineKinds* = {skProc, skMethod, skIterator, skConverter,
|
||||
skMacro, skTemplate}
|
||||
|
||||
type
|
||||
TMagic* = enum # symbols that require compiler magic:
|
||||
mNone, mDefined, mDefinedInScope, mLow, mHigh, mSizeOf, mIs, mOf,
|
||||
mEcho, mShallowCopy, mSlurp,
|
||||
|
|
@ -579,7 +584,7 @@ const
|
|||
genericParamsPos* = 1
|
||||
paramsPos* = 2
|
||||
pragmasPos* = 3
|
||||
codePos* = 4
|
||||
bodyPos* = 4 # position of body; use rodread.getBody() instead!
|
||||
resultPos* = 5
|
||||
dispatcherPos* = 6 # caution: if method has no 'result' it can be position 5!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue