code: function tryParsePattern(pattern) {
          // This should be verified outside of here and a proper error thrown.
          ts.Debug.assert(ts.hasZeroOrOneAsteriskCharacter(pattern));
          var indexOfStar = pattern.indexOf("*");
          return indexOfStar === -1 ? undefined : {
              prefix: pattern.substr(0, indexOfStar),
              suffix: pattern.substr(indexOfStar + 1)
          };
      }
docs: /* @internal