new BasicEvaluatedExpression(): BasicEvaluatedExpression<BasicEvaluatedExpression><any[]><bigint><boolean><boolean><object><object><object><string><boolean><number><BasicEvaluatedExpression[]><BasicEvaluatedExpression>
|
<null><BasicEvaluatedExpression>
|
<null><BasicEvaluatedExpression[]><RegExp><string><boolean><string><boolean><number><BasicEvaluatedExpression[]>addOptions(options): BasicEvaluatedExpression<BasicEvaluatedExpression[]><BasicEvaluatedExpression>Adds options to a conditional expression.
asBool(): boolean | undefined<boolean>
|
<undefined>Creates a boolean representation of this evaluated expression.
asCompileTimeValue(): string | number | bigint | boolean | RegExp | any[] | null | undefinedGets the compile-time value of the expression
asNullish(): boolean | undefined<boolean>
|
<undefined>Creates a nullish coalescing representation of this evaluated expression.
asString(): string | undefined<string>
|
<undefined>Creates a string representation of this evaluated expression.
couldHaveSideEffects(): boolean<boolean>Can this expression have side effects?
isArray(): boolean<boolean>isBigInt(): boolean<boolean>isBoolean(): boolean<boolean>isCompileTimeValue(): boolean<boolean>Is expression a runtime or compile-time value?
isConditional(): boolean<boolean>isConstArray(): boolean<boolean>isFalsy(): boolean<boolean>isIdentifier(): boolean<boolean>isNull(): boolean<boolean>isNullish(): boolean | undefined<boolean>
|
<undefined>isNumber(): boolean<boolean>isPrimitiveType(): boolean | undefined<boolean>
|
<undefined>Is expression a primitive or an object type value?
isRegExp(): boolean<boolean>isString(): boolean<boolean>isTemplateString(): boolean<boolean>isTruthy(): boolean<boolean>isUndefined(): boolean<boolean>isUnknown(): boolean<boolean>isWrapped(): boolean<boolean>setArray(array): BasicEvaluatedExpression<string[]><BasicEvaluatedExpression>Set's the value of this expression to an array of strings.
setBigInt(bigint): BasicEvaluatedExpression<bigint><BasicEvaluatedExpression>Set's the value of this expression to a BigInt
setBoolean(bool): BasicEvaluatedExpression<boolean><BasicEvaluatedExpression>Set's the value of this expression to a boolean
setExpression(expression?): voidexpression{Program|AssignmentProperty|Property|CatchClause|ClassDeclaration|ClassExpression|ClassBody|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|FunctionDeclaration|MethodDefinition|ImportDeclaration|ExportNamedDeclaration|ExportDefaultDeclaration|ExportAllDeclaration|ImportSpecifier|ImportDefaultSpecifier|ImportNamespaceSpecifier|ExportSpecifier|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern|PrivateIdentifier|PropertyDefinition|SpreadElement|ExpressionStatement|BlockStatement|StaticBlock|EmptyStatement|DebuggerStatement|WithStatement|ReturnStatement|LabeledStatement|BreakStatement|ContinueStatement|IfStatement|SwitchStatement|ThrowStatement|TryStatement|WhileStatement|DoWhileStatement|ForStatement|ForInStatement|ForOfStatement|VariableDeclaration|Super|SwitchCase|TemplateElement|VariableDeclarator}- Returns:
<BasicEvaluatedExpression>
Set the expression node for the expression.
setFalsy(): BasicEvaluatedExpression<BasicEvaluatedExpression>setIdentifier(identifier, rootInfo, getMembers, getMembersOptionals?, getMemberRanges?): BasicEvaluatedExpression<BasicEvaluatedExpression>Set's the value of this expression to a particular identifier and its members.
setItems(items): BasicEvaluatedExpression<BasicEvaluatedExpression>Set's the value of this expression to an array of expressions.
setNull(): BasicEvaluatedExpression<BasicEvaluatedExpression>setNullish(value): BasicEvaluatedExpression<boolean><BasicEvaluatedExpression>Set's the value of the expression to nullish.
setNumber(number): BasicEvaluatedExpression<number><BasicEvaluatedExpression>Set's the value of this expression to a number
setOptions(options): BasicEvaluatedExpression<BasicEvaluatedExpression[]><BasicEvaluatedExpression>Stores the options of a conditional expression.
setRange(range): voidrange{Tuple< number, number >}- Returns:
<BasicEvaluatedExpression>
Set's the range for the expression.
setRegExp(regExp): BasicEvaluatedExpression<RegExp><BasicEvaluatedExpression>Set's the value of this expression to a regular expression
setSideEffects(sideEffects?): BasicEvaluatedExpression<boolean><BasicEvaluatedExpression>Set whether or not the expression has side effects.
setString(string): BasicEvaluatedExpression<string><BasicEvaluatedExpression>setTemplateString(quasis, parts, kind): BasicEvaluatedExpression<BasicEvaluatedExpression>Set's the value of this expression to a processed/unprocessed template string. Used for evaluating TemplateLiteral expressions in the JavaScript Parser.
setTruthy(): BasicEvaluatedExpression<BasicEvaluatedExpression>setUndefined(): BasicEvaluatedExpression<BasicEvaluatedExpression>setWrapped(prefix?, postfix?, innerExpressions?): BasicEvaluatedExpression<BasicEvaluatedExpression>
|
<null><BasicEvaluatedExpression>
|
<null><BasicEvaluatedExpression[]><BasicEvaluatedExpression>Wraps an array of expressions with a prefix and postfix expression.