Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b908ce commit 3e2d266Copy full SHA for 3e2d266
1 file changed
javascript/ql/src/semmle/javascript/PrintAst.qll
@@ -573,7 +573,11 @@ module PrintYAML {
573
574
YAMLMappingMapNode() { this = TYAMLMappingNode(mapping, i) }
575
576
- override string toString() { result = "(Mapping " + i + ")" }
+ override string toString() {
577
+ result = "(Mapping " + i + ")" and not exists(mapping.getKeyNode(i).(YAMLScalar).getValue())
578
+ or
579
+ result = "(Mapping " + i + ") " + mapping.getKeyNode(i).(YAMLScalar).getValue() + ":"
580
+ }
581
582
/**
583
* Holds if this print node represents the `index`th mapping of `m`.
0 commit comments