MCPcopy Create free account
hub / github.com/DAddYE/igo / Text

Method Text

ast/ast.go:98–150  ·  view source on GitHub ↗

Text returns the text of the comment. Comment markers (//, /*, and */), the first space of a line comment, and leading and trailing empty lines are removed. Multiple empty lines are reduced to one, and trailing space on lines is trimmed. Unless the result is empty, it is newline-terminated.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

importCommentFunction · 0.80

Calls 1

stripTrailingWhitespaceFunction · 0.85

Tested by

no test coverage detected