mirror of
https://github.com/github/codeql.git
synced 2026-02-17 07:23:42 +01:00
14 lines
294 B
Plaintext
14 lines
294 B
Plaintext
import java
|
|
|
|
class SrcLiteral extends Literal {
|
|
SrcLiteral() { this.getCompilationUnit().fromSource() }
|
|
}
|
|
|
|
from SrcLiteral l
|
|
where
|
|
l instanceof IntegerLiteral or
|
|
l instanceof LongLiteral or
|
|
l instanceof FloatLiteral or
|
|
l instanceof DoubleLiteral
|
|
select l, l.getValue(), l.getParent()
|