Make lineNo a method after all

Issue #1969