Documentation ¶
Index ¶
- Constants
- type FieldSpec
- type GoGen
- func (g *GoGen) FuncMap() template.FuncMap
- func (g *GoGen) Generate(t *template.Template, info *codegen.GenInfo, impToPkg map[string]string) ([]*util.OutputFile, error)
- func (g *GoGen) GeneratingMessage() []string
- func (g *GoGen) LanguageText() codegen.LanguageText
- func (g *GoGen) Process(pr *descriptorpb.FileDescriptorProto) error
- func (g *GoGen) ResultName() []string
- func (g *GoGen) TemplateName() []string
- type GoText
- func (g *GoText) AllInputFormal(method *codegen.WasmMethod) string
- func (g *GoText) AllInputNumberedParam(m *codegen.WasmMethod) string
- func (g *GoText) AllInputWasmToGoImpl(method *codegen.WasmMethod) string
- func (g *GoText) AllInputWithFormal(m *codegen.WasmMethod, showFormalName bool) string
- func (g *GoText) AllInputWithFormalWasmLevel(method *codegen.WasmMethod, showFormalName bool) string
- func (g *GoText) BasicTypeToReturnExpr(s string, num int, p *codegen.CGParameter) string
- func (c *GoText) BasicTypeToString(s string, panicOnFail bool) string
- func (g *GoText) BasicTypeToWasm(t string) []string
- func (g *GoText) CallFuncWithArg(funcName string, p []*codegen.CGParameter) string
- func (g *GoText) EmptyComposite(typeName string, _ *codegen.WasmMethod) string
- func (g *GoText) FormalArgSeparator() string
- func (g *GoText) FormalTypeCombination(formal, typ string) string
- func (g *GoText) FuncChoice() *codegen.FuncChooser
- func (g *GoText) GetCGTypeName(protoPkg string, _ *codegen.WasmMethod, p *codegen.CGParameter) string
- func (g *GoText) GetFormalName(_ string, _ *codegen.WasmMethod, p *codegen.CGParameter) string
- func (g *GoText) GetFormalNameUnused(_ string, _ *codegen.WasmMethod, _ *codegen.CGParameter) string
- func (g *GoText) GetNoInputParams(_ string, _ *codegen.WasmMethod) string
- func (g *GoText) GetNoOutputParams(_ string, _ *codegen.WasmMethod) string
- func (g *GoText) GetNumberParametersUsed(cgType *codegen.CGType) int
- func (g *GoText) GetReturnValueDecl(protoPkg string, _ *codegen.WasmMethod, p *codegen.CGParameter) string
- func (g *GoText) NilValue() string
- func (g *GoText) NoReturnValueDecl(_ string, _ *codegen.WasmMethod) string
- func (g *GoText) OutType(m *codegen.WasmMethod) string
- func (g *GoText) OutTypeDecl(m *codegen.WasmMethod) string
- func (g *GoText) OutZeroValue(m *codegen.WasmMethod) string
- func (g *GoText) OutZeroValueDecl(m *codegen.WasmMethod) string
- func (g *GoText) ReturnErrorDecl(m *codegen.WasmMethod, msg string) string
- func (g *GoText) ReturnValueDecl(m *codegen.WasmMethod) string
- func (g *GoText) ToId(id string, param bool, _ *codegen.WasmMethod) string
- func (g *GoText) ToTypeName(tn string, ref bool, _ *codegen.WasmMethod) string
- func (g *GoText) ZeroValuesForProtoTypes(s string) string
Constants ¶
View Source
const GenTestEnvVar = "PARIGOT_GEN_TEST"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoGen ¶
type GoGen struct {
// contains filtered or unexported fields
}
func (*GoGen) GeneratingMessage ¶
func (*GoGen) LanguageText ¶
func (g *GoGen) LanguageText() codegen.LanguageText
func (*GoGen) Process ¶
func (g *GoGen) Process(pr *descriptorpb.FileDescriptorProto) error
func (*GoGen) ResultName ¶
func (*GoGen) TemplateName ¶
type GoText ¶
type GoText struct { }
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 (*GoText) BasicTypeToString ¶
func (*GoText) BasicTypeToWasm ¶
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 (*GoText) FormalTypeCombination ¶
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 (*GoText) GetReturnValueDecl ¶
func (g *GoText) GetReturnValueDecl( protoPkg string, _ *codegen.WasmMethod, p *codegen.CGParameter) string
func (*GoText) NoReturnValueDecl ¶
func (g *GoText) NoReturnValueDecl( _ string, _ *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) ToTypeName ¶
func (*GoText) ZeroValuesForProtoTypes ¶
Click to show internal directories.
Click to hide internal directories.