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

Method PropertyName

internal/ast/ast.go:858–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

856}
857
858func (n *Node) PropertyName() *Node {
859 switch n.Kind {
860 case KindImportSpecifier:
861 return n.AsImportSpecifier().PropertyName
862 case KindExportSpecifier:
863 return n.AsExportSpecifier().PropertyName
864 case KindBindingElement:
865 return n.AsBindingElement().PropertyName
866 }
867 return nil
868}
869
870func (n *Node) PropertyNameOrName() *Node {
871 name := n.PropertyName()

Callers 15

PropertyNameOrNameMethod · 0.95
getTextForRenameMethod · 0.80
isNodeImportFunction · 0.80
forEachRelatedSymbolMethod · 0.80
filterObjectMembersListFunction · 0.80
jsDocParamElementWorkerFunction · 0.80

Calls 3

AsImportSpecifierMethod · 0.95
AsExportSpecifierMethod · 0.95
AsBindingElementMethod · 0.95

Tested by

no test coverage detected