@abaplint/core 2.120.82 → 2.120.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,14 +55,17 @@ class UnnecessaryCopy {
55
55
  extendedInformation: `Reports DATA(a) = b. when all of the following hold:
56
56
 
57
57
  * a is a local variable of a METHOD, FORM or FUNCTION, and has exactly one more reference: a read,
58
- which does not take its address, bind a field symbol to it, or pass it to USING, CHANGING or EXPORTING
58
+ which does not take its address, bind a field symbol to it, or pass it to USING or CHANGING
59
59
  * b is a plain data object: variable, constant, attribute, or a chain of components and attributes,
60
60
  without calls, offsets, table expressions, field symbols or ->*
61
61
  * the declaration is executed before the read on every path: the read is in the block of the declaration
62
62
  or a nested block, and both are in the same loop
63
- * b keeps its value from the declaration until the read: for a local b, no write to it and its address is
64
- never taken; for other b, in addition no method, function or form call and no write except to local
65
- variables, by value parameters and RETURNING in between
63
+ * b keeps its value from the declaration until the read: for a local b, or a pass-by-value or RETURNING
64
+ parameter b of a method or form, no write to it and its address is never taken; for other b, in addition no
65
+ method, function or form call and no write except to local variables, by value parameters and RETURNING in
66
+ between, and in the statement of the read no call before the read. A method called in that statement could
67
+ change b while it reads the parameter that b is passed to by reference, so the read may only be the receiver
68
+ of the call, or the actual parameter of a pass-by-value parameter of the only method called in the statement
66
69
 
67
70
  a has the type of b, so reading b instead does not change any conversion.
68
71
  A constant b read in IF, ELSEIF, WHILE, CHECK, CASE or WHEN is not reported, see constant_condition.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.82",
3
+ "version": "2.120.83",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",