Documentation ¶
Index ¶
- Constants
- func IsNativeImport(impt string) bool
- func NewLanguage() language.Language
- type Configurer
- type ImportStatement
- type Java_MavenResolver
- type Java_PackageName
- type KotlinBinTarget
- type KotlinLibTarget
- type KotlinTarget
- type ResolutionType
- type Resolver
- func (kt *Resolver) Embeds(r *rule.Rule, from label.Label) []label.Label
- func (kt *Resolver) Imports(c *config.Config, r *rule.Rule, f *rule.File) []resolve.ImportSpec
- func (*Resolver) Name() string
- func (kt *Resolver) Resolve(c *config.Config, ix *resolve.RuleIndex, rc *repo.RemoteCache, r *rule.Rule, ...)
Constants ¶
View Source
const ( KtJvmLibrary = "kt_jvm_library" KtJvmBinary = "kt_jvm_binary" RulesKotlinRepositoryName = "io_bazel_rules_kotlin" )
View Source
const ( Resolution_Error = -1 Resolution_None = 0 Resolution_NotFound = 1 Resolution_Label = 2 Resolution_NativeKotlin = 3 )
View Source
const LanguageName = "kotlin"
View Source
const (
// TODO: move to common
MaxWorkerCount = 12
)
Variables ¶
This section is empty.
Functions ¶
func IsNativeImport ¶
func NewLanguage ¶
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 (*Configurer) KnownDirectives ¶
func (kt *Configurer) KnownDirectives() []string
func (*Configurer) RegisterFlags ¶
type ImportStatement ¶
type ImportStatement struct { resolve.ImportSpec // The path of the file containing the import SourcePath string }
TODO: drop? still used?
type Java_MavenResolver ¶
type Java_MavenResolver interface {
Resolve(pkg Java_PackageName) (label.Label, error)
}
type Java_PackageName ¶
type Java_PackageName struct {
Name string
}
type KotlinBinTarget ¶ added in v1.507.2
type KotlinBinTarget struct { KotlinTarget File string Package string }
*
- Information for kotlin binary (main() method) including:
- - kotlin import statements from all files
- - the package
- - the file
func NewKotlinBinTarget ¶ added in v1.507.2
func NewKotlinBinTarget(file, pkg string) *KotlinBinTarget
type KotlinLibTarget ¶ added in v1.507.2
type KotlinLibTarget struct { KotlinTarget Packages *treeset.Set Files *treeset.Set }
*
- Information for kotlin library target including:
- - kotlin files
- - kotlin import statements from all files
- - kotlin packages implemented
func NewKotlinLibTarget ¶ added in v1.507.2
func NewKotlinLibTarget() *KotlinLibTarget
type KotlinTarget ¶ added in v1.507.2
type ResolutionType ¶
type ResolutionType = int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.