getOmniStatementText returns the text of a statement from OmniAST, including semicolon.
(omniAST *OmniAST)
| 300 | |
| 301 | // getOmniStatementText returns the text of a statement from OmniAST, including semicolon. |
| 302 | func getOmniStatementText(omniAST *OmniAST) string { |
| 303 | text := strings.TrimSpace(omniAST.Text) |
| 304 | if !strings.HasSuffix(text, ";") { |
| 305 | text += ";" |
| 306 | } |
| 307 | return text |
| 308 | } |
no outgoing calls
no test coverage detected