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)); }
public static TBuilder ExternallyAnnotated <TBuilder>([NotNull] this TBuilder source, [NotNull] ExternalAnnotationsBuilder builder) where TBuilder : SourceCodeBuilder { Guard.NotNull(source, nameof(source)); Guard.NotNull(builder, nameof(builder)); source._ExternallyAnnotated(builder); return(source); }
internal void _ExternallyAnnotated([NotNull] ExternalAnnotationsBuilder builder) { externalAnnotationsBuilder = builder; }