rules_closure

package
v0.0.0-...-5428336 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrpcClosureJsLibraryRuleName   = "grpc_closure_js_library"
	GrpcClosureJsLibraryRuleSuffix = "_grpc_closure_js_library"
)
View Source
const (
	ProtoClosurejsLibraryRuleName   = "proto_closure_js_library"
	ProtoClosureJsLibraryRuleSuffix = "_closure_js_library"
)

Variables

This section is empty.

Functions

func ResolveTransitiveProtoLibraryDeps

func ResolveTransitiveProtoLibraryDeps(rel string, r *rule.Rule) map[string]string

Types

type ClosureJsLibrary

type ClosureJsLibrary struct {
	KindName       string
	RuleNameSuffix string
	Outputs        []string
	Config         *protoc.ProtocConfiguration
	RuleConfig     *protoc.LanguageRuleConfig
	Resolver       protoc.DepsResolver
}

ClosureJsLibrary implements RuleProvider for 'py_library'-derived rules.

func (*ClosureJsLibrary) Deps

func (s *ClosureJsLibrary) Deps() []string

Deps computes the deps list for the rule.

func (*ClosureJsLibrary) Imports

func (s *ClosureJsLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec

Imports implements part of the RuleProvider interface.

func (*ClosureJsLibrary) Kind

func (s *ClosureJsLibrary) Kind() string

Kind implements part of the ruleProvider interface.

func (*ClosureJsLibrary) Name

func (s *ClosureJsLibrary) Name() string

Name implements part of the ruleProvider interface.

func (*ClosureJsLibrary) Resolve

func (s *ClosureJsLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)

Resolve implements part of the RuleProvider interface.

func (*ClosureJsLibrary) Rule

func (s *ClosureJsLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule

Rule implements part of the ruleProvider interface.

func (*ClosureJsLibrary) Srcs

func (s *ClosureJsLibrary) Srcs() []string

Srcs computes the srcs list for the rule.

func (*ClosureJsLibrary) Visibility

func (s *ClosureJsLibrary) Visibility() []string

Visibility provides visibility labels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL