summaryrefslogtreecommitdiff
path: root/xgbgen/expression.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:21:48 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:21:48 -0400
commit568f1c44fb9489a7f7762e96544f0173b23ec61b (patch)
treef2c8fe01e7b4aeaad77bef220ed997c824f1b144 /xgbgen/expression.go
parentb8d96bcad34ec397b207dc263f61f7776396db26 (diff)
fixing bugs related mostly to extension handling
Diffstat (limited to 'xgbgen/expression.go')
-rw-r--r--xgbgen/expression.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xgbgen/expression.go b/xgbgen/expression.go
index 6a8aa52..2350979 100644
--- a/xgbgen/expression.go
+++ b/xgbgen/expression.go
@@ -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)
}