Lines Matching refs:rule
318 rule := parseRules(ctx, currentPkg, primaryProperty.getName(), visibility)
319 if rule != nil {
320 moduleToVisibilityRuleMap(ctx.Config()).Store(qualifiedModuleId, rule)
457 rule := effectiveVisibilityRules(ctx.Config(), depQualified)
458 if !rule.matches(qualified) {
474 var rule compositeRule
476 rule = value.(compositeRule)
478 rule = packageDefaultVisibility(config, qualified)
483 if rule == nil {
484 rule = defaultVisibility
486 return rule
574 rule := effectiveVisibilityRules(ctx.Config(), qualified)
579 if !rule.matches(qualified) {
580 if len(rule) == 1 {
581 if _, ok := rule[0].(privateRule); ok {
588 rule = nil
591 rule = append(rule, packageRule{dir})
594 return &visibilityRuleSet{rule.Strings()}