mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Remove PipeCallExpr
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user