php

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const LanguageRef = "php"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTypehintsComments

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

func (*AddTypehintsComments) Process

func (pass *AddTypehintsComments) Process(schemas []*ast.Schema) ([]*ast.Schema, error)

type Builder

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

func (*Builder) Generate

func (jenny *Builder) Generate(context languages.Context) (codejen.Files, error)

func (*Builder) JennyName

func (jenny *Builder) JennyName() string

type Config

type Config struct {
	NamespaceRoot string `yaml:"namespace_root"`

	// OverridesTemplatesDirectories holds a list of directories containing templates
	// defining blocks used to override parts of builders/types/....
	OverridesTemplatesDirectories []string `yaml:"overrides_templates"`

	// ExtraFilesTemplatesDirectories holds a list of directories containing
	// templates describing files to be added to the generated output.
	ExtraFilesTemplatesDirectories []string `yaml:"extra_files_templates"`

	// ExtraFilesTemplatesData holds additional data to be injected into the
	// templates described in ExtraFilesTemplatesDirectories.
	ExtraFilesTemplatesData map[string]string `yaml:"-"`
	// contains filtered or unexported fields
}

func (*Config) InterpolateParameters

func (config *Config) InterpolateParameters(interpolator func(input string) string)

func (Config) MergeWithGlobal

func (config Config) MergeWithGlobal(global languages.Config) Config

type Converter

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

func (*Converter) Generate

func (jenny *Converter) Generate(context languages.Context) (codejen.Files, error)

func (*Converter) JennyName

func (jenny *Converter) JennyName() string

type Language

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

func New

func New(config Config) *Language

func (*Language) CompilerPasses

func (language *Language) CompilerPasses() compiler.Passes

func (*Language) Jennies

func (language *Language) Jennies(globalConfig languages.Config) *codejen.JennyList[languages.Context]

func (*Language) Name

func (language *Language) Name() string

func (*Language) NullableKinds

func (language *Language) NullableKinds() languages.NullableConfig

type RawTypes

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

func (RawTypes) Generate

func (jenny RawTypes) Generate(context languages.Context) (codejen.Files, error)

func (RawTypes) JennyName

func (jenny RawTypes) JennyName() string

type Runtime

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

func (Runtime) Generate

func (jenny Runtime) Generate(_ languages.Context) (codejen.Files, error)

func (Runtime) JennyName

func (jenny Runtime) JennyName() string

Jump to

Keyboard shortcuts

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