library

package
v0.0.0-...-ba74bcc Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareMethods

func CompareMethods(a, b Method) bool

Types

type Class

type Class struct {
	ClassName    string
	Methods      []Method
	IsSingleton  bool
	DoesNotExist bool
}

func (*Class) FindCompatibleMethod

func (class *Class) FindCompatibleMethod(method Method) *Method

FindCompatibleMethod finds a compatible method in the current class by comparing the method name and the parameter types, but ignoring the return types.

type Library

type Library struct {
	LibraryName string
	Classes     map[string]Class
	Defines     map[string]string
}

func ReadLibrary

func ReadLibrary(config config.LibraryConfig, keepBuildDir bool) *Library

type Method

type Method struct {
	MethodName   string
	ReturnType   string
	Ctor         bool
	Parameters   []Parameter
	DoesNotExist bool
}

func (*Method) Overrides

func (method *Method) Overrides(other Method) bool

func (*Method) Signature

func (method *Method) Signature(withParams bool, withReturnType bool) string

Signature returns a string representing the method signature

type Parameter

type Parameter struct {
	ParameterName string
	Type          string
	DefaultValue  string
}

Jump to

Keyboard shortcuts

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