Beispiel #1
0
        public ParsedSourceCode Build()
        {
            AnalyzerSettings       settings = new AnalyzerSettingsBuilder().Build();
            ExternalAnnotationsMap map      = new ExternalAnnotationsBuilder().Build();

            return(new ExactSourceCode(sourceText, expectedText, SourceCodeBuilder.DefaultFilename, settings, map,
                                       SourceCodeBuilder.DefaultReferences, string.Empty));
        }
Beispiel #2
0
        public static TBuilder WithSettings <TBuilder>([NotNull] this TBuilder source,
                                                       [NotNull] AnalyzerSettingsBuilder settingsBuilder)
            where TBuilder : SourceCodeBuilder
        {
            Guard.NotNull(settingsBuilder, nameof(settingsBuilder));

            source._WithSettings(settingsBuilder);
            return(source);
        }
Beispiel #3
0
 internal void _WithSettings([NotNull] AnalyzerSettingsBuilder settingsBuilder)
 {
     settings = settingsBuilder.Build();
 }