I must be missing something; I don’t see how you can rigorously define the line without A and B, so I don’t see how it can exist before A and B are marked.
I think it is possible that part of what’s missing in your “given a line to..” is that the description of the line in the .. refers to A and B, or possibility the phrasing is just informal.