mirror of
https://github.com/github/codeql.git
synced 2026-08-04 09:23:23 +02:00
16 lines
308 B
Plaintext
16 lines
308 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 FloatingPointLiteral or
|
|
l instanceof DoubleLiteral
|
|
select l, l.getValue(), l.getParent()
|