mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: Rename to Angular-style template
This commit is contained in:
@@ -308,7 +308,7 @@ class CodeInAttribute extends TopLevel {
|
||||
CodeInAttribute() {
|
||||
this instanceof @event_handler or
|
||||
this instanceof @javascript_url or
|
||||
this instanceof @angular_template_toplevel
|
||||
this instanceof @template_toplevel
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ module Angular2 {
|
||||
* For example, the expression `x | f: y` is desugared to `f(x, y)` where
|
||||
* `f` is a `PipeRefExpr`.
|
||||
*/
|
||||
class PipeRefExpr extends Expr, @angular_pipe_ref {
|
||||
class PipeRefExpr extends Expr, @template_pipe_ref {
|
||||
/** Gets the identifier node naming the pipe. */
|
||||
Identifier getIdentifier() { result = getChildExpr(0) }
|
||||
|
||||
@@ -256,7 +256,7 @@ module Angular2 {
|
||||
}
|
||||
|
||||
/** The top-level containing an Angular expression. */
|
||||
class TemplateTopLevel extends TopLevel, @angular_template_toplevel {
|
||||
class TemplateTopLevel extends TopLevel, @template_toplevel {
|
||||
/** Gets the expression in this top-level. */
|
||||
Expr getExpression() { result = getChildStmt(0).(ExprStmt).getExpr() }
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ case @toplevel.kind of
|
||||
| 1 = @inline_script
|
||||
| 2 = @event_handler
|
||||
| 3 = @javascript_url
|
||||
| 4 = @angular_template_toplevel;
|
||||
| 4 = @template_toplevel;
|
||||
|
||||
is_module (int tl: @toplevel ref);
|
||||
is_nodejs (int tl: @toplevel ref);
|
||||
@@ -365,7 +365,7 @@ case @expr.kind of
|
||||
| 116 = @assignlogandexpr
|
||||
| 117 = @assignlogorexpr
|
||||
| 118 = @assignnullishcoalescingexpr
|
||||
| 119 = @angular_pipe_ref
|
||||
| 119 = @template_pipe_ref
|
||||
| 120 = @generated_code_expr
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user