public Block(MethodDef method, Block parent)
            : base(method, parent)
        {
            statements = new List<Statement>();

            if (parent == null)
            {
                localScope = new LocalScope(this, null);
            }
            else
            {
                localScope = new LocalScope(this, parent.localScope);
            }
        }
        public LocalScope(Block block, LocalScope parent)
        {
            Block = block;

            Parent = parent;

            Parameters = new List<Parameter>();
            Locals = new List<Local>();

            if (parent == null)
            {
                if (Method.Parameters.Count() != 0)
                {
                    Parameters.AddRange(Method.Parameters);
                }
            }
        }