C#: Qldoc tweaks.

This commit is contained in:
Anders Schack-Mulligen
2025-10-22 10:22:26 +02:00
parent 84a65bef43
commit c44e6fc3f0
4 changed files with 4 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
ControlFlow::Node getControlFlowNode() { result.getAstNode() = this }
/** Gets the basic block in which this element occurs. */
BasicBlock getBasicBlock() { result = this.getAControlFlowNode().getBasicBlock() }
/**

View File

@@ -251,6 +251,7 @@ module ControlFlow {
}
}
/** A control flow node indicating normal termination of a callable. */
class NormalExitNode extends AnnotatedExitNode instanceof Impl::NormalExitNode { }
/** A node for a callable exit point. */

View File

@@ -118,7 +118,7 @@ private predicate nonNullDef(Ssa::ExplicitDefinition def) {
}
/**
* Holds if the `node` is a dereference `d` of SSA definition `def`.
* Holds if `node` is a dereference `d` of SSA definition `def`.
*/
private predicate dereferenceAt(ControlFlow::Node node, Ssa::Definition def, Dereference d) {
d = def.getAReadAtNode(node)