(expression *ast.Node)
| 14912 | } |
| 14913 | |
| 14914 | func (c *Checker) getTargetOfAliasLikeExpression(expression *ast.Node) *ast.Symbol { |
| 14915 | if ast.IsClassExpression(expression) { |
| 14916 | return c.checkExpressionCached(expression).symbol |
| 14917 | } |
| 14918 | if !ast.IsEntityName(expression) && !ast.IsEntityNameExpression(expression) { |
| 14919 | return nil |
| 14920 | } |
| 14921 | aliasLike := c.resolveEntityName(expression, ast.SymbolFlagsValue|ast.SymbolFlagsType|ast.SymbolFlagsNamespace, true /*ignoreErrors*/, true /*dontResolveAlias*/, nil /*location*/) |
| 14922 | if aliasLike != nil { |
| 14923 | return aliasLike |
| 14924 | } |
| 14925 | c.checkExpressionCached(expression) |
| 14926 | return c.getResolvedSymbolOrNil(expression) |
| 14927 | } |
| 14928 | |
| 14929 | func (c *Checker) getTargetOfNamespaceExportDeclaration(node *ast.Node) *ast.Symbol { |
| 14930 | if ast.CanHaveSymbol(node.Parent) { |
no test coverage detected