d2ast: Make null ScalarString empty string

So people know it's special at least until I fix d2compiler.
This commit is contained in:
Anmol Sethi 2023-01-18 07:39:09 -08:00
parent 4424a0f10e
commit 9d0c73cef2
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -404,7 +404,7 @@ func (s *SingleQuotedString) scalar() {}
func (s *BlockString) scalar() {}
// TODO: mistake, move into parse.go
func (n *Null) ScalarString() string { return n.Type() }
func (n *Null) ScalarString() string { return "" }
func (b *Boolean) ScalarString() string { return strconv.FormatBool(b.Value) }
func (n *Number) ScalarString() string { return n.Raw }
func (s *UnquotedString) ScalarString() string {