add BaseAnalyzerArguments to keep ctor changes sane

also immediately makes tokens a part of it

This struct can for example precompute token indices for line endings
This commit is contained in:
WebFreak001 2023-10-25 07:30:11 +02:00 committed by Jan Jurzitza
parent 1e8f1ec9e6
commit 42033dcc55
57 changed files with 268 additions and 240 deletions

View file

@ -28,9 +28,9 @@ final class FunctionAttributeCheck : BaseAnalyzer
mixin AnalyzerInfo!"function_attribute_check";
this(string fileName, const(Scope)* sc, bool skipTests = false)
this(BaseAnalyzerArguments args)
{
super(fileName, sc, skipTests);
super(args);
}
override void visit(const InterfaceDeclaration dec)