Skip to content

Noob question: How to read the API? #307

Answered by ColinH
rowlesmr asked this question in Q&A
Discussion options

You must be logged in to vote

You are generally reading the docs correctly, however what might not be clear enough are the implications of this part of the documentation of the bol rule: "Does not work with inputs that don't have a column() member function."

The bol rule uses the column number from the current position in order to determine whether the input is at the beginning of a line. Now there are two ways how it could get at the column number, either query the input for the position and extract the column number, or directly query the input for the column number.

Now there are two design decisions that prevent the bol rule to work with lazy position tracking. The first is that the bol rule directly asks the inpu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rowlesmr
Comment options

Answer selected by ColinH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants