File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
shared/controlflow/codeql/controlflow Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1122,6 +1122,9 @@ module MakeWithSplitting<
11221122 /** Gets the scope of this node. */
11231123 CfgScope getScope ( ) { result = getNodeCfgScope ( this ) }
11241124
1125+ /** Gets the enclosing callable of this node. */
1126+ CfgScope getEnclosingCallable ( ) { result = this .getScope ( ) }
1127+
11251128 /** Gets a successor node of a given type, if any. */
11261129 Node getASuccessor ( SuccessorType t ) { result = getASuccessor ( this , t ) }
11271130
@@ -1315,9 +1318,7 @@ module MakeWithSplitting<
13151318 private module PrintGraphInput implements Pp:: InputSig< Location > {
13161319 class Callable = CfgScope ;
13171320
1318- class ControlFlowNode extends Node {
1319- Callable getEnclosingCallable ( ) { result = this .getScope ( ) }
1320- }
1321+ class ControlFlowNode = Node ;
13211322
13221323 ControlFlowNode getASuccessor ( ControlFlowNode n , SuccessorType t ) {
13231324 result = n .getASuccessor ( t )
Original file line number Diff line number Diff line change @@ -102,13 +102,13 @@ module PrintGraph<LocationSig Location, InputSig<Location> Input> {
102102
103103 /** Provides the input to `ViewCfgQuery`. */
104104 signature module ViewCfgQueryInputSig< FileSig File> {
105- /** The source file selected in the IDE. Should be an `external` predicate. */
105+ /** Gets the source file selected in the IDE. Should be an `external` predicate. */
106106 string selectedSourceFile ( ) ;
107107
108- /** The source line selected in the IDE. Should be an `external` predicate. */
108+ /** Gets the source line selected in the IDE. Should be an `external` predicate. */
109109 int selectedSourceLine ( ) ;
110110
111- /** The source column selected in the IDE. Should be an `external` predicate. */
111+ /** Gets the source column selected in the IDE. Should be an `external` predicate. */
112112 int selectedSourceColumn ( ) ;
113113
114114 /**
You can’t perform that action at this time.
0 commit comments