Improve Element::toString() performance by removing recursion

in TypeMention::toString().
This commit is contained in:
Ziemowit Laski
2019-05-24 08:15:20 -07:00
parent 813e1e7c91
commit 37fe68c656

View File

@@ -1276,7 +1276,7 @@ private predicate suppressUnusedThis(Type t) { any() }
/** A source code location referring to a type */
class TypeMention extends Locatable, @type_mention {
override string toString() {result = "mention of " + getMentionedType()}
override string toString() {result = "type mention"}
/**
* Gets the type being referenced by this type mention.