graphql/language/lexer.py
def position_after_whitespace(self, body, start_position: int) -> int:
        """Go to next position after a whitespace.

        Reads from body starting at start_position until it finds a non-whitespace
        character, then returns the position of that character for lexing.
        """
        body_length = len(body)
        position = start_position
        while position < body_length:
            char = char_at(body, position)
            if char is not None and char in " \t,\ufeff":
                position += 1
            elif char == "\n":
                position += 1
                self.line += 1
                self.line_start = position
            elif char == "\r":
                if char_at(body, position + 1) == "\n":
                    position += 2
                else:
                    position += 1
                self.line += 1
                self.line_start = position
            else:
                break
        return position
Go to next position after a whitespace.

        Reads from body starting at start_position until it finds a non-whitespace
        character, then returns the position of that character for lexing.
        
Go to next position after a whitespace.
Reads from body starting at start_position until it finds a non-whitespace
character, then returns the position of that character for lexing.
Go to next position after a whitespace . Reads from body starting at start_position until it finds a non - whitespace character then returns the position of that character for lexing .
def position_after_whitespace(self, body, start_position: int) -> int:
        body_length = len(body)
        position = start_position
        while position < body_length:
            char = char_at(body, position)
            if char is not None and char in " \t,\ufeff":
                position += 1
            elif char == "\n":
                position += 1
                self.line += 1
                self.line_start = position
            elif char == "\r":
                if char_at(body, position + 1) == "\n":
                    position += 2
                else:
                    position += 1
                self.line += 1
                self.line_start = position
            else:
                break
        return position
def position_after_whitespace ( self , body , start_position : int ) -> int : body_length = len ( body ) position = start_position while position < body_length : char = char_at ( body , position ) if char is not None and char in " \t,\ufeff" : position += 1 elif char == "\n" : position += 1 self . line += 1 self . line_start = position elif char == "\r" : if char_at ( body , position + 1 ) == "\n" : position += 2 else : position += 1 self . line += 1 self . line_start = position else : break return position
Go to next position after a whitespace.
Go to next position after a whitespace .
"""Go to next position after a whitespace.

        Reads from body starting at start_position until it finds a non-whitespace
        character, then returns the position of that character for lexing.
        """
self
body
start_position
int