omniStatementText returns the text of a statement, ensuring it ends with a semicolon.
(a *OmniAST)
| 209 | |
| 210 | // omniStatementText returns the text of a statement, ensuring it ends with a semicolon. |
| 211 | func omniStatementText(a *OmniAST) string { |
| 212 | text := strings.TrimSpace(a.Text) |
| 213 | if !strings.HasSuffix(text, ";") { |
| 214 | text += ";" |
| 215 | } |
| 216 | return text |
| 217 | } |
no outgoing calls
no test coverage detected