You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash functionstartMe() {
local data
echo"hello world">>$dataecho"xx:$data"
}
startMe
data cannot be marked - local variables in functions are currently not recognized
Wanted
local xyz and also local xyz=... shall be recognized as local variables
These local variables shall only be marked inside the function!
Solution
if not already done keep "isLocal" flag inside BashVariable. So we know if its a local variable or not
introduce a getFunction():BashFunction method. For global variables this will return null
getUsages() for a local variable may only return the usages inside the function - this can be done by not iterating over the complete tokens, but only those inside the function (this information should be already available)
The text was updated successfully, but these errors were encountered:
Situation
data
cannot be marked - local variables in functions are currently not recognizedWanted
local xyz
and alsolocal xyz=...
shall be recognized as local variablesThese local variables shall only be marked inside the function!
Solution
null
The text was updated successfully, but these errors were encountered: