JS: Add helper for getting local type names

This commit is contained in:
Asger F
2025-04-11 13:02:09 +02:00
parent 4cd6f45572
commit 9566265356

View File

@@ -27,6 +27,12 @@ class Scope extends @scope {
result = this.getAVariable() and
result.getName() = name
}
/** Gets the local type name with the given name declared in this scope. */
LocalTypeName getLocalTypeName(string name) {
result.getScope() = this and
result.getName() = name
}
}
/**