Skip to content

Commit 1d4a605

Browse files
committed
remove location for synthetic nodes
1 parent 9da8c23 commit 1d4a605

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python/ql/src/semmle/python/PrintAst.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ class StmtListNode extends PrintAstNode, TStmtListNode {
297297

298298
override string toString() { result = "(StmtList) " + getLabel() }
299299

300-
override Location getLocation() { result = list.getItem(0).getLocation() }
301-
302300
override PrintAstNode getChild(int childIndex) {
303301
exists(AstNode el | result.(AstElementNode).getAstNode() = el | el = list.getItem(childIndex))
304302
}
@@ -358,8 +356,6 @@ class FunctionParamsNode extends PrintAstNode, TFunctionParamsNode {
358356

359357
override string toString() { result = "(parameters)" }
360358

361-
override Location getLocation() { result = func.getLocation() }
362-
363359
override PrintAstNode getChild(int childIndex) {
364360
// everything that is not a stmt is a parameter.
365361
exists(AstNode el | result.(AstElementNode).getAstNode() = el |

0 commit comments

Comments
 (0)