mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Add ConditionalExpr.getBranchExpr(boolean)
This commit is contained in:
@@ -16,10 +16,7 @@ class CharType extends PrimitiveType {
|
||||
CharType() { this.hasName("char") }
|
||||
}
|
||||
|
||||
private Type getABranchType(ConditionalExpr ce) {
|
||||
result = ce.getTrueExpr().getType() or
|
||||
result = ce.getFalseExpr().getType()
|
||||
}
|
||||
private Type getABranchType(ConditionalExpr ce) { result = ce.getBranchExpr(_).getType() }
|
||||
|
||||
from ConditionalExpr ce
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user