mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Ruby: Cache ErbDirective::getAChildStmt
This commit is contained in:
@@ -157,6 +157,7 @@ class ErbDirective extends TDirectiveNode, ErbAstNode {
|
||||
* Gets a statement that starts in directive that is not a child of any other
|
||||
* statement starting in this directive.
|
||||
*/
|
||||
cached
|
||||
Stmt getAChildStmt() {
|
||||
this.containsAstNodeStart(result) and
|
||||
not this.containsAstNodeStart(result.getParent())
|
||||
|
||||
Reference in New Issue
Block a user