Skip to content

Commit c44e6fc

Browse files
committed
C#: Qldoc tweaks.
1 parent 84a65be commit c44e6fc

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

csharp/ql/lib/semmle/code/csharp/controlflow/ControlFlowElement.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
4242

4343
ControlFlow::Node getControlFlowNode() { result.getAstNode() = this }
4444

45+
/** Gets the basic block in which this element occurs. */
4546
BasicBlock getBasicBlock() { result = this.getAControlFlowNode().getBasicBlock() }
4647

4748
/**

csharp/ql/lib/semmle/code/csharp/controlflow/ControlFlowGraph.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ module ControlFlow {
251251
}
252252
}
253253

254+
/** A control flow node indicating normal termination of a callable. */
254255
class NormalExitNode extends AnnotatedExitNode instanceof Impl::NormalExitNode { }
255256

256257
/** A node for a callable exit point. */

csharp/ql/lib/semmle/code/csharp/dataflow/Nullness.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private predicate nonNullDef(Ssa::ExplicitDefinition def) {
118118
}
119119

120120
/**
121-
* Holds if the `node` is a dereference `d` of SSA definition `def`.
121+
* Holds if `node` is a dereference `d` of SSA definition `def`.
122122
*/
123123
private predicate dereferenceAt(ControlFlow::Node node, Ssa::Definition def, Dereference d) {
124124
d = def.getAReadAtNode(node)

shared/controlflow/codeql/controlflow/Cfg.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ module MakeWithSplitting<
11851185

11861186
final class AnnotatedExitNode = AnnotatedExitNodeImpl;
11871187

1188+
/** A control flow node indicating normal termination of a callable. */
11881189
final class NormalExitNode extends AnnotatedExitNodeImpl {
11891190
NormalExitNode() { this = TAnnotatedExitNode(_, true) }
11901191
}

0 commit comments

Comments
 (0)