diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-30 02:44:31 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-30 02:44:31 -0400 |
| commit | f7be3db65e559e77355537a11a88c8657ec4c059 (patch) | |
| tree | 98a3a415d15b6a2c03b0ae7206cbb9a8df66c601 /xgbgen/xml_expression.go | |
| parent | 91ec0c014823a869775575879de1f5585523fc39 (diff) | |
gofmt
Diffstat (limited to 'xgbgen/xml_expression.go')
| -rw-r--r-- | xgbgen/xml_expression.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xgbgen/xml_expression.go b/xgbgen/xml_expression.go index 57ff62e..2989668 100644 --- a/xgbgen/xml_expression.go +++ b/xgbgen/xml_expression.go @@ -13,14 +13,14 @@ type XMLExpression struct { Exprs []*XMLExpression `xml:",any"` Data string `xml:",chardata"` - Op string `xml:"op,attr"` - Ref string `xml:"ref,attr"` + Op string `xml:"op,attr"` + Ref string `xml:"ref,attr"` } func newValueExpression(v uint) *XMLExpression { return &XMLExpression{ XMLName: xml.Name{Local: "value"}, - Data: fmt.Sprintf("%d", v), + Data: fmt.Sprintf("%d", v), } } @@ -87,22 +87,22 @@ func (e *XMLExpression) Eval() uint { e.Data) } if bit < 0 || bit > 31 { - log.Panicf("A 'bit' literal must be in the range [0, 31], but " + + log.Panicf("A 'bit' literal must be in the range [0, 31], but "+ " is %d", bit) } return 1 << uint(bit) case "fieldref": - log.Panicf("Cannot compute concrete value of 'fieldref' in " + + log.Panicf("Cannot compute concrete value of 'fieldref' in "+ "expression '%s'.", e) case "enumref": - log.Panicf("Cannot compute concrete value of 'enumref' in " + + log.Panicf("Cannot compute concrete value of 'enumref' in "+ "expression '%s'.", e) case "sumof": - log.Panicf("Cannot compute concrete value of 'sumof' in " + + log.Panicf("Cannot compute concrete value of 'sumof' in "+ "expression '%s'.", e) } - log.Panicf("Unrecognized tag '%s' in expression context. Expected one of " + + log.Panicf("Unrecognized tag '%s' in expression context. Expected one of "+ "op, fieldref, value, bit, enumref, unop, sumof or popcount.", e.XMLName.Local) panic("unreachable") |
