From 465c266b8a5d5b69a0e5d2bacd3b3d4dc0e8d623 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Thu, 26 Nov 2020 16:27:10 +0100 Subject: [PATCH] Classes and module are not CfgScopes --- ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll b/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll index 9d2eedb36d7..3fb4058aa7e 100644 --- a/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll +++ b/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll @@ -8,8 +8,7 @@ private import internal.Splitting private import internal.Completion private class CfgScopeRange = - @program or @begin_block or @end_block or @module or @class or @singleton_class or @method or - @singleton_method or @block or @do_block; + @program or @begin_block or @end_block or @method or @singleton_method or @block or @do_block; /** An AST node with an associated control-flow graph. */ class CfgScope extends AstNode, CfgScopeRange { @@ -24,13 +23,6 @@ class CfgScope extends AstNode, CfgScopeRange { this instanceof EndBlock and result = "END block" or - result = this.(Module).getName().toString() - or - result = this.(Class).getName().toString() - or - this instanceof SingletonClass and - result = "singleton class" - or result = this.(Method).getName().toString() or result = this.(SingletonMethod).getName().toString()