I would probably change this to:

```js
if (opening && closing) {
    _ws.afterIfNeeded(opening, "MemberExpressionOpening");
    _ws.beforeIfNeeded(closing, "MemberExpressionClosing");
}
```

that way if we add more stuff to this block we don't need to change it and `git blame` will work better - we will know when/why it was introduced.