diff --git a/CHANGELOG.md b/CHANGELOG.md index e09abf4..e23bd55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # TON Development Changelog +## [2.0.5] + +- fixed builtin functions resolving for `load_int`, `load_uint` + ## [2.0] ### Complete plugin rework diff --git a/gradle.properties b/gradle.properties index 537cebb..42215c8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ org.gradle.jvmargs=-Xmx4096m pluginGroup=org.ton -pluginVersion=2.0.4 +pluginVersion=2.0.5 publishChannel=release publishToken=token enableBuildSearchableOptions=false diff --git a/src/main/kotlin/org/ton/intellij/func/psi/FuncPsiFactory.kt b/src/main/kotlin/org/ton/intellij/func/psi/FuncPsiFactory.kt index a4501bc..be94a73 100644 --- a/src/main/kotlin/org/ton/intellij/func/psi/FuncPsiFactory.kt +++ b/src/main/kotlin/org/ton/intellij/func/psi/FuncPsiFactory.kt @@ -87,9 +87,15 @@ class FuncPsiFactory private constructor(val project: Project) { ;;; Throws exception [`excno`] with parameter [`x`] only if [`cond`] == `0`. forall X -> () throw_arg_unless(X x, int excno, int cond) impure asm "THROWARGANYIFNOT"; + ;;; Loads a signed [`len`]-bit integer from slice [`s`]. + (slice, int) load_int(slice s, int len) asm(s len -> 1 0) "LDIX"; + ;;; Loads a signed [`len`]-bit integer from slice [`s`]. (slice, int) ~load_int(slice s, int len) asm(s len -> 1 0) "LDIX"; + ;;; Loads a unsigned [`len`]-bit integer from slice [`s`]. + (slice, int) load_uint(slice s, int len) asm(s len -> 1 0) "LDUX"; + ;;; Loads a unsigned [`len`]-bit integer from slice [`s`]. (slice, int) ~load_uint(slice s, int len) asm(s len -> 1 0) "LDUX";