expr => untyped; stmt => typed (#14804)

* expr => untyped; stmt => typed

* changelog + comment
This commit is contained in:
Timothee Cour 2020-06-25 01:22:08 -07:00 • committed by GitHub
commit 0c56eeda0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -93,8 +93,8 @@ proc mapTypeToAstX(cache: IdentCache; t: PType; info: TLineInfo;
of tyBool: result = atomicType("bool", mBool)
of tyChar: result = atomicType("char", mChar)
of tyNil: result = atomicType("nil", mNil)
of tyUntyped: result = atomicType("expr", mExpr)
of tyTyped: result = atomicType("stmt", mStmt)
of tyUntyped: result = atomicType("untyped", mExpr)
of tyTyped: result = atomicType("typed", mStmt)
of tyVoid: result = atomicType("void", mVoid)
of tyEmpty: result = atomicType("empty", mNone)
of tyUncheckedArray: