File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,6 @@ type NodeTransformOptions = {
39
39
parent ?: angular . AST ;
40
40
} ;
41
41
42
- const assignmentOperators = new Set ( [
43
- '=' ,
44
- // https://github.com/angular/angular/pull/62064
45
- '+=' , // addition assignment
46
- '-=' , // subtraction assignment
47
- '*=' , // multiplication assignment
48
- '/=' , // division assignment
49
- '%=' , // remainder assignment
50
- '**=' , // exponentiation assignment
51
- '&&=' , // logical AND assignment
52
- '||=' , // logical OR assignment
53
- '??=' , // nullish coalescing assignment
54
- ] ) ;
55
-
56
42
class Transformer extends Source {
57
43
#node;
58
44
#text;
@@ -184,7 +170,7 @@ class Transformer extends Source {
184
170
) ;
185
171
}
186
172
187
- if ( assignmentOperators . has ( operator ) ) {
173
+ if ( angular . Binary . isAssignmentOperation ( operator ) ) {
188
174
return this . #create< babel . AssignmentExpression > (
189
175
{
190
176
...properties ,
You can’t perform that action at this time.
0 commit comments