core

package
v0.0.0-...-3bf0e48 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertTranspilation

func AssertTranspilation(t *testing.T, config *AssertTranspilationConfig)

func InitTranspiler

func InitTranspiler(contextConfig *TranspilerContextConfig)

Types

type AssertTranspilationConfig

type AssertTranspilationConfig struct {
	SourceFilename    string
	SourceCode        string
	TargetCode        string
	TranspileFunction TranspileFunction
}

type TranspileFunction

type TranspileFunction func(config *TranspileFunctionConfig) (string, error)

type TranspileFunctionConfig

type TranspileFunctionConfig struct {
	LocalPathPrefix string
	LocalPath       string
}

type TranspilerContext

type TranspilerContext struct {
	SentryService   *sentry.SentryService
	MetricsService  *metrics.MetricsService
	StorageService  *storage.StorageService
	QueueService    *queue.QueueService
	MessagesService *messages.MessagesService
	// contains filtered or unexported fields
}

func (*TranspilerContext) StopTranspiler

func (t *TranspilerContext) StopTranspiler()

type TranspilerContextConfig

type TranspilerContextConfig struct {
	SourceLanguage              string
	SourceLanguageFileExtension string
	TargetLanguage              string
	TargetLanguageFileExtension string

	TranspileFunction TranspileFunction
}

Jump to

Keyboard shortcuts

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