(node *ast.Node)
| 780 | } |
| 781 | |
| 782 | func getNodeForQuickInfo(node *ast.Node) *ast.Node { |
| 783 | if node.Parent == nil { |
| 784 | return node |
| 785 | } |
| 786 | if ast.IsNewExpression(node.Parent) && node.Pos() == node.Parent.Pos() { |
| 787 | return node.Parent.Expression() |
| 788 | } |
| 789 | if ast.IsNamedTupleMember(node.Parent) && node.Pos() == node.Parent.Pos() { |
| 790 | return node.Parent |
| 791 | } |
| 792 | if ast.IsImportMeta(node.Parent) && node.Parent.Name() == node { |
| 793 | return node.Parent |
| 794 | } |
| 795 | if ast.IsJsxNamespacedName(node.Parent) { |
| 796 | return node.Parent |
| 797 | } |
| 798 | return node |
| 799 | } |
| 800 | |
| 801 | func getSymbolAtLocationForQuickInfo(c *checker.Checker, node *ast.Node) *ast.Symbol { |
| 802 | if objectElement := getContainingObjectLiteralElement(node); objectElement != nil { |
no test coverage detected