mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
In hindsight, having a `.getMetrics()` method that just returns `this` is somewhat weird. It's possible that it predates the existence of the inline cast, however.
10 lines
223 B
Plaintext
10 lines
223 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
|
|
from Scope s, int n
|
|
where
|
|
exists(FunctionMetrics f | f = s | n = f.getNumberOfLines())
|
|
or
|
|
exists(ModuleMetrics m | m = s | n = m.getNumberOfLines())
|
|
select s.toString(), n
|