MCPcopy Index your code
hub / github.com/docker/docker-agent / isConstructorName

Function isConstructorName

lint/constructor_purity.go:68–70  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

66}
67
68func isConstructorName(name string) bool {
69 return name == "New" || (len(name) > 3 && name[:3] == "New" && name[3] >= 'A' && name[3] <= 'Z')
70}
71
72// inspectConstructionBody walks body and visits nodes that run as part of
73// executing the constructor. Nested function literals are skipped unless they

Callers 1

isConstructorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected