d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.exp.json
Anmol Sethi 2fcc9ed140
d2ir: Compile imports
Works as so:

index.d2:
```d2
x: @x
```

x.d2:
```d2
label: meow
shape: circle
```

TODO:

- [ ] Correctly import into fields by handling the scenarios/steps overlay.
      - And links.
- [ ] Test every kind of import.
2023-06-04 23:31:18 -07:00

19 lines
1,010 B
JSON
Generated

{
"graph": null,
"err": {
"errs": [
{
"range": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2,2:8:23-2:27:42",
"errmsg": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2:3:9: bad icon url \"::????:::%%orange\": parse \"::????:::%%orange\": missing protocol scheme"
},
{
"range": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2,4:17:80-4:20:83",
"errmsg": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2:5:18: expected \"opacity\" to be a number between 0.0 and 1.0"
},
{
"range": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2,1:8:13-1:9:14",
"errmsg": "d2/testdata/d2compiler/TestCompile/errors/reserved_icon_style.d2:2:9: near key \"y\" must be the absolute path to a shape or one of the following constants: top-left, top-center, top-right, center-left, center-right, bottom-left, bottom-center, bottom-right"
}
]
}
}