d2ir: IR Root wip

This commit is contained in:
Anmol Sethi 2023-01-18 02:08:41 -08:00
parent 473d5ba582
commit 98ede1f586
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
2 changed files with 1058 additions and 1 deletions

View file

@ -16,7 +16,9 @@ func (c *compiler) errorf(n d2ast.Node, f string, v ...interface{}) {
func Compile(ast *d2ast.Map) (*Layer, error) {
l := &Layer{
AST: ast,
Map: &Map{},
}
l.Map = &Map{
parent: l,
}
c := &compiler{}

1055
testdata/d2ir/TestCompile/layer/root.exp.json generated vendored Normal file

File diff suppressed because it is too large Load diff