aboutsummaryrefslogtreecommitdiff
path: root/spec/test/parser.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-11-05 16:52:37 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-11-05 16:52:37 +0900
commita6001b32cf805c4e72e05adc37ee60272a600bf1 (patch)
treebcee870f1008689adfa104fb1e97e6414201eb94 /spec/test/parser.go
parentRemove alias system (diff)
downloadcotia-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.go6
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 {