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

Function isDeclarationReadonly

internal/checker/utilities.go:805–807  ·  view source on GitHub ↗
(declaration *ast.Node)

Source from the content-addressed store, hash-verified

803}
804
805func isDeclarationReadonly(declaration *ast.Node) bool {
806 return ast.GetCombinedModifierFlags(declaration)&ast.ModifierFlagsReadonly != 0 && !ast.IsParameterPropertyDeclaration(declaration, declaration.Parent)
807}
808
809// orderedSetMapThreshold is the size at which an orderedSet materializes its dedup map.
810// Below this, contains() scans the values slice.

Calls 2

GetCombinedModifierFlagsFunction · 0.92

Tested by

no test coverage detected