renamed "importmetaexpr" to "import_meta_expr"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:54:40 +02:00
parent ef5e1b0862
commit 05e0d1a02d
4 changed files with 4 additions and 4 deletions

View File

@@ -262,7 +262,7 @@ public class ExprKinds {
@Override @Override
public Integer visit(MetaProperty nd, Void c) { public Integer visit(MetaProperty nd, Void c) {
if (nd.getMeta().getName().equals("new")) return 82; // @newtarget_expr if (nd.getMeta().getName().equals("new")) return 82; // @newtarget_expr
if (nd.getMeta().getName().equals("import")) return 115; // @importmetaexpr if (nd.getMeta().getName().equals("import")) return 115; // @import_meta_expr
return 93; // @function_sent_expr return 93; // @function_sent_expr
} }

View File

@@ -2773,6 +2773,6 @@ class OptionalChainRoot extends ChainElem {
* let url = import.meta.url; * let url = import.meta.url;
* ``` * ```
*/ */
class ImportMetaExpr extends @importmetaexpr, Expr { class ImportMetaExpr extends @import_meta_expr, Expr {
override predicate isImpure() { none() } override predicate isImpure() { none() }
} }

View File

@@ -350,7 +350,7 @@ case @expr.kind of
| 112 = @e4x_xml_static_qualident | 112 = @e4x_xml_static_qualident
| 113 = @e4x_xml_dynamic_qualident | 113 = @e4x_xml_dynamic_qualident
| 114 = @e4x_xml_dotdotexpr | 114 = @e4x_xml_dotdotexpr
| 115 = @importmetaexpr | 115 = @import_meta_expr
| 116 = @assignlogandexpr | 116 = @assignlogandexpr
| 117 = @assignlogorexpr | 117 = @assignlogorexpr
| 118 = @assignnullishcoalescingexpr | 118 = @assignnullishcoalescingexpr

View File

@@ -526,7 +526,7 @@
<v>1</v> <v>1</v>
</e> </e>
<e> <e>
<k>@importmetaexpr</k> <k>@import_meta_expr</k>
<v>1</v> <v>1</v>
</e> </e>
<e> <e>