Package org.eclipse.handly.util

Examples of org.eclipse.handly.util.TextRange


            } else {
                ErlLogger.error(e);
            }
            return false;
        }
        final TextRange identifyingRange = info.getIdentifyingRange();
        if (identifyingRange.isNull()) {
            return false;
        }
        textEditor.selectAndReveal(identifyingRange.getOffset(),
                identifyingRange.getLength());
        return true;
    }
View Full Code Here


    return ((OtpErlangAtom) _head).atomValue();
  }
 
  public TextRange getPos() {
    try {
      TextRange _xblockexpression = null;
      {
        Iterable<OtpErlangObject> _tail = IterableExtensions.<OtpErlangObject>tail(this.items);
        OtpErlangObject _head = IterableExtensions.<OtpErlangObject>head(_tail);
        final Bindings pos = OtpErlang.match("{{Line,Offset,FileOffset},Len}", _head);
        int _int = pos.getInt("FileOffset");
        int _int_1 = pos.getInt("Len");
        _xblockexpression = new TextRange(_int, _int_1);
      }
      return _xblockexpression;
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

            _switchResult = new ErlFunction(source, _name_1, _arg);
          }
        }
        final ErlForm handle = _switchResult;
        final SourceElementBody body = new SourceElementBody();
        TextRange _pos = node.getPos();
        body.setFullRange(_pos);
        this.addChild(parentBody, handle, body);
        this.complete(body);
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.handly.util.TextRange

Copyright © 2018 www.massapicom. 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.