Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mdl/ast/ast_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ type QualifiedNameExpr struct {

func (e *QualifiedNameExpr) isExpression() {}

// IfThenElseExpr represents an inline if-then-else expression:
// if condition then trueExpr else falseExpr
type IfThenElseExpr struct {
Condition Expression // Condition expression
ThenExpr Expression // Expression when condition is true
ElseExpr Expression // Expression when condition is false
}

func (e *IfThenElseExpr) isExpression() {}

// ============================================================================
// XPath-Specific Expression Types
// ============================================================================
Expand Down
2 changes: 2 additions & 0 deletions mdl/catalog/builder_microflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ func getDataTypeName(dt microflows.DataType) string {
return "String"
case *microflows.DateTimeType:
return "DateTime"
case *microflows.DateType:
return "Date"
case *microflows.ObjectType:
return "Object:" + t.EntityQualifiedName
case *microflows.ListType:
Expand Down
Loading
Loading