MLLIF
a MLIR-based Language to Language Interoperability Flyover
Loading...
Searching...
No Matches
DocumentExtension.cs
Go to the documentation of this file.
1
using
Microsoft.CodeAnalysis;
2
3
namespace
MLLIFCSharpFrontBuild.Diagnostics
;
4
5
public
static
class
DocumentExtension
6
{
7
public
static
Document? GetDocument(
this
Project
project, ISymbol symbol)
8
{
9
var syntax = symbol.DeclaringSyntaxReferences.FirstOrDefault()?.GetSyntax();
10
return
syntax is
null
? null : project.GetDocument(syntax.SyntaxTree);
11
}
12
}
Project
Microsoft.CodeAnalysis.Project Project
Definition
Program.cs:6
MLLIFCSharpFrontBuild.Diagnostics
Definition
BindingDiagnostic.cs:3
mllif
Frontend
C#
lib
MLLIFCSharpFrontBuild
Diagnostics
DocumentExtension.cs
Generated on Mon May 12 2025 01:41:15 for MLLIF by
1.13.2