* Test whether this IndexNode contains a single property name * @return {boolean}
()
| 149 | * @return {boolean} |
| 150 | */ |
| 151 | isObjectProperty () { |
| 152 | return this.dimensions.length === 1 && |
| 153 | isConstantNode(this.dimensions[0]) && |
| 154 | typeof this.dimensions[0].value === 'string' |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Returns the property name if IndexNode contains a property. |
no test coverage detected