(cond bool, onTrue, onFalse string)
| 56 | } |
| 57 | |
| 58 | func (fc *funcContext) PrintCond(cond bool, onTrue, onFalse string) { |
| 59 | if !cond { |
| 60 | fc.Printf("/* %s */ %s", strings.ReplaceAll(onTrue, "*/", "<star>/"), onFalse) |
| 61 | return |
| 62 | } |
| 63 | fc.Printf("%s", onTrue) |
| 64 | } |
| 65 | |
| 66 | func (fc *funcContext) SetPos(pos token.Pos) { |
| 67 | fc.posAvailable = true |
no test coverage detected