Lines Matching refs:pkg
136 pkg string member
140 return m.pkg == r.pkg
144 return fmt.Sprintf("//%s", r.pkg) // :__pkg__ is the default, so skip it.
154 return isAncestor(r.pkgPrefix, m.pkg)
242 checkRules(ctx, qualified.pkg, p.getName(), visibility)
259 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
264 if pkg == "visibility" {
290 if !isAllowedFromOutsideVendor(pkg, name) {
311 currentPkg := qualifiedModuleId.pkg
332 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
339 if pkg == "visibility" {
359 r = packageRule{pkg}
361 r = subpackagesRule{pkg}
393 func isAllowedFromOutsideVendor(pkg string, name string) bool {
394 if pkg == "vendor" {
401 return !isAncestor("vendor", pkg)
419 pkg := matches[1]
423 if pkg == "" {
424 pkg = currentPkg
430 return true, pkg, name
453 if depQualified.pkg == qualified.pkg {