d2ir: IR Root wip
This commit is contained in:
parent
473d5ba582
commit
98ede1f586
2 changed files with 1058 additions and 1 deletions
|
|
@ -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
1055
testdata/d2ir/TestCompile/layer/root.exp.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue