mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Shared: Address review comments for shared basic block library
This commit is contained in:
@@ -4,11 +4,9 @@ private import codeql.ruby.AST
|
||||
private import codeql.ruby.ast.internal.AST
|
||||
private import codeql.ruby.ast.internal.TreeSitter
|
||||
private import codeql.ruby.controlflow.ControlFlowGraph
|
||||
private import codeql.ruby.controlflow.ControlFlowGraph as Cfg
|
||||
private import internal.ControlFlowGraphImpl as CfgImpl
|
||||
private import CfgNodes
|
||||
private import SuccessorTypes
|
||||
private import codeql.controlflow.BasicBlock as BB
|
||||
private import CfgImpl::BasicBlocks as BasicBlocksImpl
|
||||
|
||||
/**
|
||||
|
||||
@@ -65,9 +65,9 @@ private module CfgInput implements CfgShared::InputSig<Location> {
|
||||
|
||||
private predicate idOf(Ruby::AstNode node, int id) = equivalenceRelation(id/2)(node, id)
|
||||
|
||||
predicate idOfAstNode(AstNode node, int id) { idOf(AstInternal::toGeneratedInclSynth(node), id) }
|
||||
int idOfAstNode(AstNode node) { idOf(AstInternal::toGeneratedInclSynth(node), result) }
|
||||
|
||||
predicate idOfCfgScope(CfgScope node, int id) { idOfAstNode(node, id) }
|
||||
int idOfCfgScope(CfgScope node) { result = idOfAstNode(node) }
|
||||
}
|
||||
|
||||
private module CfgSplittingInput implements CfgShared::SplittingInputSig<Location, CfgInput> {
|
||||
|
||||
Reference in New Issue
Block a user