KvanTTT / CSharp-Minifier

Library for C# code minification based on NRefactory. That is lib for spaces, line breaks, comments removing, reduction of identifiers name length and so on in C# code.
Apache License 2.0
41 stars 21 forks source link

Minifier breaks on base keyword #29

Closed thomasdiemar closed 8 years ago

thomasdiemar commented 8 years ago

I also want to use this for Space Engineers because of its character limit.

I've found this annoying error. The following throws a null pointer exception. It cant handle the base keyword.

    public class A
    {
        public virtual int M()
        {
            return -1;
        }
    }

    public class B : A 
    {
        public override int M()
        {
            return base.M();
        }
    }

So i cant really use inheritance, which is like... bummer in a OO environment...

A workaround could be nested classes, but it seems there is some issues with that approach also.

KvanTTT commented 8 years ago

@thomasdiemar, thank you for reporting!