File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
test/query-tests/Expressions/SelfAssignment Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 43
43
// exclude DOM properties
44
44
not isDOMProperty ( e .( PropAccess ) .getPropertyName ( ) ) and
45
45
// exclude self-assignments that have been inserted to satisfy the TypeScript JS-checker
46
- not e .getAssignment ( ) .getParent ( ) .( ExprStmt ) .getDocumentation ( ) .getATag ( ) .getTitle ( ) = "type"
46
+ not e .getAssignment ( ) .getParent ( ) .( ExprStmt ) .getDocumentation ( ) .getATag ( ) .getTitle ( ) = "type" and
47
+ // exclude self-assignments in speculatively parsed template files
48
+ // named arguments may be incorrectly parsed as assignments
49
+ not e .getTopLevel ( ) instanceof Templating:: TemplateTopLevel
47
50
select e .getParent ( ) , "This expression assigns " + dsc + " to itself."
Original file line number Diff line number Diff line change
1
+ <div >
2
+ {{ foo (x = x ) }}
3
+ </div >
You can’t perform that action at this time.
0 commit comments