d2ast: Make null ScalarString empty string
So people know it's special at least until I fix d2compiler.
This commit is contained in:
parent
4424a0f10e
commit
9d0c73cef2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue