()
| 123 | } |
| 124 | |
| 125 | public toProtocolVariable(): DebugProtocol.Variable { |
| 126 | const res: DebugProtocol.Variable = { |
| 127 | name: this.exp, |
| 128 | evaluateName: this.name, |
| 129 | value: (this.value === void 0) ? "<unknown>" : this.value, |
| 130 | type: this.type, |
| 131 | variablesReference: this.id |
| 132 | }; |
| 133 | return res; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // from https://gist.github.com/justmoon/15511f92e5216fa2624b#gistcomment-1928632 |