@Override
	public Variable[] getLocals() {
		function.manager.lock.acquire();
		try {
			checkIsValid();
			ArrayList<Variable> list = new ArrayList<Variable>();
			for (Variable variable : variables) {
				if (!(variable instanceof Parameter)) {
					list.add(variable);
				}
			}
			Variable[] vars = new Variable[list.size()];
			return list.toArray(vars);
		}
		finally {
			function.manager.lock.release();
		}
	}
Construct a function stack frame.
@param function
@param variables
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionStackFrame.java