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

Method getCombinedModifierFlagsCached

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

Source from the content-addressed store, hash-verified

18640}
18641
18642func (c *Checker) getCombinedModifierFlagsCached(node *ast.Node) ast.ModifierFlags {
18643 // we hold onto the last node and result to speed up repeated lookups against the same node.
18644 if c.lastGetCombinedModifierFlagsNode == node {
18645 return c.lastGetCombinedModifierFlagsResult
18646 }
18647 c.lastGetCombinedModifierFlagsNode = node
18648 c.lastGetCombinedModifierFlagsResult = ast.GetCombinedModifierFlags(node)
18649 return c.lastGetCombinedModifierFlagsResult
18650}
18651
18652/**
18653 * Push an entry on the type resolution stack. If an entry with the given target and the given property name

Calls 1

GetCombinedModifierFlagsFunction · 0.92

Tested by

no test coverage detected