go_

package
v0.0.0-...-71fdcac Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GenTestEnvVar = "PARIGOT_GEN_TEST"

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldSpec

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

func (*FieldSpec) Name

func (f *FieldSpec) Name() string

func (*FieldSpec) Type

func (f *FieldSpec) Type() string

type GoGen

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

func NewGoGen

func NewGoGen(finder codegen.Finder) *GoGen

func (*GoGen) FuncMap

func (g *GoGen) FuncMap() template.FuncMap

func (*GoGen) Generate

func (g *GoGen) Generate(t *template.Template, info *codegen.GenInfo, impToPkg map[string]string) ([]*util.OutputFile, error)

func (*GoGen) GeneratingMessage

func (g *GoGen) GeneratingMessage() []string

func (*GoGen) LanguageText

func (g *GoGen) LanguageText() codegen.LanguageText

func (*GoGen) Process

func (g *GoGen) Process(pr *descriptorpb.FileDescriptorProto) error

func (*GoGen) ResultName

func (g *GoGen) ResultName() []string

func (*GoGen) TemplateName

func (g *GoGen) TemplateName() []string

type GoText

type GoText struct {
}

func NewGoText

func NewGoText() *GoText

func (*GoText) AllInputFormal

func (g *GoText) AllInputFormal(method *codegen.WasmMethod) string

func (*GoText) AllInputNumberedParam

func (g *GoText) AllInputNumberedParam(m *codegen.WasmMethod) string

func (*GoText) AllInputWasmToGoImpl

func (g *GoText) AllInputWasmToGoImpl(method *codegen.WasmMethod) string

func (*GoText) AllInputWithFormal

func (g *GoText) AllInputWithFormal(m *codegen.WasmMethod, showFormalName bool) string

func (*GoText) AllInputWithFormalWasmLevel

func (g *GoText) AllInputWithFormalWasmLevel(method *codegen.WasmMethod, showFormalName bool) string

func (*GoText) BasicTypeToReturnExpr

func (g *GoText) BasicTypeToReturnExpr(s string, num int, p *codegen.CGParameter) string

func (*GoText) BasicTypeToString

func (c *GoText) BasicTypeToString(s string, panicOnFail bool) string

func (*GoText) BasicTypeToWasm

func (g *GoText) BasicTypeToWasm(t string) []string

func (*GoText) CallFuncWithArg

func (g *GoText) CallFuncWithArg(
	funcName string,
	p []*codegen.CGParameter) string

func (*GoText) EmptyComposite

func (g *GoText) EmptyComposite(typeName string, _ *codegen.WasmMethod) string

func (*GoText) FormalArgSeparator

func (g *GoText) FormalArgSeparator() string

func (*GoText) FormalTypeCombination

func (g *GoText) FormalTypeCombination(formal, typ string) string

func (*GoText) FuncChoice

func (g *GoText) FuncChoice() *codegen.FuncChooser

func (*GoText) GetCGTypeName

func (g *GoText) GetCGTypeName(
	protoPkg string,
	_ *codegen.WasmMethod,
	p *codegen.CGParameter) string

func (*GoText) GetFormalName

func (g *GoText) GetFormalName(
	_ string,
	_ *codegen.WasmMethod,
	p *codegen.CGParameter) string

func (*GoText) GetFormalNameUnused

func (g *GoText) GetFormalNameUnused(
	_ string,
	_ *codegen.WasmMethod,
	_ *codegen.CGParameter) string

func (*GoText) GetNoInputParams

func (g *GoText) GetNoInputParams(
	_ string,
	_ *codegen.WasmMethod) string

func (*GoText) GetNoOutputParams

func (g *GoText) GetNoOutputParams(
	_ string,
	_ *codegen.WasmMethod) string

func (*GoText) GetNumberParametersUsed

func (g *GoText) GetNumberParametersUsed(
	cgType *codegen.CGType) int

func (*GoText) GetReturnValueDecl

func (g *GoText) GetReturnValueDecl(
	protoPkg string,
	_ *codegen.WasmMethod,
	p *codegen.CGParameter) string

func (*GoText) NilValue

func (g *GoText) NilValue() string

func (*GoText) NoReturnValueDecl

func (g *GoText) NoReturnValueDecl(
	_ string,
	_ *codegen.WasmMethod) string

func (*GoText) OutType

func (g *GoText) OutType(m *codegen.WasmMethod) string

func (*GoText) OutTypeDecl

func (g *GoText) OutTypeDecl(m *codegen.WasmMethod) string

func (*GoText) OutZeroValue

func (g *GoText) OutZeroValue(m *codegen.WasmMethod) string

OutZeroValue should return a legal value for its type. This value is just for compilers (to keep them quiet) so the value will never be used.

func (*GoText) OutZeroValueDecl

func (g *GoText) OutZeroValueDecl(m *codegen.WasmMethod) string

func (*GoText) ReturnErrorDecl

func (g *GoText) ReturnErrorDecl(m *codegen.WasmMethod, msg string) string

func (*GoText) ReturnValueDecl

func (g *GoText) ReturnValueDecl(m *codegen.WasmMethod) string

func (*GoText) ToId

func (g *GoText) ToId(id string, param bool, _ *codegen.WasmMethod) string

func (*GoText) ToTypeName

func (g *GoText) ToTypeName(tn string, ref bool, _ *codegen.WasmMethod) string

func (*GoText) ZeroValuesForProtoTypes

func (g *GoText) ZeroValuesForProtoTypes(s string) string

Jump to

Keyboard shortcuts

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