Skip to content

Commit

Permalink
Make sure that all CustomAnalyzers are correctly converted into proce…
Browse files Browse the repository at this point in the history
…ssors

especially any using the "ANYOF:" prefix

for #503
  • Loading branch information
mrlacey committed Feb 9, 2022
1 parent 235968b commit 9810749
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions VSIX/RapidXaml.Analysis/XamlAnalysis/RapidXamlDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,8 @@ public static XamlElementProcessor GetEveryElementProcessor(ProjectType projectT
customProcessors.Add(new CustomAnalysis.SliderAnalyzer(vsAbstraction, logger));
customProcessors.Add(new CustomAnalysis.StepperAnalyzer(vsAbstraction, logger));

for (int i = 0; i < customProcessors.Count; i++)
{
ICustomAnalyzer customProcessor = customProcessors[i];
processors.Add(
(customProcessor.TargetType(),
new CustomProcessorWrapper(customProcessor, projType, projectFilePath, logger, vsAbstraction)));
}
// Make sure that all custom analyzers are correctly used as processors
processors.AddRange(WrapCustomProcessors(customProcessors, projType, projectFilePath, logger, vsAbstraction));
}

return processors;
Expand Down

0 comments on commit 9810749

Please sign in to comment.