mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
JS: Update comment
This commit is contained in:
@@ -254,11 +254,8 @@ module Public {
|
|||||||
/** Gets the singleton content to be accessed. */
|
/** Gets the singleton content to be accessed. */
|
||||||
Content asSingleton() { this = MkSingletonContent(result) }
|
Content asSingleton() { this = MkSingletonContent(result) }
|
||||||
|
|
||||||
/** Gets the property name to be accessed. */
|
/** Gets the property name to be accessed, provided that this is a singleton content set. */
|
||||||
PropertyName asPropertyName() {
|
PropertyName asPropertyName() { result = this.asSingleton().asPropertyName() }
|
||||||
// TODO: array indices should be mapped to a ContentSet that also reads from UnknownArrayElement
|
|
||||||
result = this.asSingleton().asPropertyName()
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Gets the array index to be accessed. */
|
/** Gets the array index to be accessed. */
|
||||||
int asArrayIndex() { result = this.asSingleton().asArrayIndex() }
|
int asArrayIndex() { result = this.asSingleton().asArrayIndex() }
|
||||||
|
|||||||
Reference in New Issue
Block a user