ctl
ctl copied to clipboard
Unreported types
In trying to figure out why this isn't working for my large project, I've created a few simple tests, during which I noticed a few types that doesn't get reported. Perhaps these are arguably unimportant...
class UnreportedWithOnlyStaticVarFields {
public static var SOMETHING = 4;
}
class UnreportedWithOnlyConstructorFunction {
public function new() {
trace('I never get called');
}
}
The former is arguably only collections of constants / etc. The latter is arguably not important.
Are you sure about the former?
I made sure the lib doesn't report classes like this:
class UnreportedWithOnlyStaticVarFields {
public static inline var SOMETHING = 4;
}
That class always winds up being eliminated, because all access to it is inlined. But reporting it would probably be mildly irritating. Anyway, I'll check again.
As for the constructor, you're right indeed. We have a few classes that have been ported over from AS3 with private function new() throw "class cannot be constructed"; so I just skipped constructors. But I'll look into making it configurable.