Title 8 U.S.C. § 1409 paragraph (c) provides that children born abroad after December 24, 1952 to unmarried American mothers are U.S. citizens, as long as the mother has lived in the U.S. for a continuous period of at least one year at any time prior to the birth. Having obviously met that requirement, Anarchist Annie would have been fully able to pass on citizenship to Little Barry Bastard wherever she dropped him.
Of course, that fact is strictly for entertainment value, since it's perfectly clear "Stanley had a baby" on US soil, and therefore her (and the father's be he BHO or FMD or X) citizenship does not matter.
IF any of this was "perfectly clear" and backed by evidence that was also "perfectly clear", it NEVER would have been a point of contention or reason for discussion.
And because it isn't "perfectly clear" yet, it won't go away until it is. Part of our human nature demands answers and finds mysteries irresistible.
I believe the residency requirement is one year AFTER age of 18 in the example and law you presented.
If she was 17 for part of that year, it would not count.