If we are not performing code completion or documentation, and we are running on the Flash target, use flash.errors.ArgumentError, otherwise use openfl.errors.ArgumentError
If we are performing code completion or documentation, or we are not running on the Flash target, use openfl.errors.ArgumentError and not flash.errors.ArgumentError
I think this is sound, but maybe FlashDevelop is not aware (or sensitive to) the defines?
I remember that FlashDevelop would ignore things like #if. But usually this meant that it took the first definition and ignored the typedef at the bottom. Not sure why it would be different for these two classes.