public boolean isLocationFor(Variable var) {
		if (!functionAddr.equals(var.getFunction().getEntryPoint())) {
			return false;
		}
		if (var instanceof Parameter) {
			return isParameter && (ordinalOrfirstUseOffset == ((Parameter) var).getOrdinal());
		}
		return (ordinalOrfirstUseOffset == var.getFirstUseOffset() && variableAddress.equals(getVariableAddress(var)));
	}
Checks to see if this location is for the indicated variable.
@param var the variable
@return true if this location is for the specified variable.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/VariableLocation.java