We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d05ea3 commit d95f533Copy full SHA for d95f533
ruby/ql/lib/codeql/ruby/regexp/RegExpTreeView.qll
@@ -63,6 +63,9 @@ class RegExpParent extends TRegExpParent {
63
/** Gets the number of child terms. */
64
int getNumChild() { result = count(this.getAChild()) }
65
66
+ /** Gets the last child term of this element. */
67
+ RegExpTerm getLastChild() { result = this.getChild(this.getNumChild() - 1) }
68
+
69
/**
70
* Gets the name of a primary CodeQL class to which this regular
71
* expression term belongs.
0 commit comments