Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.53 KB

Summary.Roslyn.RoslynPipelineExtensions.md

File metadata and controls

34 lines (26 loc) · 1.53 KB
public static class RoslynPipelineExtensions

A set of extension methods that extend different pipelines with Roslyn parsing.

Methods

public static SummaryPipeline UseRoslynParser(this SummaryPipeline self, string source, string pattern = "*.cs")

Adds a Roslyn parser to the specified pipeline.

This parser will parse all the C# files in the specified directory and will extract comments from the corresponding syntax trees using Roslyn API. Under the hood, we call System.IO.Directory.EnumerateFiles(string, string, SearchOption) method to get the list of all files for each of the specified root paths, and then concatenate the results.

public static SummaryPipeline UseRoslynParser(this SummaryPipeline self, string[] sources, string pattern = "*.cs")

Adds a Roslyn parser to the specified pipeline.

This parser will parse all the C# files in the specified directory and will extract comments from the corresponding syntax trees using Roslyn API. Under the hood, we call System.IO.Directory.EnumerateFiles(string, string, SearchOption) method to get the list of all files for each of the specified root paths, and then concatenate the results.