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

Function IsStatic

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

Source from the content-addressed store, hash-verified

1027}
1028
1029func IsStatic(node *Node) bool {
1030 // https://tc39.es/ecma262/#sec-static-semantics-isstatic
1031 return IsClassElement(node) && HasStaticModifier(node) || IsClassStaticBlockDeclaration(node)
1032}
1033
1034func CanHaveSymbol(node *Node) bool {
1035 switch node.Kind {

Calls 3

IsClassElementFunction · 0.85
HasStaticModifierFunction · 0.85

Tested by

no test coverage detected