@Override
	public Variable[] getLocals() {
		synchronized (function) {
			loadStackVariables();
			if (paramStart >= 0) {
				return getNegativeVariables();
			}
			return getPositiveVariables();
		}
	}
Get all defined local variables.

@return an array of all local variables
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldStackFrameDB.java