public final int line() {
        return line;
    }
Gets the current 1-based line number of the parser.

@return Returns the current line number.
smithy-utils/src/main/java/software/amazon/smithy/utils/SimpleParser.java