UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

19 lines (18 loc) 616 B
import * as ts from "typescript"; import { Node } from "./Node"; import { Expression } from "./Expression"; export declare const BinaryExpressionBase: typeof Expression; export declare class BinaryExpression extends BinaryExpressionBase<ts.BinaryExpression> { /** * Gets the left side of the binary expression. */ getLeft(): Expression<ts.Expression>; /** * Gets the operator token of the binary expression. */ getOperatorToken(): Node<ts.Token<ts.BinaryOperator>>; /** * Gets the right side of the binary expression. */ getRight(): Expression<ts.Expression>; }