duchain: only visit path segments part of a path
additional name resolution is needed if the path segment isn't part of a path but e.g. the name of a method in a method call expr