code: func (nr *nameResolver) currentContext() *resolverContext {
  	stackLen := len(nr.contextStack)
  	if stackLen == 0 {
  		return nil
  	}
  	return nr.contextStack[stackLen-1]
  }
docs: // currentContext gets the current resolverContext.