Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

getColonToken(): Node<ts.ColonToken>

Gets the colon token of the conditional expression.

getCondition(): Expression

Gets the condition of the conditional expression.

getParent(): NodeParentType<ts.ConditionalExpression>
getParentOrThrow(): NonNullable<NodeParentType<ts.ConditionalExpression>>
getQuestionToken(): Node<ts.QuestionToken>

Gets the question token of the conditional expression.

getWhenFalse(): Expression

Gets the when false expression of the conditional expression.

getWhenTrue(): Expression

Gets the when true expression of the conditional expression.