Remove fromGeneratedInclSynth predicate

This commit is contained in:
Nick Rolfe
2021-04-29 13:58:16 +01:00
parent f3852f9b56
commit 9540125771
2 changed files with 1 additions and 4 deletions

View File

@@ -392,8 +392,6 @@ import Cached
TAstNode fromGenerated(Generated::AstNode n) { n = toGenerated(result) }
TAstNode fromGeneratedInclSynth(Generated::AstNode n) { n = toGeneratedInclSynth(result) }
class TCall = TMethodCall or TYieldCall;
class TMethodCall =

View File

@@ -1318,8 +1318,7 @@ private module Cached {
/** Gets the CFG scope of node `n`. */
cached
CfgScope getCfgScopeImpl(AstNode n) {
result =
parent*(ASTInternal::fromGeneratedInclSynth(scopeOf(ASTInternal::toGeneratedInclSynth(n))))
result = parent*(ASTInternal::fromGenerated(scopeOf(ASTInternal::toGeneratedInclSynth(n))))
}
private predicate isAbnormalExitType(SuccessorType t) {