Package com.twosigma.beaker.autocomplete.java.JavaParser

Examples of com.twosigma.beaker.autocomplete.java.JavaParser.CompilationUnitContext


  @Override
  public void visitErrorNode(ErrorNode arg0) {
    if(arg0.getSymbol().getStartIndex() < cursor && arg0.getSymbol().getStopIndex()+1 >= cursor) {
      //System.out.println("ERR: "+arg0.getSymbol().getStartIndex()+" "+arg0.getSymbol().getStopIndex()+" "+arg0.getSymbol().getText());
      if(arg0.getParent() instanceof CompilationUnitContext) {
        CompilationUnitContext cuc = (CompilationUnitContext) arg0.getParent();
        if(cuc.getChild(0).equals(arg0)) {
          AutocompleteCandidate c = new AutocompleteCandidate(JavaCompletionTypes.INITIAL, arg0.getText());
          addQuery(c);
        } else {
          AutocompleteCandidate c = new AutocompleteCandidate(JavaCompletionTypes.TOPLEVEL, arg0.getText());
          addQuery(c);
View Full Code Here

TOP

Related Classes of com.twosigma.beaker.autocomplete.java.JavaParser.CompilationUnitContext

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.