MCPcopy Create free account
hub / github.com/google/codesearch / emptyString

Function emptyString

index/regexp.go:411–417  ·  view source on GitHub ↗

emptyString returns the regexpInfo describing a regexp that matches only the empty string.

()

Source from the content-addressed store, hash-verified

409// emptyString returns the regexpInfo describing a regexp that
410// matches only the empty string.
411func emptyString() regexpInfo {
412 return regexpInfo{
413 canEmpty: true,
414 exact: []string{""},
415 match: allQuery,
416 }
417}
418
419// analyze returns the regexpInfo for the regexp re.
420func analyze(re *syntax.Regexp) (ret regexpInfo) {

Callers 1

analyzeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…