ruby: drop a TODO

This commit is contained in:
Alex Ford
2022-05-04 14:06:37 +01:00
parent 4210973ade
commit 687602b6f1

View File

@@ -70,13 +70,11 @@ module Rbi {
class RbiTypeAlias extends RbiType, DataFlow::CallNode {
RbiTypeAlias() { this = API::getTopLevelMember("T").getAMethodCall("type_alias") }
// TODO: avoid mapping to AST layer
/**
* Gets the type aliased by this call.
*/
RbiType getAliasedType() {
result.asExpr() =
this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
result.asExpr() = this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
}
}