mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
CFG: Allow erb top-level scopes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user