public void setSymbols(Symbol[] symbols) {
		primarySymbolName = null;
		List<String> scopeSymList = new ArrayList<String>();
		List<SourceType> scopeSymSourceList = new ArrayList<SourceType>();
		List<String> otherSymList = new ArrayList<String>();
		List<SourceType> otherSymSourceList = new ArrayList<SourceType>();
		for (Symbol symbol : symbols) {
			SymbolType symbolType = symbol.getSymbolType();
			if (symbol.isDynamic()) {
				hasDynamicSymbol = true;
			}
			else if (symbol.isPrimary()) {
				primarySymbolName = symbol.getName();
				primarySymbolSource = symbol.getSource();
				primarySymbolInFunctionScope = (symbolType == SymbolType.FUNCTION);
			}
			else if (symbolType == SymbolType.FUNCTION) {
				scopeSymList.add(symbol.getName());
				scopeSymSourceList.add(symbol.getSource());
			}
			else {
				otherSymList.add(symbol.getName());
				otherSymSourceList.add(symbol.getSource());
			}
		}
		functionScopeSymbolNames = new String[scopeSymList.size()];
		scopeSymList.toArray(functionScopeSymbolNames);
		functionScopeSymbolSources = new SourceType[scopeSymSourceList.size()];
		scopeSymSourceList.toArray(functionScopeSymbolSources);
		otherSymbolNames = new String[otherSymList.size()];
		otherSymList.toArray(otherSymbolNames);
		otherSymbolSources = new SourceType[otherSymSourceList.size()];
		otherSymSourceList.toArray(otherSymbolSources);
	}
Set the symbols to be transferred.
Ghidra/Features/Base/src/main/java/ghidra/app/util/CodeUnitInfo.java