gazelle

package
v1.202449.18 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

README

Kotlin Gazelle Extension

EXPERIMENTAL: This is a work in progress and is not yet ready for use. Work is ongoing including upcoming support for rules_jvm maven dependencies.

This is a Gazelle Language implementation for Kotlin using the rules_kotlin jvm rules.

Documentation

Index

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 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 ImportStatement

type ImportStatement struct {
	resolve.ImportSpec

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

TODO: drop? still used?

type KotlinBinTarget

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

func NewKotlinBinTarget(file, pkg string) *KotlinBinTarget

type KotlinLibTarget

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

func NewKotlinLibTarget() *KotlinLibTarget

type KotlinTarget

type KotlinTarget struct {
	Imports *treeset.Set
}

type ResolutionType

type ResolutionType = int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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