public void RegisterSyntaxTreeAction(Action <SyntaxTreeAnalysisContext, CodeStyleOption <TOptionKind> > analyze)
            {
                var provider = _codeStyleProvider;

                _context.RegisterSyntaxTreeAction(
                    c => AnalyzeIfEnabled(provider, c, analyze, c.Options, c.Tree, c.CancellationToken));
            }
Example #2
0
            public void RegisterSyntaxTreeAction(Action <SyntaxTreeAnalysisContext, CodeStyleOption2 <TOptionValue> > analyze)
            {
                var provider = _codeStyleProvider;

                _context.RegisterSyntaxTreeAction(
                    c => AnalyzeIfEnabled(provider, c, analyze, c.Options, c.Tree));
            }