Versions in this module Expand all Collapse all v0 v0.10.0 Apr 16, 2023 Changes in this version + type Namespace struct + Aliases map[string]map[string]string + Namespace string + func NewNamespace(NSName string) *Namespace + func (ns *Namespace) AddAlias(aliasType string, aliasName string, alias string) + func (ns *Namespace) ResolveAlias(nameNode ast.Vertex, aliasType string) (string, error) + func (ns *Namespace) ResolveName(nameNode ast.Vertex, aliasType string) (string, error) + type NamespaceResolver struct + Namespace *Namespace + ResolvedNames map[ast.Vertex]string + func NewNamespaceResolver() *NamespaceResolver + func (nsr *NamespaceResolver) AddAlias(useType string, nn ast.Vertex, prefix []ast.Vertex) + func (nsr *NamespaceResolver) AddNamespacedName(nn ast.Vertex, nodeName string) + func (nsr *NamespaceResolver) EnterNode(n ast.Vertex) bool + func (nsr *NamespaceResolver) ExprClassConstFetch(n *ast.ExprClassConstFetch) + func (nsr *NamespaceResolver) ExprClosure(n *ast.ExprClosure) + func (nsr *NamespaceResolver) ExprConstFetch(n *ast.ExprConstFetch) + func (nsr *NamespaceResolver) ExprFunctionCall(n *ast.ExprFunctionCall) + func (nsr *NamespaceResolver) ExprInstanceOf(n *ast.ExprInstanceOf) + func (nsr *NamespaceResolver) ExprNew(n *ast.ExprNew) + func (nsr *NamespaceResolver) ExprStaticCall(n *ast.ExprStaticCall) + func (nsr *NamespaceResolver) ExprStaticPropertyFetch(n *ast.ExprStaticPropertyFetch) + func (nsr *NamespaceResolver) LeaveNode(n ast.Vertex) + func (nsr *NamespaceResolver) ResolveName(nameNode ast.Vertex, aliasType string) + func (nsr *NamespaceResolver) ResolveType(n ast.Vertex) + func (nsr *NamespaceResolver) StmtCatch(n *ast.StmtCatch) + func (nsr *NamespaceResolver) StmtClass(n *ast.StmtClass) + func (nsr *NamespaceResolver) StmtClassMethod(n *ast.StmtClassMethod) + func (nsr *NamespaceResolver) StmtConstList(n *ast.StmtConstList) + func (nsr *NamespaceResolver) StmtFunction(n *ast.StmtFunction) + func (nsr *NamespaceResolver) StmtGroupUse(n *ast.StmtGroupUseList) + func (nsr *NamespaceResolver) StmtInterface(n *ast.StmtInterface) + func (nsr *NamespaceResolver) StmtNamespace(n *ast.StmtNamespace) + func (nsr *NamespaceResolver) StmtPropertyList(n *ast.StmtPropertyList) + func (nsr *NamespaceResolver) StmtTrait(n *ast.StmtTrait) + func (nsr *NamespaceResolver) StmtTraitUse(n *ast.StmtTraitUse) + func (nsr *NamespaceResolver) StmtUse(n *ast.StmtUseList)