dart

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTestFile

func IsTestFile(filePath string) bool

IsTestFile reports whether the given Dart file path is a test file.

func ResolveDartProjectImports

func ResolveDartProjectImports(
	absPath string,
	filePath string,
	ext string,
	suppliedFiles map[string]bool,
	contentReader vcs.ContentReader,
) ([]string, error)

Types

type Import

type Import interface {
	URI() string
}

func Imports

func Imports(filePath string) ([]Import, error)

func ParseImports

func ParseImports(sourceCode []byte) ([]Import, error)

type Module

type Module struct{}

func (Module) Extensions

func (Module) Extensions() []string

func (Module) IsTestFile

func (Module) IsTestFile(filePath string, _ vcs.ContentReader) bool

func (Module) Maturity

func (Module) Maturity() langsupport.MaturityLevel

func (Module) Name

func (Module) Name() string

func (Module) NewResolver

func (Module) NewResolver(ctx *langsupport.Context, contentReader vcs.ContentReader) langsupport.Resolver

type PackageImport

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

PackageImport represents an external dependency (dart:* or package:*)

func (PackageImport) URI

func (p PackageImport) URI() string

type ProjectImport

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

ProjectImport represents an internal project file (relative paths)

func (ProjectImport) URI

func (p ProjectImport) URI() string

Jump to

Keyboard shortcuts

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