mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Refactor cgen's writeStatement{Assign,Var}
This commit is contained in:
1 parent
09f857dc47
commit
2936b586cf
3 files changed
+67
-92
No files matched your search
@@ -461,7 +461,6 @@ func cOpName(x t.ID) string {
|
||||
}
|
||||
|
||||
var cOpNames = [...]string{
|
||||
t.IDEq: " = ",
|
||||
t.IDPlusEq: " += ",
|
||||
t.IDMinusEq: " -= ",
|
||||
t.IDStarEq: " *= ",
|
||||
@@ -478,6 +477,9 @@ var cOpNames = [...]string{
|
||||
t.IDTildeSatPlusEq: noSuchCOperator,
|
||||
t.IDTildeSatMinusEq: noSuchCOperator,
|
||||
|
||||
t.IDEq: " = ",
|
||||
t.IDEqQuestion: " = ",
|
||||
|
||||
t.IDXUnaryPlus: " + ",
|
||||
t.IDXUnaryMinus: " - ",
|
||||
t.IDXUnaryNot: " ! ",
|
||||
|
||||
Reference in new issue
Block a user