neo-go/pkg/vm/stackitem
Roman Khimov 1b83dc2476 *: improve for loop syntax
Mostly it's about Go 1.22+ syntax with ranging over integers, but it also
prefers ranging over slices where possible (it makes code a little better to
read).

Notice that we have a number of dangerous loops where slices are mutated
during loop execution, many of these can't be converted since we need proper
length evalutation at every iteration.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-08-30 21:45:18 +03:00
..
immutable.go vm: support immutable compound types 2022-05-31 08:07:50 +03:00
item.go *: use slices.Index/slices.Contains where appropriate 2024-08-27 08:24:52 +03:00
item_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
json.go *: use multierror wrapping where possible 2024-03-05 13:54:10 +03:00
json_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
reference.go vm: embed reference counter in compound items 2021-08-13 14:41:26 +03:00
serialization.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
serialization_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
type.go vm: stringify InteropInterface stackitem type as InteropInterface 2022-05-25 13:20:21 +03:00
type_test.go stackitem: allow to convert type from string 2020-07-31 16:07:16 +03:00