docs: function matchedText(pattern, candidate) {
          ts.Debug.assert(isPatternMatch(pattern, candidate));
          return candidate.substr(pattern.prefix.length, candidate.length - pattern.suffix.length);
      }