public CodeAnalyzer( AnalyzerLoader analyzerLoader, IFormatProvider formatProvider = null, CodeAnalyzerOptions options = null) { _analyzerLoader = analyzerLoader; FormatProvider = formatProvider; Options = options ?? CodeAnalyzerOptions.Default; }
public CodeAnalyzer( IEnumerable <AnalyzerAssembly> analyzerAssemblies = null, IFormatProvider formatProvider = null, CodeAnalyzerOptions options = null) { if (analyzerAssemblies != null) { _analyzerAssemblies.AddRange(analyzerAssemblies); } Options = options ?? CodeAnalyzerOptions.Default; FormatProvider = formatProvider; }
public CodeAnalyzer( AbstractSyntaxFactsServiceFactory syntaxFactsFactory, IEnumerable <string> analyzerAssemblies = null, IFormatProvider formatProvider = null, CodeAnalyzerOptions options = null) { SyntaxFactsFactory = syntaxFactsFactory; Options = options ?? CodeAnalyzerOptions.Default; if (analyzerAssemblies != null) { _analyzerAssemblies.LoadFrom(analyzerAssemblies, loadFixers: false); } FormatProvider = formatProvider; }