@Override
    public int getPosition() {
        return getToken().getPosition() + getToken().getSpan();
    }
Captures tokens to a stack of token trees.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/CapturingTokenizer.java