mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Improve Element::toString() performance by removing recursion
in TypeMention::toString().
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user