mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Rename PackageOrDecorator to Decorator.
This commit is contained in:
1 parent
aed3aa9925
commit
ebf3713555
6 files changed
+24
-24
No files matched your search
+3
-3
@@ -145,7 +145,7 @@ func (n *TypeExpr) String(tm *t.Map) string {
|
||||
if n == nil {
|
||||
return ""
|
||||
}
|
||||
if n.PackageOrDecorator() == 0 && n.Min() == nil && n.Max() == nil {
|
||||
if n.Decorator() == 0 && n.Min() == nil && n.Max() == nil {
|
||||
return tm.ByID(n.Name())
|
||||
}
|
||||
return string(n.appendString(nil, tm, 0))
|
||||
@@ -160,7 +160,7 @@ func (n *TypeExpr) appendString(buf []byte, tm *t.Map, depth uint32) []byte {
|
||||
return append(buf, "!invalid_type!"...)
|
||||
}
|
||||
|
||||
switch n.PackageOrDecorator().Key() {
|
||||
switch n.Decorator().Key() {
|
||||
case 0:
|
||||
buf = append(buf, tm.ByID(n.Name())...)
|
||||
case t.KeyPtr:
|
||||
@@ -172,7 +172,7 @@ func (n *TypeExpr) appendString(buf []byte, tm *t.Map, depth uint32) []byte {
|
||||
buf = append(buf, "] "...)
|
||||
return n.Inner().appendString(buf, tm, depth)
|
||||
default:
|
||||
buf = append(buf, tm.ByID(n.PackageOrDecorator())...)
|
||||
buf = append(buf, tm.ByID(n.Decorator())...)
|
||||
buf = append(buf, '.')
|
||||
buf = append(buf, tm.ByID(n.Name())...)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user