mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
remove locations where we have no exact location
This commit is contained in:
@@ -376,8 +376,6 @@ private module PrintJavaScript {
|
||||
override PrintAstNode getChild(int childIndex) {
|
||||
result.(ElementNode).getElement() = n.getAttribute(childIndex)
|
||||
}
|
||||
|
||||
override Location getLocation() { result = n.getLocation() }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -398,8 +396,6 @@ private module PrintJavaScript {
|
||||
override PrintAstNode getChild(int childIndex) {
|
||||
result.(ElementNode).getElement() = n.getBodyElement(childIndex)
|
||||
}
|
||||
|
||||
override Location getLocation() { result = n.getLocation() }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -719,7 +715,7 @@ module PrintHTML {
|
||||
}
|
||||
|
||||
/**
|
||||
* A print node representing the code inside a `<script>` element.
|
||||
* A print node representing the code inside an attribute.
|
||||
*/
|
||||
class HTMLCodeInAttr extends PrintAstNode, THTMLCodeInAttr {
|
||||
CodeInAttribute attr;
|
||||
@@ -763,8 +759,6 @@ module PrintHTML {
|
||||
override PrintAstNode getChild(int childIndex) {
|
||||
result.(HTMLAttributeNode).getAttribute() = element.getAttribute(childIndex)
|
||||
}
|
||||
|
||||
override Location getLocation() { result = element.getLocation() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user