-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathSolCodeGenResults.cs
39 lines (32 loc) · 1.22 KB
/
SolCodeGenResults.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.CodeAnalysis;
using System.Collections.Generic;
using System.IO;
namespace Meadow.SolCodeGen
{
public class SolCodeGenCSharpResult
{
public SyntaxTree SyntaxTree { get; set; }
public string CSharpLiteralCode { get; set; }
public string CSharpFilePath { get; set; }
public SolCodeGenCSharpResult(string filePath, string literalCode, SyntaxTree syntaxTree)
{
SyntaxTree = syntaxTree.WithFilePath(filePath);
CSharpLiteralCode = literalCode;
CSharpFilePath = filePath;
}
}
public class SolCodeGenCompilationResults
{
public string AssemblyFilePath { get; set; }
public string PdbFilePath { get; set; }
public string XmlDocFilePath { get; set; }
}
public class SolCodeGenResults
{
public List<SolCodeGenCSharpResult> GeneratedCSharpEntries { get; set; } = new List<SolCodeGenCSharpResult>();
public string GeneratedResxFilePath { get; set; }
public IReadOnlyDictionary<string, string> GeneratedResxResources { get; set; }
public string SolcCodeBaseHash { get; set; }
public SolCodeGenCompilationResults CompilationResults { get; set; }
}
}