add more extension cruft. make extension checking more uniform.

This commit is contained in:
Andrew Gallant (Ocelot)
2012-05-06 17:48:40 -04:00
parent 135cee5761
commit 6d545e723a
7 changed files with 59 additions and 11 deletions

View File

@@ -410,7 +410,7 @@ func TypeSrcName(p *Protocol, typ Type) string {
// Since there is no namespace, we need to look for a namespace
// in the current context.
niceType := splitAndTitle(t)
if p.Name != "xproto" {
if p.isExt() {
for _, typ2 := range p.Types {
if t == typ2.XmlName() {
return strings.Title(p.Name) + niceType