graphql/language/lexer.py
def read_name(source: Source, start, line, col, prev) -> Token:
    """Read an alphanumeric + underscore name from the source."""
    body = source.body
    body_length = len(body)
    position = start + 1
    while position < body_length:
        char = char_at(body, position)
        if char is None or not (
            char == "_"
            or "0" <= char <= "9"
            or "A" <= char <= "Z"
            or "a" <= char <= "z"
        ):
            break
        position += 1
    return Token(TokenKind.NAME, start, position, line, col, prev, body[start:position])
Read an alphanumeric + underscore name from the source.
Read an alphanumeric + underscore name from the source.
Read an alphanumeric + underscore name from the source .
def read_name(source: Source, start, line, col, prev) -> Token:
    body = source.body
    body_length = len(body)
    position = start + 1
    while position < body_length:
        char = char_at(body, position)
        if char is None or not (
            char == "_"
            or "0" <= char <= "9"
            or "A" <= char <= "Z"
            or "a" <= char <= "z"
        ):
            break
        position += 1
    return Token(TokenKind.NAME, start, position, line, col, prev, body[start:position])
def read_name ( source : Source , start , line , col , prev ) -> Token : body = source . body body_length = len ( body ) position = start + 1 while position < body_length : char = char_at ( body , position ) if char is None or not ( char == "_" or "0" <= char <= "9" or "A" <= char <= "Z" or "a" <= char <= "z" ) : break position += 1 return Token ( TokenKind . NAME , start , position , line , col , prev , body [ start : position ] )
Read an alphanumeric + underscore name from the source.
Read an alphanumeric + underscore name from the source .
"""Read an alphanumeric + underscore name from the source."""
source
Source
start
line
col
prev