gazelle

package
v1.505.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KtJvmLibrary              = "kt_jvm_library"
	RulesKotlinRepositoryName = "io_bazel_rules_kotlin"
)
View Source
const (
	Resolution_Error      = -1
	Resolution_None       = 0
	Resolution_NotFound   = 1
	Resolution_Label      = 2
	Resolution_NativeNode = 3
)
View Source
const LanguageName = "kotlin"
View Source
const (
	// TODO: move to common
	MaxWorkerCount = 12
)

Variables

This section is empty.

Functions

func IsNativeImport

func IsNativeImport(impt string) bool

func NewLanguage

func NewLanguage() language.Language

NewLanguage initializes a new TypeScript that satisfies the language.Language interface. This is the entrypoint for the extension initialization.

Types

type Configurer

type Configurer struct {
	config.Configurer
	// contains filtered or unexported fields
}

func NewConfigurer

func NewConfigurer(lang *kotlinLang) *Configurer

func (*Configurer) CheckFlags

func (kc *Configurer) CheckFlags(fs *flag.FlagSet, c *config.Config) error

func (*Configurer) Configure

func (kt *Configurer) Configure(c *config.Config, rel string, f *rule.File)

func (*Configurer) KnownDirectives

func (kt *Configurer) KnownDirectives() []string

func (*Configurer) RegisterFlags

func (kc *Configurer) RegisterFlags(fs *flag.FlagSet, cmd string, c *config.Config)

type ImportStatement

type ImportStatement struct {
	resolve.ImportSpec

	// The path of the file containing the import
	SourcePath string
}

type Java_MavenResolver

type Java_MavenResolver interface {
	Resolve(pkg Java_PackageName) (label.Label, error)
}

type Java_PackageName

type Java_PackageName struct {
	Name string
}

type KotlinImports

type KotlinImports struct {
	// contains filtered or unexported fields
}

TsProject rule import data

func (*KotlinImports) Add

func (i *KotlinImports) Add(impt ImportStatement)

type ResolutionType

type ResolutionType = int

type Resolver

type Resolver struct {
	resolve.Resolver
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(lang *kotlinLang) *Resolver

func (*Resolver) Embeds

func (kt *Resolver) Embeds(r *rule.Rule, from label.Label) []label.Label

func (*Resolver) Imports

func (kt *Resolver) Imports(c *config.Config, r *rule.Rule, f *rule.File) []resolve.ImportSpec

Determine what rule (r) outputs which can be imported.

func (*Resolver) Name

func (*Resolver) Name() string

func (*Resolver) Resolve

func (kt *Resolver) Resolve(c *config.Config, ix *resolve.RuleIndex, rc *repo.RemoteCache, r *rule.Rule, importData interface{}, from label.Label)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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