mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Classes and module are not CfgScopes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user