Examples of PyProposalBuilder


Examples of com.google.collide.client.code.autocomplete.codegraph.py.PyProposalBuilder

  public void testContextBuilding() {
    MockAutocompleterEnvironment helper = new MockAutocompleterEnvironment();

    String text = "a .bc.de .f";
    helper.setup(new PathUtil("foo.py"), text, 0, text.length(), true);
    PyProposalBuilder proposalBuilder = new PyProposalBuilder();
    CompletionContext<PyState> completionContext = proposalBuilder
        .buildContext(helper.editor.getSelection(), helper.parser);
    assertEquals("previous context", "a.bc.de.", completionContext.getPreviousContext());
    assertEquals("triggering string", "f", completionContext.getTriggeringString());
  }
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.