Skip to content

Commit 3a9d650

Browse files
author
Alvaro Muñoz
committed
add qldocs for member predicates
1 parent dd31be4 commit 3a9d650

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ruby/ql/lib/codeql/ruby/frameworks/Twirp.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,26 @@ module Twirp {
2222
API::getTopLevelMember("Twirp").getMember("Service").getASubclass*().getAnInstantiation()
2323
}
2424

25+
/**
26+
* Gets a local source node for the Service instantiation argument (the service handler).
27+
*/
2528
DataFlow::LocalSourceNode getHandlerSource() { result = this.getArgument(0).getALocalSource() }
2629

30+
/**
31+
* Gets the API::Node for the service handler's class.
32+
*/
2733
API::Node getHandlerClassApiNode() { result.getAnInstantiation() = this.getHandlerSource() }
2834

35+
/**
36+
* Gets the local source node for the service handler's class.
37+
*/
2938
DataFlow::LocalSourceNode getHandlerClassDataFlowNode() {
3039
result = this.getHandlerClassApiNode().asSource()
3140
}
3241

42+
/**
43+
* Gets the AST module for the service handler's class.
44+
*/
3345
Ast::Module getHandlerClassAstNode() {
3446
result =
3547
this.getHandlerClassDataFlowNode()

0 commit comments

Comments
 (0)