neo-go/pkg/compiler/testdata
Anna Shaleva 800321db06 compiler: rename named unused global vars to "_"
So that (*codegen).Visit is able to omit code generation for these
unused global vars. The most tricky part is to detect unused global
variables, it is done in several steps:
1. Collect the set of named used/unused global vars.
2. Collect the set of globally declared expressions that contain
function calls.
3. Pick up global vars from the set made at step 2.
4. Traverse used functions and puck up those global vars that are used
from these functions.
5. Rename all globals that are presented in the set made at step 1
but are not presented in the set made on step 3 or step 4.
2022-09-01 13:39:19 +03:00
..
bar compiler: move tests from vm/tests 2019-12-23 17:05:34 +03:00
block compiler: process interop together with package 2020-06-09 12:41:33 +03:00
compile *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
constonly compiler: fix global constant traversal 2020-12-10 13:45:10 +03:00
foo compiler: rename named unused global vars to "_" 2022-09-01 13:39:19 +03:00
foobar compiler: move tests from vm/tests 2019-12-23 17:05:34 +03:00
globalvar compiler: rename named unused global vars to "_" 2022-09-01 13:39:19 +03:00
inline compiler: allow to use conditional returns in inlined functions 2022-07-12 12:43:31 +03:00
method compiler: allow to call methods on return values 2022-07-11 19:28:15 +03:00
multi *: gofmt -s 2020-12-28 17:23:30 +03:00
nestedcall compiler: set type information during traversal, fix #2231 2021-10-25 13:55:55 +03:00
notify compiler: do not emit code for unused imported functions 2021-10-13 15:56:07 +03:00
pkg1 compiler: process packages in deterministic order 2020-08-05 11:00:25 +03:00
pkg2 compiler: process packages in deterministic order 2020-08-05 11:00:25 +03:00
pkg3 compiler: initialize packages according to go spec 2020-08-05 11:15:07 +03:00
runh compiler: check for contract permissions 2021-06-28 11:49:29 +03:00
strange compiler: allow to use exported variables 2020-07-31 12:06:42 +03:00
types compiler: allow conversion to types from external packages 2021-02-08 11:02:45 +03:00
util compiler: process interop together with package 2020-06-09 12:41:33 +03:00