mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
add explicit this to all member calls
This commit is contained in:
@@ -51,13 +51,13 @@ module DOM {
|
||||
* Gets the root element (i.e. an element without a parent) in which this element is contained.
|
||||
*/
|
||||
ElementDefinition getRoot() {
|
||||
if not exists(getParent()) then result = this else result = getParent().getRoot()
|
||||
if not exists(this.getParent()) then result = this else result = this.getParent().getRoot()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the document element to which this element belongs, if it can be determined.
|
||||
*/
|
||||
DocumentElementDefinition getDocument() { result = getRoot() }
|
||||
DocumentElementDefinition getDocument() { result = this.getRoot() }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,7 +112,7 @@ module DOM {
|
||||
/**
|
||||
* Gets the value of this attribute, if it can be determined.
|
||||
*/
|
||||
string getStringValue() { result = getValueNode().getStringValue() }
|
||||
string getStringValue() { result = this.getValueNode().getStringValue() }
|
||||
|
||||
/**
|
||||
* Gets the DOM element this attribute belongs to.
|
||||
@@ -124,7 +124,7 @@ module DOM {
|
||||
* such as `{{window.location.url}}`.
|
||||
*/
|
||||
predicate mayHaveTemplateValue() {
|
||||
getStringValue().regexpMatch(Templating::getDelimiterMatchingRegexp())
|
||||
this.getStringValue().regexpMatch(Templating::getDelimiterMatchingRegexp())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user