language

package
v0.0.0-...-9dab196 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct {
	configurer.Configurer
	resolver.Resolver
}

Language implements the language.Language interface.

func (*Language) Fix

func (l *Language) Fix(*config.Config, *rule.File)

Fix implements the language.Language interface.

func (*Language) GenerateRules

func (l *Language) GenerateRules(args language.GenerateArgs) language.GenerateResult

GenerateRules implements the language.Language interface.

GenerateRules generates build rules for source files in a directory. GenerateRules is called in each directory where an update is requested in depth-first order.

This method does not populate the deps argument of any generate rules. Dependencies are resolved in Resolver.Resolve(), which happens after GenerateRules is called in each directory where an update is requested.

func (*Language) Kinds

func (l *Language) Kinds() map[string]rule.KindInfo

Kinds implements the language.Language interface.

Interface documentation:

Kinds returns a map of maps rule names (kinds) and information on how to match and merge attributes that may be found in rules of those kinds. All kinds of rules generated for this language may be found here.

func (*Language) Loads

func (l *Language) Loads() []rule.LoadInfo

Loads implements the language.Language interface.

Interface documentation:

Loads returns .bzl files and symbols they define. Every rule generated by GenerateRules, now or in the past, should be loadable from one of these files.

Jump to

Keyboard shortcuts

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