Function fullSwitchCase [src]

Prototype

pub fn fullSwitchCase(tree: Ast, node: Node.Index) ?full.SwitchCase

Parameters

tree: Astnode: Node.Index

Source

pub fn fullSwitchCase(tree: Ast, node: Node.Index) ?full.SwitchCase { return switch (tree.nodeTag(node)) { .switch_case_one, .switch_case_inline_one => tree.switchCaseOne(node), .switch_case, .switch_case_inline => tree.switchCase(node), else => null, }; }