def _IsLastCodeInLine(self, token):
    if token.type in Type.NON_CODE_TYPES:
      return False
    start_token = token
    while True:
      token = token.next
      if not token or token.line_number != start_token.line_number:
        return True
      if token.type not in Type.NON_CODE_TYPES:
        return False
Determines if the given token is the last code token on its line.
dataset/ETHPy150Open google/closure-linter/closure_linter/indentation.py/IndentationRules._IsLastCodeInLine