Lines Matching refs:pattern
34 func verifyGlob(fileName, pattern string, excludes []string, g GlobPath) {
35 if pattern != g.Pattern {
36 panic(fmt.Errorf("Mismatched patterns %q and %q for glob file %q", pattern, g.Pattern, fileName))
49 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
50 fileName := globToFileName(pattern, excludes)
59 verifyGlob(fileName, pattern, excludes, g)
64 files, deps, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
72 c.globs[fileName] = GlobPath{pattern, excludes, files, deps, fileName}
78 verifyGlob(fileName, pattern, excludes, g)
100 func globToString(pattern string) string {
102 for _, c := range pattern {
117 func globToFileName(pattern string, excludes []string) string {
118 name := globToString(pattern)