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

Function IsModuleExportsAccessExpression

internal/ast/utilities.go:2850–2857  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

2848}
2849
2850func IsModuleExportsAccessExpression(node *Node) bool {
2851 if IsAccessExpression(node) && IsModuleIdentifier(node.Expression()) {
2852 if name := GetElementOrPropertyAccessName(node); name != nil {
2853 return name.Text() == "exports"
2854 }
2855 }
2856 return false
2857}
2858
2859func IsModuleExportsQualifiedName(node *Node) bool {
2860 return IsQualifiedName(node) && IsModuleIdentifier(node.AsQualifiedName().Left) && node.AsQualifiedName().Right.Text() == "exports"

Callers 6

getTextForRenameMethod · 0.92
getContainersOfSymbolMethod · 0.92

Calls 5

IsAccessExpressionFunction · 0.85
IsModuleIdentifierFunction · 0.85
ExpressionMethod · 0.80
TextMethod · 0.65

Tested by

no test coverage detected