コード例 #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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 internal void _ExternallyAnnotated([NotNull] ExternalAnnotationsBuilder builder)
 {
     externalAnnotationsBuilder = builder;
 }