* Get string representation * @param {Object} options * @return {string}
(options)
| 177 | * @return {string} |
| 178 | */ |
| 179 | _toString (options) { |
| 180 | let object = this.object.toString(options) |
| 181 | if (needParenthesis(this.object)) { |
| 182 | object = '(' + object + ')' |
| 183 | } |
| 184 | const optionalChaining = this.optionalChaining ? (this.index.dotNotation ? '?' : '?.') : '' |
| 185 | return object + optionalChaining + this.index.toString(options) |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Get HTML representation |
nothing calls this directly
no test coverage detected