remove location from "mapping i" print node

This commit is contained in:
Erik Krogh Kristensen
2020-10-15 10:51:34 +02:00
parent 3e2d266343
commit 1ebd49b0eb

View File

@@ -587,8 +587,6 @@ module PrintYAML {
index = i
}
override Location getLocation() { result = mapping.getKeyNode(i).getLocation() }
override PrintAstNode getChild(int childIndex) {
childIndex = 0 and result.(YAMLNodeNode).getValue() = mapping.getKeyNode(i)
or