Document testedBranch

This commit is contained in:
Chris Smowton
2023-11-16 18:11:25 +00:00
parent ba0a05c804
commit 0b08507033
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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