Function fullSlice [src]

Prototype

pub fn fullSlice(tree: Ast, node: Node.Index) ?full.Slice

Parameters

tree: Astnode: Node.Index

Source

pub fn fullSlice(tree: Ast, node: Node.Index) ?full.Slice { return switch (tree.nodeTag(node)) { .slice_open => tree.sliceOpen(node), .slice => tree.slice(node), .slice_sentinel => tree.sliceSentinel(node), else => null, }; }