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 {
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 ( )
You can’t perform that action at this time.
0 commit comments