csharp_json

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TDCsJsonDefineSTBuiltin = `` /* 974-byte string literal not displayed */
View Source
const TDCsJsonDefineSTStructBuiltin = `` /* 352-byte string literal not displayed */
View Source
const TDCsOptionJsonNameKey = "CsJsonName"

Variables

View Source
var TDCsJsonDefineST = &generator.TemplateDefine{
	Name:             "TDCsJsonDefineST",
	Filepath:         "csharp_json_define_st.tmpl",
	WantTemplateData: "TmplDataCsDefineST",

	BuiltinTemplateText: TDCsJsonDefineSTBuiltin,
}
View Source
var TDCsJsonDefineSTStruct = &generator.TemplateDefine{
	Name:             "TDCsJsonDefineSTStruct",
	Filepath:         "csharp_define_st_struct.tmpl",
	WantTemplateData: "TmplDataCsDefineST",

	BuiltinTemplateText: TDCsJsonDefineSTStructBuiltin,
}

Functions

func GenDefineSTCode added in v0.3.0

func GenFileForMessage

func GenFileForMessage(pSet *generator.PrototypeSet, origFn string) error

func GenFileForSet

func GenFileForSet(pSet *generator.PrototypeSet) error

为原型集生成代码文件

func PrepareTmplDataDefineSTField added in v0.3.0

func PrepareTmplDataDefineSTField(pSet *generator.PrototypeSet, td *maker_csharp.TmplDataCsDefineSTField, field *generator.DefineSTField) error

Types

type GeneratorConfig

type GeneratorConfig struct {
	*maker_csharp.Context
}

Jump to

Keyboard shortcuts

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