(expr ast.Expression)
| 1790 | } |
| 1791 | |
| 1792 | func (e *compiledClassLiteral) processClassKey(expr ast.Expression) (privateName *privateName, key unistring.String, computed bool) { |
| 1793 | if p, ok := expr.(*ast.PrivateIdentifier); ok { |
| 1794 | privateName = e.c.classScope.getDeclaredPrivateId(p.Name) |
| 1795 | key = privateIdString(p.Name) |
| 1796 | return |
| 1797 | } |
| 1798 | key, computed = e.c.processKey(expr) |
| 1799 | return |
| 1800 | } |
| 1801 | |
| 1802 | type clsElement struct { |
| 1803 | key unistring.String |
no test coverage detected