src/Psalm/Internal/Visitor/SimpleNameResolver.php
protected function resolveName(Name $name, $type) {
        $resolvedName = $this->nameContext->getResolvedName($name, $type);
        if (null !== $resolvedName) {
            $name->setAttribute('resolvedName', $resolvedName->toString());
        }
        return $name;
    }
protected function resolveName(Name $name, $type) {
        $resolvedName = $this->nameContext->getResolvedName($name, $type);
        if (null !== $resolvedName) {
            $name->setAttribute('resolvedName', $resolvedName->toString());
        }
        return $name;
    }
protected function resolveName ( Name $ name , $ type ) { $ resolvedName = $ this -> nameContext -> getResolvedName ( $ name , $ type ) ; if ( null !== $ resolvedName ) { $ name -> setAttribute ( 'resolvedName' , $ resolvedName -> toString ( ) ) ; } return $ name ; }
Resolve name, according to name resolver options.

@param Name $name Function or constant name to resolve
@param int  $type One of Stmt\Use_::TYPE_*

@return Name Resolved name, or original name with attribute
Resolve name according to name resolver options .