Python: Shorten toString for module vars

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-10-10 15:59:31 +02:00
parent 0aa632d149
commit 64b1aeaecd
5 changed files with 118 additions and 118 deletions

View File

@@ -332,7 +332,7 @@ class ModuleVariableNode extends Node, TModuleVariableNode {
override Scope getScope() { result = mod }
override string toString() {
result = "ModuleVariableNode for " + var.toString() + " in " + mod.toString()
result = "ModuleVariableNode for " + mod.getName() + "." + var.getId()
}
/** Gets the module in which this variable appears. */