isFunctionCallAllowedBefore
The same rule as FUNCTION_CALL_PATTERN_BEFORE, as a predicate: the two must agree, since the compiler lexes with this one and the language server matches with that one.
Return
whether a call may start there given what precedes it
Parameters
source
text to inspect
index
index the call would start at