-
Notifications
You must be signed in to change notification settings - Fork 413
feat: gno type check #1426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jaekwon
merged 202 commits into
gnolang:master
from
ltzmaxwell:ltzmaxwell/fix/interface_comparison
Jun 19, 2024
Merged
feat: gno type check #1426
Changes from all commits
Commits
Show all changes
202 commits
Select commit
Hold shift + click to select a range
e22a43c
outOfGas log clearly
ltzmaxwell b9aa15e
patch up
ltzmaxwell 9f57ef7
more test, cover more cases
ltzmaxwell 55e3af8
fix assign type check
ltzmaxwell af75c9e
fixup
ltzmaxwell 2603f34
more test
ltzmaxwell 1275f9d
fixup
ltzmaxwell 814354b
make test work
ltzmaxwell 0f53121
fixup
ltzmaxwell ddd2c71
refactor
ltzmaxwell 7acaec6
fixup
ltzmaxwell e291e56
comparable
ltzmaxwell ad87127
compare
ltzmaxwell 7d21ff8
unary
ltzmaxwell 9b0ace9
fixup
ltzmaxwell eed16b7
optimize
ltzmaxwell 1c93d2c
inc,dec
ltzmaxwell 5f0ac87
fixup
ltzmaxwell d6000c5
fixup
ltzmaxwell 812e64d
fixup
ltzmaxwell fe948bb
doc
ltzmaxwell 52d8221
more test
ltzmaxwell ec6fd0e
readme
ltzmaxwell cde9ed5
fixup
ltzmaxwell 80508da
fixup
ltzmaxwell 7af6623
restore unwanted
ltzmaxwell 55e6cc0
restore
ltzmaxwell 6d56167
Merge remote-tracking branch 'upstream/master' into ltzmaxwell/fix/in…
ltzmaxwell fa7f8d4
restore
ltzmaxwell 6a31cb8
restore
ltzmaxwell 0b095c3
restore
ltzmaxwell 34588a1
restore
ltzmaxwell edc8c5b
restore
ltzmaxwell 1513d78
restore
ltzmaxwell 5dbf7f4
sync
ltzmaxwell 9656056
fix inc float
ltzmaxwell fa3acd0
fixup
ltzmaxwell 068e368
fixup
ltzmaxwell 2f4136f
fmt
ltzmaxwell 1497c4a
lint
ltzmaxwell 709e13a
lint
ltzmaxwell 8fd16fc
fix map comparable
ltzmaxwell 8a63e0c
fixup
ltzmaxwell ad8768b
fix slice type
ltzmaxwell 0f828f5
fix comparable
ltzmaxwell 937723e
fixup
ltzmaxwell 218c834
fixup
ltzmaxwell 8c5ce24
fixup
ltzmaxwell abff073
fixup
ltzmaxwell af0de11
fixup
ltzmaxwell e673dac
fixup
ltzmaxwell cfcbdda
restore
ltzmaxwell 268e849
fix shift
ltzmaxwell 097244e
fixup
ltzmaxwell 6858e80
fixup
ltzmaxwell db12d88
tidy
ltzmaxwell fe2cb7d
fixup
ltzmaxwell 5f58979
fixup
ltzmaxwell c936fea
fix special case relate to nil type
ltzmaxwell ee408c2
fixup
ltzmaxwell 2771649
fixup
ltzmaxwell 005b370
fixup
ltzmaxwell c1f4dda
fixup
ltzmaxwell f94e4fd
add test
ltzmaxwell 635decd
fixup
ltzmaxwell 95214af
add new test
ltzmaxwell 7464ac9
fixup
ltzmaxwell 4f370a2
clean
ltzmaxwell 54b255d
add comments
ltzmaxwell 184f526
add comment
ltzmaxwell 6aa1c04
add comments
ltzmaxwell 46ced47
add test
ltzmaxwell 5e9c783
add test
ltzmaxwell 9e47ced
fixup
ltzmaxwell 937a725
update
ltzmaxwell 57bd724
update
ltzmaxwell e9a3a0a
fixup
ltzmaxwell ef21103
fixup
ltzmaxwell 37f00df
improve name
ltzmaxwell 1791a34
fixup
ltzmaxwell 073bd48
fixup
ltzmaxwell df4d4c7
fixup
ltzmaxwell ef25c1f
fixup
ltzmaxwell 6f59149
fixup
ltzmaxwell 33ec34f
fixup
ltzmaxwell 836941d
sync and test
ltzmaxwell 8d3d855
fixup
ltzmaxwell e4e5e2a
check nil
ltzmaxwell 8ee9724
fixup
ltzmaxwell 292b038
clear
ltzmaxwell cd8caa9
fixup
ltzmaxwell 87f3a8e
fixup
ltzmaxwell 792a368
fixup
ltzmaxwell 7a9b8a4
add check
ltzmaxwell 94262aa
clean most debug log, can be revert here
ltzmaxwell afde8b0
escape op on render side
ltzmaxwell 40ec493
migrate logic to type_check.go; move compatibility check as method of…
ltzmaxwell 5f0cf8b
make test pass
ltzmaxwell cbdc979
done refactor to type_checker
ltzmaxwell 118598d
clean
ltzmaxwell 33a3c9d
prepared for split
ltzmaxwell 6d6590a
mv some check logic to type_check
ltzmaxwell 218fff0
fix binary non-const native handling
ltzmaxwell a6838b6
fix compatible check for assign in type_check
ltzmaxwell 4744d09
make rhs native type check in type_check
ltzmaxwell 5631d3a
try handle checking declared type against native interface, temp her…
ltzmaxwell a2862ba
consolidate delay handling for untyped shift expr logic
ltzmaxwell 7bd03e1
cache better; clear unused logic
ltzmaxwell f9517eb
#cherry-pick. rm logic of check declared type against native interfac…
ltzmaxwell 88f20ea
#no cherry pick for shift_expr_typecheck branch! rm most logic for ha…
ltzmaxwell 5da2910
cherry pick this. rm remained logic for check against native interfac…
ltzmaxwell 723aa3b
default cherry pick commit this branch if not marked as not. fixup
ltzmaxwell c93111f
restore typecheck, rm redundant checkAssignableTo, leave it to checkO…
ltzmaxwell 64dc20d
clean
ltzmaxwell a65be41
clean
ltzmaxwell 953765c
clean
ltzmaxwell 6f22a56
split type_compare(wtf) and type(nil)
ltzmaxwell 6908950
restore
ltzmaxwell 0c79c67
split type def on pointer type & clean
ltzmaxwell cc5c8c8
rm no use file
ltzmaxwell 5f9a362
clean
ltzmaxwell cb338ce
for binaryExpr, also check xt
ltzmaxwell d3af8c3
split implicit type conversion feat
ltzmaxwell 5b83cdb
add test
ltzmaxwell 3d148f6
add test
ltzmaxwell 7925202
check bigdec, add comments
ltzmaxwell 2f780d5
clean
ltzmaxwell a89aea3
type check for assignStmt
ltzmaxwell cfe75b7
type check for assignStmt, fixup assertion
ltzmaxwell d427e79
fix render issure with %
ltzmaxwell 4fb88d8
Update gnovm/pkg/gnolang/type_check.go
ltzmaxwell ac6d5cb
Update gnovm/pkg/gnolang/type_check.go
ltzmaxwell 83cacc6
Update gnovm/pkg/gnolang/type_check.go
ltzmaxwell 0cfe9b8
Update gnovm/Makefile
ltzmaxwell bed7e3c
clean
ltzmaxwell 3a827be
Merge remote-tracking branch 'origin/ltzmaxwell/fix/interface_compari…
ltzmaxwell b7e6f5a
update
ltzmaxwell 0d767a4
fix assertComparable
ltzmaxwell 7fe0504
simplify assertComparable logic
ltzmaxwell 681f285
Update gnovm/pkg/gnolang/preprocess.go
ltzmaxwell 603c39a
Update gnovm/pkg/gnolang/type_check.go
ltzmaxwell 1919aa3
Update gnovm/pkg/gnolang/type_check.go
ltzmaxwell 7699ab0
decouple checkOrConvertType
ltzmaxwell 8b7aaa3
update
ltzmaxwell 5f95c6c
improve assertComparable, rm interface{}(nil) test file
ltzmaxwell 1caac46
fix CI
ltzmaxwell f4c9e66
revert unuseful logic
ltzmaxwell 850e4e3
more check
ltzmaxwell 7467a2d
clean
ltzmaxwell 4b13980
not check on define in assignment
ltzmaxwell 63fd8cc
rm similar test file with multi operators
ltzmaxwell abc1677
clean
ltzmaxwell 3c3d939
simplify binary type check
ltzmaxwell f6764d9
clear
ltzmaxwell 986d8ec
fixup
ltzmaxwell 97f46cd
fixup
ltzmaxwell 1819db7
assert valie left value
ltzmaxwell d00e506
merge master and resolve conflicts
ltzmaxwell a167478
fix linter
ltzmaxwell ff437b4
fixup
ltzmaxwell 500f984
resolve comments
ltzmaxwell 1eabcce
simplify cmpSpecificity
ltzmaxwell 1e72c38
fix range assign
ltzmaxwell ff57c36
revert
ltzmaxwell 77f933e
merge master
ltzmaxwell 9137217
fixup
ltzmaxwell 9a96287
fixup, revert recursive check
ltzmaxwell 1d65b4c
fixup
ltzmaxwell 26efc94
optimize
ltzmaxwell 9a2acb9
improve readibility for recursive call
ltzmaxwell 07d52f9
fix lint
ltzmaxwell 9af1aa7
fixup
ltzmaxwell bf202eb
merger master
ltzmaxwell 627ef95
fix
ltzmaxwell 329ddb8
Revert "merger master"
ltzmaxwell 168ea29
merge master
ltzmaxwell 641cd7f
make test pass
ltzmaxwell 65a7ca3
rename test files
ltzmaxwell c0a76c2
clear log
ltzmaxwell 01648dd
rename
ltzmaxwell 9bd5c2f
del
ltzmaxwell 815c8d5
Merge remote-tracking branch 'upstream/master' into ltzmaxwell/fix/in…
ltzmaxwell 649d65d
better msg
ltzmaxwell 950801a
bypass
ltzmaxwell 0530f41
fix import
ltzmaxwell 2512070
fixup tests zrealm12
ltzmaxwell 33357f9
print
ltzmaxwell 646743e
Merge branch 'fix/maxwell/zrealm12' into ltzmaxwell/fix/interface_com…
ltzmaxwell c1162db
fixup
ltzmaxwell fbe31dc
fix linter
ltzmaxwell b0850b2
fixup
ltzmaxwell 4292a3f
...
jaekwon 2f5b613
...
jaekwon 0891153
switch test mode
jaekwon c1abcf7
fix check on both typed, no conversion
ltzmaxwell 98ad2b2
unified/correct check logic for both typed
ltzmaxwell 8c2a3cf
fixup checkOrConvertType
ltzmaxwell d92c4eb
more comment
ltzmaxwell bb20640
...
jaekwon ea969b3
Revert "fix: default untyped to uint when necessary (#2024)"
jaekwon a1278f6
Merge branch 'ltzmaxwell/fix/interface_comparison'
jaekwon 0ced1b7
...
jaekwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.