CFG: Allow erb top-level scopes

This commit is contained in:
Tom Hvitved
2021-08-17 09:00:05 +02:00
parent 0f6c464d27
commit 394c27a279
4 changed files with 202 additions and 5 deletions

View File

@@ -262,7 +262,7 @@ private module Cached {
} or
TTokenMethodName(MethodName::Token g) { MethodName::range(g) } or
TTokenSuperCall(Ruby::Super g) { vcall(g) } or
TToplevel(Ruby::Program g) { g.getLocation().getFile().getExtension() != "erb" } or
TToplevel(Ruby::Program g) or
TTrueLiteral(Ruby::True g) or
TTuplePatternParameter(Ruby::DestructuredParameter g) or
TUnaryMinusExpr(Ruby::Unary g) { g instanceof @ruby_unary_minus } or