mbast

package
v0.0.0-...-b1b07d5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindNode

type BindNode = Node

type Doc

type Doc string

func (*Doc) ParseAttribute

func (d *Doc) ParseAttribute(attrNameDoc string, attrArgsDoc string) attribute.Attribute

func (*Doc) ParseAttributes

func (d *Doc) ParseAttributes() []attribute.Attribute

type File

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

type Files

type Files []*File

func NewFiles

func NewFiles(modIns mod.Mod) (Files, error)

func (Files) Parser

func (fs Files) Parser() (Nodes, error)

type InterfaceNode

type InterfaceNode = Node

type Node

type Node struct {
	Name         string
	PackageName  string
	PackageAlias string
	PackageFQN   string
	Type         Type
	Receiver     *Node
	Attributes   []attribute.Attribute
}

func NewNodeFormString

func NewNodeFormString(name string, nodeType Type, nodeAttrs []attribute.Attribute) *Node

func (*Node) GetTplRef

func (n *Node) GetTplRef() string

func (*Node) GetTplRefPrefix

func (n *Node) GetTplRefPrefix() string

func (*Node) ResetAlias

func (n *Node) ResetAlias(nodes []*Node) *Node

type Nodes

type Nodes []*Node

func (Nodes) FillNodesAlias

func (l Nodes) FillNodesAlias() Nodes

func (Nodes) GetAlisaFQNs

func (l Nodes) GetAlisaFQNs() map[string]string

type StructNode

type StructNode = Node

type Type

type Type int
const (
	InterfaceType Type = iota

	StructType

	FuncType

	UnknownType
)

func TypeFromExpr

func TypeFromExpr(expr ast.Expr) Type

func TypeFromString

func TypeFromString(str string) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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