MCPcopy Create free account
hub / github.com/expr-lang/expr / ConditionalNode

Struct ConditionalNode

ast/node.go:211–217  ·  view source on GitHub ↗

ConditionalNode represents a ternary operator or if/else operator.

Source from the content-addressed store, hash-verified

209
210// ConditionalNode represents a ternary operator or if/else operator.
211type ConditionalNode struct {
212 base
213 Ternary bool // Is it ternary or if/else operator?
214 Cond Node // Condition
215 Exp1 Node // Expression 1
216 Exp2 Node // Expression 2
217}
218
219// VariableDeclaratorNode represents a variable declaration.
220type VariableDeclaratorNode struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected