types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0, LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeResolver

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

func NewTypeResolver

func NewTypeResolver(nodeNamer *services.NodeNamer) *TypeResolver

func (*TypeResolver) ResolvePHPParserTypes

func (r *TypeResolver) ResolvePHPParserTypes(typeScope *TypeScope, nodes ...ast.Expr) []string

type TypeScope

type TypeScope struct {
	Namespace string
	Uses      map[string]string
	FileNode  *ast.File
	FilePath  string
}

func NewTypeScope

func NewTypeScope(namespace string) *TypeScope

func (*TypeScope) AddUse

func (s *TypeScope) AddUse(className string, alias *string)

func (*TypeScope) GetUse

func (s *TypeScope) GetUse(classNameOrAlias string) *string

func (*TypeScope) GetUses

func (s *TypeScope) GetUses() map[string]string

func (*TypeScope) SetFileNode

func (s *TypeScope) SetFileNode(fileNode *ast.File) *TypeScope

func (*TypeScope) SetFilePath

func (s *TypeScope) SetFilePath(filepath string) *TypeScope

Jump to

Keyboard shortcuts

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