Consider the following
use namespace;
class name impl... {
use Trait;
}
How would I go about it, if I would like to extract either the use
from before the class definition or the one after? Well in the above example it would be simple enough, but if it should also work on an actual code file with multiple use
in both places and maybe not even grouped together, but with other things in between and also with all line chars removed?
It's easy enough to get them all, but I want it to either stop when it reaches the class or begin from the class. Just can't seam to get anything to work correctly.
Lines, comments and literals is stripped, so these should not be taken into consideration.