function inConstructor(context, node) {
  let scope = getScope(context, node);
  while (scope) {
    // @ts-ignore
    if (scope.block && scope.block.parent && scope.block.parent.kind === 'constructor') {
      return true;
    }
    scope = scope.upper;
  }
  return false;
}
Check if we are in a class constructor
@param {Context} context
@param {ASTNode} node The AST node being checked.
@return {boolean}