Source File
error.go
Belonging Package
oss.terrastruct.com/d2/d2ast
package d2ast// TODO: Right now this is here to be available in both the Parser and Compiler but// eventually we should make this a real part of the AST so that autofmt works on// files with parse errors and semantically it makes more sense.// Compile would continue to maintain a separate set of errors and then we'd do a// merge & sort to get the final list of errors for user display.type Error struct {Range Range `json:"range"`Message string `json:"errmsg"`}func ( Error) () string {return .Message}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |