Gets current location of browser, this does not return
actual location but it returns values of browser location.
This is done to provide mocking behaviour for unit testing.

@readonly
@type {AtomLocation}
@memberof BrowserService
323307
function () {
                return {
                    href: location.href,
                    hash: location.hash,
                    host: location.host,
                    hostName: location.hostname,
                    port: location.port,
                    protocol: location.protocol
                };
            }
421496
def get_location(dom, location):
    
    node = dom.documentElement
    for i in location:
        node = get_child(node, i)
        if not node:
            raise ValueError('Node at location %s does not exist.' % location) #TODO: line not covered
    return node
58532
function () {
/*Line 200 - 'Atom.js' */        var u = "";
/*Line 201 - 'Atom.js' */        for (var i = 0; i < arguments.length; i++) {
/*Line 202 - 'Atom.js' */            var ui = arguments[i];
/*Line 203 - 'Atom.js' */            if (ui === null || ui === undefined) {
/*Line 204 - 'Atom.js' */                return undefined;
/*Line 205 - 'Atom.js' */            }
/*Line 206 - 'Atom.js' */            u += ui;
/*Line 207 - 'Atom.js' */        }
/*Line 208 - 'Atom.js' */        if (/^\/\//.test(u)) {
/*Line 209 - 'Atom.js' */            return document.location.protocol + u;
/*Line 210 - 'Atom.js' */        }
/*Line 211 - 'Atom.js' */        if ('https:' == document.location.protocol) {
/*Line 212 - 'Atom.js' */            u = u.replace(/http\:\/\//, "https://");
/*Line 213 - 'Atom.js' */        }
/*Line 214 - 'Atom.js' */        return u;
/*Line 215 - 'Atom.js' */    }
66718
function currentYPosition() {
	// Firefox, Chrome, Opera, Safari
	if (self.pageYOffset) return self.pageYOffset;
	// Internet Explorer 6 - standards mode
	if (document.documentElement && document.documentElement.scrollTop)
		return document.documentElement.scrollTop;
	// Internet Explorer 6, 7 and 8
	if (document.body.scrollTop) return document.body.scrollTop;
	return 0;
}
344424
public function getLocation(): Location
    {
        if ($this->location === false && $this->_repository !== null) {
            $this->_repository->injectLocation($this);
        }

        return $this->location ?: null;
    }
1050699
function(responseObject) {
                var location = this._getLocationHeader(responseObject);
                return location ? location.substr(location.lastIndexOf('/') + 1) : undefined;
            }
233051
public URI getLocation() {
        if (locationURI == null) {
            locationURI = moduleRef != null ? moduleRef.getLocation() : null;
            if (locationURI == null) {
                locationURI = classpathElement.getURI();
            }
        }
        return locationURI;
    }
559396
public GeocodeApiResponse.Location getLocation() {
        final GeocodeApiResponse.Result firstResult = firstResult(apiResponse);
        if(firstResult == null) {
            return null;
        }
        final GeocodeApiResponse.Geometry geometry = firstResult.getGeometry();
        if (geometry == null) {
            return null;
        }
        return geometry.getLocation();
    }
494595
function getLocation() {
    // Firefox下`location.hash`存在自动解码的情况，
    // 比如hash的值是**abc%3def**，
    // 在Firefox下获取会成为**abc=def**
    // 为了避免这一情况，需要从`location.href`中分解
    let index = location.href.indexOf('#');
    let url = index < 0 ? '/' : (location.href.slice(index + 1) || '/');

    return url;
}
680021
@Programmatic
    @Override
    public Location getLocation() {
        final String latLng = getLatLng();
        return latLng != null? Location.fromString(latLng.replace(",",";")): null;
    }
246622
@Pure
	public GeoLocationPoint getGeoPosition() {
		final Point2d p = getPosition2D();
		if (p != null) {
			return new GeoLocationPoint(p.getX(), p.getY());
		}
		return null;
	}
364664
function() {
      var path = this.decodeFragment(this.location.pathname);
      var rootPath = path.slice(0, this.root.length - 1) + '/';
      return rootPath === this.root;
    }
152511
public WebLocator focus() {
        boolean focus = waitToRender();
        assertThat("Element was not rendered " + toString(), focus);
        focus = executor.focus(this);
        assertThat("Could not focus " + toString(), focus);
        LOGGER.info("focus on {}", toString());
        return this;
    }
324045
function() {
      var bar = '|';

      var userAgent = browserData.ua;
      var screenPrint = this.getScreenPrint();
      var pluginList = this.getPlugins();
      var fontList = this.getFonts();
      var localStorage = this.isLocalStorage();
      var sessionStorage = this.isSessionStorage();
      var timeZone = this.getTimeZone();
      var language = this.getLanguage();
      var systemLanguage = this.getSystemLanguage();
      var cookies = this.isCookie();
      var canvasPrint = this.getCanvasPrint();

      var key = userAgent + bar + screenPrint + bar + pluginList + bar + fontList + bar + localStorage + bar + sessionStorage + bar + timeZone + bar + language + bar + systemLanguage + bar + cookies + bar + canvasPrint;
      var seed = 256;

      return murmurhash3_32_gc(key, seed);
    }
545705
function getLocation(func) {
  const location = { ...func.location };

  // if the function has an identifier, start the block after it so the
  // identifier is included in the "scope" of its parent
  const identifierEnd = get(func, "identifier.loc.end");
  if (identifierEnd) {
    location.start = identifierEnd;
  }

  return location;
}
1188106
protected String getLocationDesc()
    {
        Location loc = getLocation();
        return (loc == null) ? null : loc.toString();
    }
813091
function getLocationInStore(useInitialIfEmpty) {
    var locationState = selectLocationState(store.getState());
    return locationState.locationBeforeTransitions || (useInitialIfEmpty ? initialLocation : undefined);
  }