mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Document testedBranch
This commit is contained in:
@@ -16,7 +16,7 @@ predicate pp(ClassOrInterface c, string s, int line) {
|
||||
exists(PpAst e | getEnclosingAst*(e) = c | ppPart(e, part, line, i))
|
||||
|
|
||||
part order by i
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
private PpAst getEnclosingAst(PpAst e) {
|
||||
|
||||
@@ -223,7 +223,7 @@ class TypeTestGuard extends Guard {
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this guard tests whether `e` has type `t`.
|
||||
* Holds if this guard tests whether `e` has type `t` on `testedBranch`.
|
||||
*
|
||||
* Note that record patterns that make at least one tighter restriction than the record's definition
|
||||
* (e.g. matching `record R(Object)` with `case R(String)`) means this only guarantees the tested type
|
||||
|
||||
Reference in New Issue
Block a user