S-Corp stock vs debt basis

For a closely held S-Corp (1 shareholder), if any additional money is contributed to the corporation without purchasing additional stock, is it then considered a loan to the corporation which will increase their debt basis, or is it considered an additional capital contribution which will in turn increase their stock basis rather than their debt basis?