Skip to main content
Version: 3.0

MatchCase 匹配分支

结构声明

interface MatchCase {
"concept": "MatchCase", // 产品概念
"patterns": Array<LogicItem | TypeAnnotation>, // 条件表达式
"body": Array<LogicItem>, // then
"isMatchedTypeEnumable": boolean, // 是否可枚举
}

示例

简单示例

{
"concept": "MatchCase",
"patterns": [],
"body": [],
"isMatchedTypeEnumable": false
}