code: def parse_directive_locations(parser):
      locations = []
  
      while True:
          locations.append(parse_name(parser))
  
          if not skip(parser, TokenKind.PIPE):
              break
  
      return locations
  
imports: from .None import ast
  from ..error import GraphQLSyntaxError
  from .lexer import Lexer, TokenKind, get_token_desc, get_token_kind_desc
  from .source import Source
label_desc: Use image node_id 55 for calling a global function with example usage: parse_directive_locations(parser) and returns: locations