File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,26 @@ module Twirp {
22
22
API:: getTopLevelMember ( "Twirp" ) .getMember ( "Service" ) .getASubclass * ( ) .getAnInstantiation ( )
23
23
}
24
24
25
+ /**
26
+ * Gets a local source node for the Service instantiation argument (the service handler).
27
+ */
25
28
DataFlow:: LocalSourceNode getHandlerSource ( ) { result = this .getArgument ( 0 ) .getALocalSource ( ) }
26
29
30
+ /**
31
+ * Gets the API::Node for the service handler's class.
32
+ */
27
33
API:: Node getHandlerClassApiNode ( ) { result .getAnInstantiation ( ) = this .getHandlerSource ( ) }
28
34
35
+ /**
36
+ * Gets the local source node for the service handler's class.
37
+ */
29
38
DataFlow:: LocalSourceNode getHandlerClassDataFlowNode ( ) {
30
39
result = this .getHandlerClassApiNode ( ) .asSource ( )
31
40
}
32
41
42
+ /**
43
+ * Gets the AST module for the service handler's class.
44
+ */
33
45
Ast:: Module getHandlerClassAstNode ( ) {
34
46
result =
35
47
this .getHandlerClassDataFlowNode ( )
You can’t perform that action at this time.
0 commit comments