Beispiel #1
0
        public static ReadOnlyArray<BoundFunction> Gather(BoundBody body)
        {
            if (body == null)
                throw new ArgumentNullException("body");

            var functions = new ReadOnlyArray<BoundFunction>.Builder();

            new Gatherer(functions).Visit(body);

            return functions.ToReadOnlyArray();
        }