translator

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2017 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Node         jsast.INode
	Exported     bool
	Dependencies []string
}

Result of the translation

type Translator

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

Translator struct

func New

func New(index *index.Index) *Translator

New fn

func (*Translator) Rewrite

func (tr *Translator) Rewrite(rewrite def.Rewrite, def def.Definition, sp *scope.Scope, caller ast.Expr, args ...ast.Expr) (jsast.IExpression, error)

Rewrite fn

func (*Translator) Translate

func (tr *Translator) Translate(d def.Definition) (jsast.INode, error)

Translate fn

Jump to

Keyboard shortcuts

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