File tree Expand file tree Collapse file tree 1 file changed +5
-25
lines changed
Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -156,19 +156,15 @@ func (op Operator) GoString() (str string) {
156156
157157func (op Operator ) getFunc () string {
158158switch op {
159- case OpPipe :
160- panic ("unreachable" )
161- case OpComma :
162- panic ("unreachable" )
163- case OpAdd :
159+ case OpAdd , OpUpdateAdd :
164160return "_add"
165- case OpSub :
161+ case OpSub , OpUpdateSub :
166162return "_subtract"
167- case OpMul :
163+ case OpMul , OpUpdateMul :
168164return "_multiply"
169- case OpDiv :
165+ case OpDiv , OpUpdateDiv :
170166return "_divide"
171- case OpMod :
167+ case OpMod , OpUpdateMod :
172168return "_modulo"
173169case OpEq :
174170return "_equal"
@@ -182,26 +178,10 @@ func (op Operator) getFunc() string {
182178return "_greatereq"
183179case OpLe :
184180return "_lesseq"
185- case OpAnd :
186- panic ("unreachable" )
187- case OpOr :
188- panic ("unreachable" )
189- case OpAlt :
190- panic ("unreachable" )
191181case OpAssign :
192182return "_assign"
193183case OpModify :
194184return "_modify"
195- case OpUpdateAdd :
196- return "_add"
197- case OpUpdateSub :
198- return "_subtract"
199- case OpUpdateMul :
200- return "_multiply"
201- case OpUpdateDiv :
202- return "_divide"
203- case OpUpdateMod :
204- return "_modulo"
205185case OpUpdateAlt :
206186return "_alternative"
207187default :
You can’t perform that action at this time.
0 commit comments