-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraph.CompilerContext.cs
More file actions
31 lines (25 loc) · 975 Bytes
/
Copy pathGraph.CompilerContext.cs
File metadata and controls
31 lines (25 loc) · 975 Bytes
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
using DotNetHelpers;
namespace DPG.NET;
public partial record Graph {
public class CompilerContext
: ICompilerContext<Graph, Graph.Compiled, Graph.CompilerContext>
{
public Graph Graph { get; init; }
public DimensionDefinition.CompilerContext DimensionDefinitions { get; init; }
public ValueDimension.CompilerContext ValueDimensions { get; init; }
public Node.CompilerContext Nodes { get; init; }
public ValueType.CompilerContext ValueTypes { get; init; }
public ValueSpec.CompilerContext ValueSpecs { get; init; }
public Graph.Compiled this[Graph graph] =>
throw new InvalidOperationException();
public CompilerContext(Graph graph)
{
Graph = graph;
DimensionDefinitions = new(this);
ValueDimensions = new(this);
Nodes = new(this);
ValueTypes = new(this);
ValueSpecs = new(this);
}
}
}