Whether the given position is immediately surrounded by parenthesis.
int $startPos Start position:
int $endPos End position:
public function haveParens(int $startPos, int $endPos) : bool { return $this->haveTokenImmediatelyBefore($startPos, '(') && $this->haveTokenImmediatelyAfter($endPos, ')'); }