import { ts } from "@ts-morph/common";
import { AssignmentExpression } from "../AssignmentExpression";
import { ObjectLiteralExpression } from "./ObjectLiteralExpression";

export const ObjectDestructuringAssignmentBase = AssignmentExpression;
export class ObjectDestructuringAssignment extends ObjectDestructuringAssignmentBase<ts.ObjectDestructuringAssignment> {
  /**
   * Gets the left object literal expression of the object destructuring assignment.
   */
  getLeft(): ObjectLiteralExpression {
    return this._getNodeFromCompilerNode(this.compilerNode.left);
  }
}
