MCPcopy Create free account
hub / github.com/goadesign/goa / removeInvalidAtIndex

Function removeInvalidAtIndex

codegen/funcs.go:395–401  ·  view source on GitHub ↗

removeInvalidAtIndex removes consecutive invalid identifiers from runes starting at index i.

(i int, runes []rune)

Source from the content-addressed store, hash-verified

393
394// removeInvalidAtIndex removes consecutive invalid identifiers from runes starting at index i.
395func removeInvalidAtIndex(i int, runes []rune) []rune {
396 valid := i
397 for ; valid < len(runes) && !validIdentifier(runes[valid]); valid++ {
398 }
399
400 return append(runes[:i], runes[valid:]...)
401}
402
403var (
404 // common words who need to keep their

Callers 1

camelCaseUncachedFunction · 0.85

Calls 1

validIdentifierFunction · 0.85

Tested by

no test coverage detected