Examples of MatchQuality


Examples of com.google.dart.engine.search.MatchQuality

  @Override
  public MatchQuality matches(Element element) {
    // Do we want to return the highest quality of match rather than stopping
    // after the first match? Doing so would be more accurate, but slower.
    for (SearchPattern pattern : patterns) {
      MatchQuality quality = pattern.matches(element);
      if (quality != null) {
        return quality;
      }
    }
    return null;
View Full Code Here

Examples of com.google.dart.engine.search.MatchQuality

    this.patterns = patterns;
  }

  @Override
  public MatchQuality matches(Element element) {
    MatchQuality highestQuality = null;
    for (SearchPattern pattern : patterns) {
      MatchQuality quality = pattern.matches(element);
      if (quality == null) {
        return null;
      }
      if (highestQuality == null) {
        highestQuality = quality;
View Full Code Here

Examples of com.google.dart.engine.search.MatchQuality

        if (scope != null && !scope.encloses(targetElement)) {
          continue;
        }
        SourceRange range = new SourceRange(location.getOffset(), location.getLength());
        // TODO(scheglov) IndexConstants.DYNAMIC for MatchQuality.NAME
        MatchQuality quality = MatchQuality.EXACT;
//          MatchQuality quality = element.getResource() != IndexConstants.DYNAMIC
//              ? MatchQuality.EXACT : MatchQuality.NAME;
        SearchMatch match = new SearchMatch(quality, matchKind, targetElement, range);
        match.setQualified(relationship == IndexConstants.IS_REFERENCED_BY_QUALIFIED
            || relationship == IndexConstants.IS_INVOKED_BY_QUALIFIED);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.