file

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

File is abstraction of a raw cue file It useful to statically analyze a file without validating the CUE value.

func New

func New(path string) (*File, error)

New create a File and analise CUE ast in it.

func (*File) AliasImportPath added in v0.3.4

func (f *File) AliasImportPath(alias string) (string, bool)

AliasImportPath returns the import path of some package alias.

func (*File) Content

func (f *File) Content() *ast.File

func (*File) Defs

func (f *File) Defs() *parser.Definitions

func (*File) Path

func (f *File) Path() string

func (*File) String

func (f *File) String() string

Jump to

Keyboard shortcuts

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