Exemple #1
0
        public CodeAnalyzer(
            AnalyzerLoader analyzerLoader,
            IFormatProvider formatProvider = null,
            CodeAnalyzerOptions options    = null)
        {
            _analyzerLoader = analyzerLoader;

            FormatProvider = formatProvider;
            Options        = options ?? CodeAnalyzerOptions.Default;
        }
Exemple #2
0
        public CodeFixer(
            Solution solution,
            AnalyzerLoader analyzerLoader,
            IFormatProvider formatProvider = null,
            CodeFixerOptions options       = null)
        {
            _analyzerLoader = analyzerLoader;

            Workspace      = solution.Workspace;
            FormatProvider = formatProvider;
            Options        = options ?? CodeFixerOptions.Default;
        }