neo-go/pkg/compiler
Evgenii Stratonikov 78cefca5c9 compiler: Initialize named returns to default values
Make them behave as locals. We must initialize them at the start
because the default value could also be used inside the function body.

Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
2024-04-04 18:00:26 +03:00
..
testdata compiler: check for pkg nilness, fix #3202 2023-11-21 21:47:51 +03:00
analysis.go compiler: check for pkg nilness, fix #3202 2023-11-21 21:47:51 +03:00
assign_test.go compiler: don't use (*VM).Istack when it's not needed 2022-11-17 20:46:06 +03:00
binary_expr_test.go compiler: don't use (*VM).Istack when it's not needed 2022-11-17 20:46:06 +03:00
byte_conversion_test.go compiler: allow to convert string constants to []byte 2020-01-27 15:29:52 +03:00
codegen.go compiler: Initialize named returns to default values 2024-04-04 18:00:26 +03:00
codegen_test.go compiler: allow to use += on strings 2020-08-24 09:44:44 +03:00
compiler.go Merge pull request #3218 from nspcc-dev/serialization-limits 2023-11-22 21:28:25 +03:00
compiler_test.go compiler: perform NEF size check on serialization 2023-11-20 15:14:05 +03:00
constant_test.go compiler/interop: replace int64 with int 2021-03-04 13:20:43 +03:00
convert_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
debug.go compiler: walk over functions in reproducible order, fix #3219 2023-11-23 13:21:51 +03:00
debug_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
defer_test.go compiler: properly process defer in conditional statements 2022-02-04 11:04:03 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
for_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
func_scope.go compiler: properly retrieve name of generic functions 2023-08-18 16:00:54 +03:00
function_call_test.go Merge pull request #2941 from nspcc-dev/drop-deprecated-0.102.0 2023-04-06 10:42:26 +03:00
generics_test.go compiler: disallow generic type decl 2023-08-18 16:02:40 +03:00
global_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
if_test.go compiler: do not DROP unary expression value inside IF stmt 2020-10-13 19:14:44 +03:00
import_test.go compiler: check for pkg nilness, fix #3202 2023-11-21 21:47:51 +03:00
init_test.go compiler: do not emit code for unnamed unused variables 2022-09-01 09:18:56 +03:00
inline.go smartconract: generate RPC binding wrappers for events 2023-05-31 15:52:39 +03:00
inline_test.go compiler: add test for foreign function inlining 2022-09-27 15:36:06 +03:00
interop_test.go core, interop: add strLen method for native StdLib contract 2023-11-20 19:23:33 +03:00
jumps_test.go compiler: reduce instructions in 2 stages 2022-07-12 13:16:33 +03:00
lambda_test.go compiler: support calling function literals 2020-08-27 10:28:50 +03:00
limit_test.go compiler: emit integers correctly 2020-01-28 16:39:19 +03:00
map_test.go compiler: support delete() builtin 2020-09-06 15:49:41 +03:00
native_test.go interop: add keccak256 implementation 2024-03-22 17:15:43 +03:00
nilcheck_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
numeric_test.go compiler: Fix emitting big uint64 constants 2023-10-05 16:03:57 +03:00
panic_test.go compiler: do not log panic message 2020-08-27 10:28:50 +03:00
pointer_test.go compiler: copy structs when passing as arguments 2020-08-05 13:14:38 +03:00
return_test.go compiler: Initialize named returns to default values 2024-04-04 18:00:26 +03:00
slice_test.go compiler: group small tests in a single file 2022-03-04 17:55:33 +03:00
struct_test.go compiler: group small tests in a single file 2022-03-04 17:55:33 +03:00
switch_test.go compiler: group small tests in a single file 2022-03-04 17:55:33 +03:00
syscall_test.go compiler: add tests for System.Runtime.CurrentSigners 2023-11-20 14:49:07 +03:00
type_test.go compiler: support non-struct methods 2020-05-19 16:40:26 +03:00
types.go compiler: update x/tools package 2022-01-20 13:21:26 +03:00
vardecl_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
vars.go compiler: allow to use multiple underscores in func arguments 2021-10-09 13:23:11 +03:00
verify_test.go compiler: do not emit code for unnamed unused variables 2022-09-01 09:18:56 +03:00
vm_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00