Documentation
¶
Index ¶
- Variables
- func FilesHandler(ctx context.Context, filesystem filesys_interface.FileSystem, paths []string, ...) <-chan *FileContent
- func ReducerCompile(base string, opts ...Option) error
- type ASTSequenceType
- type Config
- type FileContent
- type FileHandler
- type Option
- func WithCompileMethod(handler compileMethod) Option
- func WithContext(ctx context.Context) Option
- func WithEmbedFS(fs embed.FS) Option
- func WithEntryFiles(filename ...string) Option
- func WithFileSystem(fs fi.FileSystem) Option
- func WithProgramName(name string) Option
- func WithStrictMode(b bool) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var SkippedError error = utils.Error("compiling skipped")
Functions ¶
func FilesHandler ¶
func FilesHandler( ctx context.Context, filesystem filesys_interface.FileSystem, paths []string, handler func(path string, content []byte, store *utils.SafeMap[any]) (ssa.FrontAST, error), initWorker func() *utils.SafeMap[any], orderType ASTSequenceType, concurrency int, ) <-chan *FileContent
func ReducerCompile ¶ added in v1.3.3
Types ¶
type ASTSequenceType ¶
type ASTSequenceType int
const ( OutOfOrder ASTSequenceType = iota Order ReverseOrder )
type Config ¶
type Config struct {
ProgramName string
// contains filtered or unexported fields
}
func (*Config) GetCancelFunc ¶
func (c *Config) GetCancelFunc() context.CancelFunc
type FileContent ¶
type FileHandler ¶
type Option ¶
type Option func(config *Config)
func WithCompileMethod ¶
func WithCompileMethod(handler compileMethod) Option
func WithContext ¶
func WithEmbedFS ¶
func WithEntryFiles ¶ added in v1.3.3
func WithFileSystem ¶ added in v1.3.3
func WithFileSystem(fs fi.FileSystem) Option
func WithProgramName ¶
func WithStrictMode ¶
Click to show internal directories.
Click to hide internal directories.