mirror of
https://github.com/irmen/prog8.git
synced 2026-10-24 18:02:40 +00:00
improved SimpleAST optimizer
This commit is contained in:
1 parent
00bae6e746
commit
2bd7f3e210
2 files changed
+1028
-38
No files matched your search
@@ -361,6 +361,8 @@ class DataType private constructor(val base: BaseDataType, val sub: BaseDataType
|
||||
val isNumericOrBool = base.isNumericOrBool
|
||||
val isSigned = base.isSigned
|
||||
val isUnsigned = !base.isSigned
|
||||
val isSignedInteger = isSigned && isInteger
|
||||
val isUnsignedInteger = isUnsigned && isInteger
|
||||
val isArray = base.isArray
|
||||
val isPointer = base.isPointer
|
||||
val isPointerToByte = base.isPointer && sub?.isByteOrBool==true
|
||||
|
||||
Reference in new issue
Block a user