Lines Matching refs:c
49 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
53 c.globLock.Lock()
54 g, exists := c.globs[fileName]
55 c.globLock.Unlock()
64 files, deps, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
70 c.globLock.Lock()
71 if g, exists = c.globs[fileName]; !exists {
72 c.globs[fileName] = GlobPath{pattern, excludes, files, deps, fileName}
74 c.globLock.Unlock()
85 func (c *Context) Globs() []GlobPath {
86 fileNames := make([]string, 0, len(c.globs))
87 for k := range c.globs {
94 globs[i] = c.globs[fileName]
102 for _, c := range pattern {
104 case c >= 'a' && c <= 'z',
105 c >= 'A' && c <= 'Z',
106 c >= '0' && c <= '9',
107 c == '_', c == '-', c == '/':
108 ret += string(c)