mirror of
https://github.com/github/codeql.git
synced 2026-07-23 12:12:05 +02:00
26 lines
681 B
Plaintext
26 lines
681 B
Plaintext
import csharp
|
|
|
|
class StubFile extends File {
|
|
StubFile() { this.getAbsolutePath().matches("%resources/stubs/%") }
|
|
}
|
|
|
|
class SourceControlFlowElement extends ControlFlowElement {
|
|
SourceControlFlowElement() {
|
|
this.fromSource() and not this.getLocation().getFile() instanceof StubFile
|
|
}
|
|
}
|
|
|
|
class SourceControlFlowNode extends ControlFlowNode {
|
|
SourceControlFlowNode() {
|
|
not this.getLocation().getFile() instanceof StubFile and
|
|
not this.getLocation().getFile().fromLibrary()
|
|
}
|
|
}
|
|
|
|
class SourceBasicBlock extends BasicBlock {
|
|
SourceBasicBlock() {
|
|
not this.getLocation().getFile() instanceof StubFile and
|
|
not this.getLocation().getFile().fromLibrary()
|
|
}
|
|
}
|