Example #1
0
    @Override
    protected void addForLineNumber(int $line, java.util.List<AbstractAST> $result) {
      if (getLocation().getBeginLine() == $line) {
        $result.add(this);
      }
      ISourceLocation $l;

      $l = pre.getLocation();
      if ($l.hasLineColumn() && $l.getBeginLine() <= $line && $l.getEndLine() >= $line) {
        pre.addForLineNumber($line, $result);
      }
      if ($l.getBeginLine() > $line) {
        return;
      }

      $l = expression.getLocation();
      if ($l.hasLineColumn() && $l.getBeginLine() <= $line && $l.getEndLine() >= $line) {
        expression.addForLineNumber($line, $result);
      }
      if ($l.getBeginLine() > $line) {
        return;
      }

      $l = tail.getLocation();
      if ($l.hasLineColumn() && $l.getBeginLine() <= $line && $l.getEndLine() >= $line) {
        tail.addForLineNumber($line, $result);
      }
      if ($l.getBeginLine() > $line) {
        return;
      }
    }
Example #2
0
 @Override
 public int hashCode() {
   return 389 + 683 * pre.hashCode() + 577 * template.hashCode() + 653 * tail.hashCode();
 }
Example #3
0
 @Override
 public int hashCode() {
   return 541 + 509 * pre.hashCode() + 941 * template.hashCode() + 653 * tail.hashCode();
 }
Example #4
0
 @Override
 public int hashCode() {
   return 199 + 787 * pre.hashCode() + 193 * expression.hashCode() + 199 * tail.hashCode();
 }
Example #5
0
 @Override
 public int hashCode() {
   return 283 + 947 * pre.hashCode() + 541 * expression.hashCode() + 103 * tail.hashCode();
 }