fixing bugs related mostly to extension handling

This commit is contained in:
Andrew Gallant (Ocelot)
2012-05-05 18:21:48 -04:00
parent 4a7b05be36
commit b6715f376f
9 changed files with 125 additions and 42 deletions

View File

@@ -282,7 +282,7 @@ func (e *FieldRef) String() string {
}
func (e *FieldRef) Initialize(p *Protocol) {
e.Name = SrcName(e.Name)
e.Name = SrcName(p, e.Name)
}
type EnumRef struct {
@@ -309,7 +309,7 @@ func (e *EnumRef) String() string {
func (e *EnumRef) Initialize(p *Protocol) {
e.EnumKind = e.EnumKind.(*Translation).RealType(p)
e.EnumItem = SrcName(e.EnumItem)
e.EnumItem = SrcName(p, e.EnumItem)
}
type SumOf struct {
@@ -337,5 +337,5 @@ func (e *SumOf) String() string {
}
func (e *SumOf) Initialize(p *Protocol) {
e.Name = SrcName(e.Name)
e.Name = SrcName(p, e.Name)
}