A to_callsite WritableProgramData value identifies writable values
consumed by call sites.
Fields
The to_call_site WritableProgramData object has the following
fields:
to_callsite-
A CallsiteSet that identifies call sites of interest.
input-
A ParamIn value that identifies a base value passed into the call site.
path-
(Optional) An array of AccessPathElement values that specify an access path to apply to the base value.
The
pathfield is only allowed for JavaScript uses ofto_callsite WritableProgramData.If no
pathfield is specified, the writable value is the base value indicated by theinputfield. Adding apathfield indicates a writable value along the access path off of the base value.
Examples:
JavaScript example:
{
"to_callsite" : {
"call_on" : {
"read_off_any" : [ { "property" : "exampleCall" } ]
}
},
"input" : "arg1",
"path" : [ { "property" : "f"}, { "property" : "g" } ]
}
The to_callsite WritableProgramData value above will match the
writable value passedInValue.f.g when
passedInValue is passed into this call site:
exampleCall(passedInValue);