diff --git a/test/cmdlineTests/exp_base_literal/output b/test/cmdlineTests/exp_base_literal/output index 7a7f0647a..c4b71dcac 100644 --- a/test/cmdlineTests/exp_base_literal/output +++ b/test/cmdlineTests/exp_base_literal/output @@ -288,6 +288,7 @@ object "C_81" { power := exp(1, exponent) } + /// @ast-id 80 /// @src 0:96:368 "function f(uint a, uint b, uint c, uint d) public pure returns (uint, int, uint, uint) {..." function fun_f_80(var_a_4, var_b_6, var_c_8, var_d_10) -> var__13, var__15, var__17, var__19 { /// @src 0:160:164 "uint" diff --git a/test/cmdlineTests/name_simplifier/output b/test/cmdlineTests/name_simplifier/output index 703ddc2dc..73c9cc1aa 100644 --- a/test/cmdlineTests/name_simplifier/output +++ b/test/cmdlineTests/name_simplifier/output @@ -105,7 +105,7 @@ object "C_59" { mstore(4, 0x32) revert(0, 0x24) } - /// @src 0:381:623 "function sumArray(S[] memory _s) public returns (uint, string memory) {..." + /// @ast-id 58 @src 0:381:623 "function sumArray(S[] memory _s) public returns (uint, string memory) {..." function fun_sumArray(var_s_mpos) -> var, var_mpos { /// @src 0:346:625 "contract C {..." diff --git a/test/cmdlineTests/revert_strings/output b/test/cmdlineTests/revert_strings/output index df0029e63..718cf0ba9 100644 --- a/test/cmdlineTests/revert_strings/output +++ b/test/cmdlineTests/revert_strings/output @@ -357,6 +357,7 @@ object "C_15" { } + /// @ast-id 14 /// @src 0:93:145 "function f(uint[][] memory, E e) public pure {..." function fun_f_14(var__7_mpos, var_e_10) { diff --git a/test/cmdlineTests/standard_irOptimized_requested/output.json b/test/cmdlineTests/standard_irOptimized_requested/output.json index 696a03573..c636adcc4 100644 --- a/test/cmdlineTests/standard_irOptimized_requested/output.json +++ b/test/cmdlineTests/standard_irOptimized_requested/output.json @@ -68,7 +68,7 @@ object \"C_7\" { { tail := add(headStart, 0) } function revert_error_42b3090547df1d2001c96683413b8cf91c1b902ef5e3cb8d9f6f304cf7446f74() { revert(0, 0) } - /// @src 0:92:119 \"function f() public pure {}\" + /// @ast-id 6 @src 0:92:119 \"function f() public pure {}\" function fun_f_6() { } } diff --git a/test/cmdlineTests/standard_ir_requested/output.json b/test/cmdlineTests/standard_ir_requested/output.json index a056672b9..2c01878f3 100644 --- a/test/cmdlineTests/standard_ir_requested/output.json +++ b/test/cmdlineTests/standard_ir_requested/output.json @@ -98,6 +98,7 @@ object \"C_7\" { revert(0, 0) } + /// @ast-id 6 /// @src 0:92:119 \"function f() public pure {}\" function fun_f_6() { diff --git a/test/cmdlineTests/standard_viair_requested/output.json b/test/cmdlineTests/standard_viair_requested/output.json index 31ab3de5e..9ae88b90c 100644 --- a/test/cmdlineTests/standard_viair_requested/output.json +++ b/test/cmdlineTests/standard_viair_requested/output.json @@ -187,6 +187,7 @@ object \"D_16\" { revert(pos, returndatasize()) } + /// @ast-id 15 /// @src 0:106:144 \"function f() public { C c = new C(); }\" function fun_f_15() { diff --git a/test/cmdlineTests/viair_abicoder_v1/output b/test/cmdlineTests/viair_abicoder_v1/output index 3a0d4744b..18d02a0e9 100644 --- a/test/cmdlineTests/viair_abicoder_v1/output +++ b/test/cmdlineTests/viair_abicoder_v1/output @@ -113,6 +113,7 @@ object "test_11" { ret := 0 } + /// @ast-id 10 /// @src 0:99:167 "function f() public pure returns (bool) {..." function fun_f_10() -> var__5 { /// @src 0:133:137 "bool" diff --git a/test/cmdlineTests/yul_source_locations/output.json b/test/cmdlineTests/yul_source_locations/output.json index 0839fb1f3..8d0cd3c11 100644 --- a/test/cmdlineTests/yul_source_locations/output.json +++ b/test/cmdlineTests/yul_source_locations/output.json @@ -135,6 +135,7 @@ object \"C_54\" { sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0))) } + /// @ast-id 20 /// @src 0:175:223 \"constructor(int _init)...\" function constructor_C_54(var__init_12) { @@ -267,6 +268,7 @@ object \"C_54\" { } + /// @ast-id 10 /// @src 0:152:171 \"int public stateVar\" function getter_fun_stateVar_10() -> ret { @@ -325,6 +327,7 @@ object \"C_54\" { sum := add(x, y) } + /// @ast-id 30 /// @src 0:226:302 \"function f() external pure returns (int)...\" function fun_f_30() -> var__23 { /// @src 0:262:265 \"int\" @@ -395,6 +398,7 @@ object \"C_54\" { sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0))) } + /// @ast-id 37 /// @src 0:304:341 \"modifier m()...\" function modifier_m_40(var__42) -> _5 { _5 := var__42 @@ -539,6 +543,7 @@ object \"C_54\" { } /// @src 0:79:428 \"contract C...\" + /// @ast-id 53 /// @src 0:343:426 \"function f2() m public returns (int)...\" function fun_f2_53() -> var__42 { /// @src 0:375:378 \"int\" @@ -731,6 +736,7 @@ object \"D_72\" { sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0))) } + /// @ast-id 71 /// @src 1:113:164 \"constructor(int _init2)...\" function constructor_D_72(var__init2_63) { /// @src 1:107:108 \"3\" @@ -760,6 +766,7 @@ object \"D_72\" { converted := cleanup_t_int256(identity(cleanup_t_rational_42_by_1(value))) } + /// @ast-id 20 /// @src 0:175:223 \"constructor(int _init)...\" function constructor_C_54(var__init_12) { @@ -892,6 +899,7 @@ object \"D_72\" { } + /// @ast-id 10 /// @src 0:152:171 \"int public stateVar\" function getter_fun_stateVar_10() -> ret { @@ -950,6 +958,7 @@ object \"D_72\" { sum := add(x, y) } + /// @ast-id 30 /// @src 0:226:302 \"function f() external pure returns (int)...\" function fun_f_30() -> var__23 { /// @src 0:262:265 \"int\" @@ -1020,6 +1029,7 @@ object \"D_72\" { sstore(slot, update_byte_slice_32_shift_0(sload(slot), prepare_store_t_int256(convertedValue_0))) } + /// @ast-id 37 /// @src 0:304:341 \"modifier m()...\" function modifier_m_40(var__42) -> _5 { _5 := var__42 @@ -1164,6 +1174,7 @@ object \"D_72\" { } /// @src 1:91:166 \"contract D is C(3)...\" + /// @ast-id 53 /// @src 0:343:426 \"function f2() m public returns (int)...\" function fun_f2_53() -> var__42 { /// @src 0:375:378 \"int\" diff --git a/test/cmdlineTests/yul_source_locations_code_snippet_escaping/output b/test/cmdlineTests/yul_source_locations_code_snippet_escaping/output index 6563ceb3e..9fea7f8cc 100644 --- a/test/cmdlineTests/yul_source_locations_code_snippet_escaping/output +++ b/test/cmdlineTests/yul_source_locations_code_snippet_escaping/output @@ -333,6 +333,7 @@ object "D_27" { converted := copy_literal_to_memory_5bde9a896e3f09acac1496d16642fcdd887d2a000bf1ab18bdff3f17b91e320b() } + /// @ast-id 26 /// @src 0:336:597 "function f() /* @use-src 0:\"input.sol\", 1:\"#utility.yul\" @ast-id 15 *\/ public returns (string memory) { C c = new /// @src 0:149:156 \"new C()\"..." function fun_f_26() -> var__5_mpos { /// @src 0:423:436 "string memory" diff --git a/test/cmdlineTests/yul_string_format_ascii/output.json b/test/cmdlineTests/yul_string_format_ascii/output.json index 221c9d306..f68f984c7 100644 --- a/test/cmdlineTests/yul_string_format_ascii/output.json +++ b/test/cmdlineTests/yul_string_format_ascii/output.json @@ -192,6 +192,7 @@ object \"C_11\" { converted := copy_literal_to_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21() } + /// @ast-id 10 /// @src 0:91:162 \"function f() external pure returns (string memory) { return \\\"abcabc\\\"; }\" function fun_f_10() -> var__5_mpos { /// @src 0:127:140 \"string memory\" diff --git a/test/cmdlineTests/yul_string_format_ascii_bytes32/output.json b/test/cmdlineTests/yul_string_format_ascii_bytes32/output.json index 0c8fbe701..e2757135e 100644 --- a/test/cmdlineTests/yul_string_format_ascii_bytes32/output.json +++ b/test/cmdlineTests/yul_string_format_ascii_bytes32/output.json @@ -116,6 +116,7 @@ object \"C_11\" { converted := 0x6162636162630000000000000000000000000000000000000000000000000000 } + /// @ast-id 10 /// @src 0:91:156 \"function f() external pure returns (bytes32) { return \\\"abcabc\\\"; }\" function fun_f_10() -> var__5 { /// @src 0:127:134 \"bytes32\" diff --git a/test/cmdlineTests/yul_string_format_ascii_bytes32_from_number/output.json b/test/cmdlineTests/yul_string_format_ascii_bytes32_from_number/output.json index f495dc98a..c977d791d 100644 --- a/test/cmdlineTests/yul_string_format_ascii_bytes32_from_number/output.json +++ b/test/cmdlineTests/yul_string_format_ascii_bytes32_from_number/output.json @@ -127,6 +127,7 @@ object \"C_11\" { converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_1633837924_by_1(value))) } + /// @ast-id 10 /// @src 0:91:157 \"function f() external pure returns (bytes4) { return 0x61626364; }\" function fun_f_10() -> var__5 { /// @src 0:127:133 \"bytes4\" diff --git a/test/cmdlineTests/yul_string_format_ascii_long/output.json b/test/cmdlineTests/yul_string_format_ascii_long/output.json index c32952157..19428f29d 100644 --- a/test/cmdlineTests/yul_string_format_ascii_long/output.json +++ b/test/cmdlineTests/yul_string_format_ascii_long/output.json @@ -196,6 +196,7 @@ object \"C_11\" { converted := copy_literal_to_memory_d6604f85ac07e2b33103a620b3d3d75b0473c7214912beded67b9b624d41c571() } + /// @ast-id 10 /// @src 0:91:241 \"function f() external pure returns (string memory) { return \\\"abcdabcdcafecafeabcdabcdcafecafeffffzzzzoooo0123456789,.<,>.?:;'[{]}|`~!@#$%^&*()-_=+\\\"; }\" function fun_f_10() -> var__5_mpos { /// @src 0:127:140 \"string memory\" diff --git a/test/cmdlineTests/yul_string_format_hex/output.json b/test/cmdlineTests/yul_string_format_hex/output.json index 98e3c8e46..b17922a55 100644 --- a/test/cmdlineTests/yul_string_format_hex/output.json +++ b/test/cmdlineTests/yul_string_format_hex/output.json @@ -127,6 +127,7 @@ object \"C_11\" { converted := cleanup_t_bytes4(shift_left_224(cleanup_t_rational_2864434397_by_1(value))) } + /// @ast-id 10 /// @src 0:91:157 \"function f() external pure returns (bytes4) { return 0xaabbccdd; }\" function fun_f_10() -> var__5 { /// @src 0:127:133 \"bytes4\"