JS: Remove PipeCallExpr

This commit is contained in:
Asger Feldthaus
2021-01-21 12:12:17 +00:00
parent 1d1149f4cd
commit 2f58683f2d

View File

@@ -241,19 +241,6 @@ module Angular2 {
override string getAPrimaryQlClass() { result = "Angular2::PipeRefExpr" }
}
/**
* A call derived from a pipe expression.
*
* For example, the expression `x | f: y` is desugared to `f(x, y)` where
* `f` is a `PipeRefExpr` and the call itself is a `PipeCallExpr`.
*/
class PipeCallExpr extends CallExpr {
PipeCallExpr() { getCallee() instanceof PipeRefExpr }
/** Gets the name of the pipe being invoked, such as `f` in `x | f`. */
string getPipeName() { result = getCallee().(PipeRefExpr).getName() }
}
/**
* A reference to a variable in a template expression, corresponding
* to a property on the component class.