diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 16:52:37 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 16:52:37 +0900 |
commit | a6001b32cf805c4e72e05adc37ee60272a600bf1 (patch) | |
tree | bcee870f1008689adfa104fb1e97e6414201eb94 /spec/test/parser.go | |
parent | Remove alias system (diff) | |
download | cotia-a6001b32cf805c4e72e05adc37ee60272a600bf1.tar.gz cotia-a6001b32cf805c4e72e05adc37ee60272a600bf1.tar.xz |
Remove anonymous symbol system
Remove unimportant features to tidy up the specification.
Diffstat (limited to 'spec/test/parser.go')
-rw-r--r-- | spec/test/parser.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/test/parser.go b/spec/test/parser.go index c30d45c..b7265d7 100644 --- a/spec/test/parser.go +++ b/spec/test/parser.go @@ -78,11 +78,7 @@ func (t *Tree) format(buf *bytes.Buffer, depth int) { buf.WriteString(" ") } buf.WriteString("(") - if t.Kind == "" { - buf.WriteString("<anonymous>") - } else { - buf.WriteString(t.Kind) - } + buf.WriteString(t.Kind) if len(t.Children) > 0 { buf.WriteString("\n") for i, c := range t.Children { |