We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4210973 commit 687602bCopy full SHA for 687602b
ruby/ql/lib/codeql/ruby/experimental/Rbi.qll
@@ -70,13 +70,11 @@ module Rbi {
70
class RbiTypeAlias extends RbiType, DataFlow::CallNode {
71
RbiTypeAlias() { this = API::getTopLevelMember("T").getAMethodCall("type_alias") }
72
73
- // TODO: avoid mapping to AST layer
74
/**
75
* Gets the type aliased by this call.
76
*/
77
RbiType getAliasedType() {
78
- result.asExpr() =
79
- this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
+ result.asExpr() = this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
80
}
81
82
0 commit comments