* Converts the node's current state to a string. * @param ignoreComments Whether the comments associated with the expression should be skipped.
(ignoreComments = false)
| 38 | * @param ignoreComments Whether the comments associated with the expression should be skipped. |
| 39 | */ |
| 40 | print(ignoreComments = false): string { |
| 41 | if (ignoreComments) { |
| 42 | return this.source; |
| 43 | } |
| 44 | |
| 45 | return ( |
| 46 | this.source + |
| 47 | this.formatComment(this.identifierComment) + |
| 48 | this.formatComment(this.ignoreComment) + |
| 49 | this.formatComment(this.spanComment) |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Adds a synthetic comment to the expression that represents the parse span of the provided node. |
no test coverage detected