code: def parse_scalar_type_extension(lexer: Lexer) -> ScalarTypeExtensionNode:
      
      start = lexer.token
      expect_keyword(lexer, "extend")
      expect_keyword(lexer, "scalar")
      name = parse_name(lexer)
      directives = parse_directives(lexer, True)
      if not directives:
          raise unexpected(lexer)
      return ScalarTypeExtensionNode(
          name=name, directives=directives, loc=loc(lexer, start)
      )
docs: ScalarTypeExtension