MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getTargetOfAccessExpression

Method getTargetOfAccessExpression

internal/checker/checker.go:14938–14946  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

14936}
14937
14938func (c *Checker) getTargetOfAccessExpression(node *ast.Node) *ast.Symbol {
14939 if ast.IsBinaryExpression(node.Parent) {
14940 expr := node.Parent.AsBinaryExpression()
14941 if expr.Left == node && expr.OperatorToken.Kind == ast.KindEqualsToken {
14942 return c.getTargetOfAliasLikeExpression(expr.Right)
14943 }
14944 }
14945 return nil
14946}
14947
14948func (c *Checker) getModuleSpecifierForImportOrExport(node *ast.Node) *ast.Node {
14949 switch node.Kind {

Callers 1

Calls 3

IsBinaryExpressionFunction · 0.92
AsBinaryExpressionMethod · 0.80

Tested by

no test coverage detected