private FunctionAnalysis1stPass.NodeIndices GetParentNodeIndices() { var count = NodeIndexStack.Count; var buffer = ImmutableArrayPool <int> .Allocate(count); NodeIndexStack.CopyTo(buffer.Array, buffer.Offset); return(new FunctionAnalysis1stPass.NodeIndices(buffer)); }
private int[] GetParentNodeIndices() { return(NodeIndexStack.ToArray()); }