Is it possible to detect if Microsoft.CodeAnalysis.Document has been auto-generated by a tool?
For example:
foreach(var document in project.Documents)
{
if (!document.IsGeneratedCode())
{
// TODO
}
}
Looking at the source code on GitHub, I found out that extension methods IsGeneratedCode and IsGeneratedCodeAsync exist, but only as internal helpers. Implementation calls IGeneratedCodeRecognitionService language service that is also internal.
Is there any way to use similar functionality in external console application?