code: function annotateLiterals(literals, kind) {
          return literals.map(function (t) {
              t.literal = true;
              t.kind = kind;
              t.origin = "ecmascript";
              if (kind === "string") {
                  if (/[^\\]"/.test(t.value)) {
                      t.delimiter = SINGLE_QUOTE;
                  } else {
                      t.delimiter = DOUBLE_QUOTE;
                  }
              }
              return t;
          });
      }
docs: /*
  Annotate a list of tokens as literals of a particular kind;
  if string literals, annotate with an appropriate delimiter.
  
  @param {Array.<Object>} literals - list of hint tokens
  @param {string} kind - the kind of literals in the list (e.g., "string")
  @return {Array.<Object>} - the input array; to each object in the array a
  new literal {boolean} property has been added to indicate that it
  is a literal hint, and also a new kind {string} property to indicate
  the literal kind. For string literals, a delimiter property is also
  added to indicate what the default delimiter should be (viz. a
  single or double quotation mark).