MCPcopy Create free account
hub / github.com/decomp/decomp / isID

Function isID

cmd/ll2go/main.go:482–489  ·  view source on GitHub ↗

isID reports if the given string is an unnamed identifier.

(s string)

Source from the content-addressed store, hash-verified

480
481// isID reports if the given string is an unnamed identifier.
482func isID(s string) bool {
483 for _, r := range s {
484 if !strings.ContainsRune("0123456789", r) {
485 return false
486 }
487 }
488 return true
489}
490
491// ident returns a sanitized version of the given identifier.
492func ident(s string) *ast.Ident {

Callers 3

typeIdentMethod · 0.85
globalIdentMethod · 0.85
localIdentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected