Skip to content

Commit f6a6a3d

Browse files
lucasborinLucas Borin
andauthored
use native *_wa variables (#475)
* resolves #474 * changelog * forcing commit * restore Co-authored-by: Lucas Borin <5233413+lucasborin@users.noreply.github.co>
1 parent db77bc3 commit f6a6a3d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Legend
1818

1919
2021-08-XX v.1.16.0
2020
------------------
21+
* Use native *_wa variables (#474)
2122
* Refactoring (#436,#452,#458)
2223
* Cannot run unit tests on 752 (#461)
2324
* Profiles: Allow Exemptions (#447)

src/foundation/y_check_base.clas.abap

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,27 +251,26 @@ CLASS Y_CHECK_BASE IMPLEMENTATION.
251251
METHOD inspect_structures.
252252
DATA(structures) = FILTER #( ref_scan->structures IN relevant_structure_types WHERE type = table_line ).
253253

254-
LOOP AT structures ASSIGNING FIELD-SYMBOL(<structure>).
255-
inspect_statements( <structure> ).
254+
LOOP AT structures INTO structure_wa.
255+
inspect_statements( structure_wa ).
256256
ENDLOOP.
257257

258258
structures = FILTER #( ref_scan->structures IN relevant_statement_types WHERE stmnt_type = table_line ).
259259

260-
LOOP AT structures ASSIGNING <structure>.
261-
inspect_statements( <structure> ).
260+
LOOP AT structures INTO structure_wa.
261+
inspect_statements( structure_wa ).
262262
ENDLOOP.
263263
ENDMETHOD.
264264

265265

266266
METHOD inspect_statements.
267267
DATA(index) = structure-stmnt_from.
268268

269-
LOOP AT ref_scan->statements ASSIGNING FIELD-SYMBOL(<statement>)
270-
FROM structure-stmnt_from
271-
TO structure-stmnt_to.
269+
LOOP AT ref_scan->statements INTO statement_wa
270+
FROM structure-stmnt_from TO structure-stmnt_to.
272271
inspect_tokens( index = index
273272
structure = structure
274-
statement = <statement> ).
273+
statement = statement_wa ).
275274

276275
index = index + 1.
277276
ENDLOOP.

0 commit comments

Comments
 (0)