Ruby: asExpr() -> getExprNode()

This commit is contained in:
Asger F
2022-11-07 09:18:00 +01:00
parent 8b85744d3e
commit 5fa49b3319

View File

@@ -158,7 +158,7 @@ class CallNode extends LocalSourceNode, ExprNode {
* ```
*/
class SetterCallNode extends CallNode {
SetterCallNode() { this.asExpr().getExpr() instanceof SetterMethodCall }
SetterCallNode() { this.getExprNode().getExpr() instanceof SetterMethodCall }
/**
* Gets the name of the method being called without the trailing `=`. For example, in the following
@@ -169,7 +169,7 @@ class SetterCallNode extends CallNode {
* ```
*/
final string getTargetName() {
result = this.asExpr().getExpr().(SetterMethodCall).getTargetName()
result = this.getExprNode().getExpr().(SetterMethodCall).getTargetName()
}
}