public ObsoleteMissingMethodTransformer() { _directiveRemover = new TriviaRemover(trivia => trivia.IsDirective); }
public DisabledTextTypeTransformer() { _triviaRemover = new TriviaRemover( trivia => trivia.IsKind(SyntaxKind.DisabledTextTrivia), node => node != null && node.ContainsDirectives && (node.Parent?.IsFunction() != true || node.Parent?.GetFunctionBody() != node)); }