Module

x/ts_morph/mod.ts>ConditionalExpression

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ConditionalExpression
extends ConditionalExpressionBase<ts.ConditionalExpression>
import { ConditionalExpression } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";

Methods

getColonToken(): Node<ts.ColonToken>

Gets the colon token of the conditional expression.

Gets the condition of the conditional expression.

getParent(): NodeParentType<ts.ConditionalExpression>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ConditionalExpression>>
getQuestionToken(): Node<ts.QuestionToken>

Gets the question token of the conditional expression.

Gets the when false expression of the conditional expression.

Gets the when true expression of the conditional expression.