Function fullSwitch [src]
Prototype
pub fn fullSwitch(tree: Ast, node: Node.Index) ?full.Switch
Parameters
tree: Ast
node: Node.Index
Source
pub fn fullSwitch(tree: Ast, node: Node.Index) ?full.Switch {
return switch (tree.nodeTag(node)) {
.@"switch", .switch_comma => tree.switchFull(node),
else => null,
};
}