Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55d4e7e commit 013d226Copy full SHA for 013d226
1 file changed
javascript/ql/lib/semmle/javascript/dataflow/internal/Contents.qll
@@ -254,11 +254,8 @@ module Public {
254
/** Gets the singleton content to be accessed. */
255
Content asSingleton() { this = MkSingletonContent(result) }
256
257
- /** Gets the property name to be accessed. */
258
- PropertyName asPropertyName() {
259
- // TODO: array indices should be mapped to a ContentSet that also reads from UnknownArrayElement
260
- result = this.asSingleton().asPropertyName()
261
- }
+ /** Gets the property name to be accessed, provided that this is a singleton content set. */
+ PropertyName asPropertyName() { result = this.asSingleton().asPropertyName() }
262
263
/** Gets the array index to be accessed. */
264
int asArrayIndex() { result = this.asSingleton().asArrayIndex() }
0 commit comments