Function extraDataSlice [src]
Prototype
pub fn extraDataSlice(tree: Ast, range: Node.SubRange, comptime T: type) []const T
Parameters
tree: Ast
range: Node.SubRange
T: type
Source
pub fn extraDataSlice(tree: Ast, range: Node.SubRange, comptime T: type) []const T {
return @ptrCast(tree.extra_data[@intFromEnum(range.start)..@intFromEnum(range.end)]);
}