markInputBasedOn method
Mark this string as input if other has ALL parts as input.
This is used for operations like split where the resulting parts should
inherit the "taint" of the original string if the original was fully tainted.
Implementation
JinjaString markInputBasedOn(JinjaString other) {
if (other.allPartsAreInput) {
return markInput();
}
return this;
}