(switchStatement *Node, clauseStart int, clauseEnd int)
| 48 | } |
| 49 | |
| 50 | func NewFlowSwitchClauseData(switchStatement *Node, clauseStart int, clauseEnd int) *Node { |
| 51 | node := &FlowSwitchClauseData{} |
| 52 | node.SwitchStatement = switchStatement |
| 53 | node.ClauseStart = int32(clauseStart) |
| 54 | node.ClauseEnd = int32(clauseEnd) |
| 55 | return newNode(KindUnknown, node, NodeFactoryHooks{}) |
| 56 | } |
| 57 | |
| 58 | func (node *FlowSwitchClauseData) IsEmpty() bool { |
| 59 | return node.ClauseStart == node.ClauseEnd |
no test coverage detected