Node represents a node in the AST.
| 11 | |
| 12 | // Node represents a node in the AST. |
| 13 | type Node interface { |
| 14 | // Pos returns the position of the first character belonging to the node. |
| 15 | Pos() token.Position |
| 16 | // End returns the position of the first character immediately after the node. |
| 17 | End() token.Position |
| 18 | // Format returns the node's text after format. |
| 19 | Format(...string) string |
| 20 | // HasHeadCommentGroup returns true if the node has head comment group. |
| 21 | HasHeadCommentGroup() bool |
| 22 | // HasLeadingCommentGroup returns true if the node has leading comment group. |
| 23 | HasLeadingCommentGroup() bool |
| 24 | // CommentGroup returns the node's head comment group and leading comment group. |
| 25 | CommentGroup() (head, leading CommentGroup) |
| 26 | } |
| 27 | |
| 28 | // Stmt represents a statement in the AST. |
| 29 | type Stmt interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…