From 3855f1adbba6ffcb7486639e3bab04268c848ed9 Mon Sep 17 00:00:00 2001 From: Andrey Pfau Date: Wed, 24 Jan 2024 16:02:01 +0400 Subject: [PATCH] 2.0.5 (#159) --- CHANGELOG.md | 4 ++++ gradle.properties | 2 +- src/main/kotlin/org/ton/intellij/func/psi/FuncPsiFactory.kt | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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";