Maybe you can find what you want In-Text Citations: Author/Authors section, where they give additional rules for citing indirect sources, electronic sources, and sources without page numbers. I believe it would work for source code.