File tree Expand file tree Collapse file tree
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,14 +54,16 @@ class StringSubstitutionCall extends DataFlow::CallNode {
5454 * Gets the string value passed as the first (pattern) argument in this call,
5555 * if any.
5656 */
57- string getPatternString ( ) { result = this .getArgument ( 0 ) .asExpr ( ) .getConstantValue ( ) .getString ( ) }
57+ string getPatternString ( ) {
58+ result = this .getPatternArgument ( ) .asExpr ( ) .getConstantValue ( ) .getString ( )
59+ }
5860
5961 /**
6062 * Gets the string value passed as the second (replacement) argument in this
6163 * call, if any.
6264 */
6365 string getReplacementString ( ) {
64- result = this .getArgument ( 1 ) .asExpr ( ) .getConstantValue ( ) .getString ( )
66+ result = this .getReplacementArgument ( ) .asExpr ( ) .getConstantValue ( ) .getString ( )
6567 }
6668
6769 /** Gets a string that is being replaced by this call. */
You can’t perform that action at this time.
0 commit comments