Classes and module are not CfgScopes

This commit is contained in:
Arthur Baars
2020-11-26 16:27:10 +01:00
parent 0959a4675f
commit 465c266b8a

View File

@@ -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()