JS: Rename to Angular-style template

This commit is contained in:
Asger Feldthaus
2021-07-20 10:48:29 +02:00
parent 66cec65bfb
commit f26e94c0db
6 changed files with 14 additions and 14 deletions

View File

@@ -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
}
}

View File

@@ -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() }

View File

@@ -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
;