Examples of PyIndexUpdater


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

        + " \"Bar is a unit of pressure, roughly equal to the atmospheric pressure on Earth\"\n"
        + " def far(self):\n"
        + "  The kingdom of FAR FAR Away, Donkey? That's where we're going! FAR! FAR!... away.\n";
    helper.setup(new PathUtil("foo.py"), text, 0, 0, true);

    final PyIndexUpdater analyzer = new PyIndexUpdater();

    helper.parser.getListenerRegistrar().add(new DocumentParser.Listener() {
      private boolean asyncParsing;

      @Override
      public void onIterationStart(int lineNumber) {
        asyncParsing = true;
        analyzer.onBeforeParse();
      }

      @Override
      public void onIterationFinish() {
        asyncParsing = false;
        analyzer.onAfterParse();
      }

      @Override
      public void onDocumentLineParsed(
          Line line, int lineNumber, @Nonnull JsonArray<Token> tokens) {
        if (asyncParsing) {
          TaggableLine previousLine = TaggableLineUtil.getPreviousLine(line);
          analyzer.onParseLine(previousLine, line, tokens);
        }
      }
    });

    helper.parser.begin();
View Full Code Here

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

        cubeClient, limitedContextFilePrefixIndex);
    HtmlAutocompleter htmlAutocompleter = HtmlAutocompleter.create(
        cssAutocompleter, jsAutocompleter);
    CodeGraphAutocompleter pyAutocompleter = PyAutocompleter.create(
        cubeClient, limitedContextFilePrefixIndex);
    PyIndexUpdater pyIndexUpdater = new PyIndexUpdater();
    JsIndexUpdater jsIndexUpdater = new JsIndexUpdater();
    return new Autocompleter(editor, popup, localPrefixIndexStorage, htmlAutocompleter,
        cssAutocompleter, jsAutocompleter, pyAutocompleter, pyIndexUpdater, jsIndexUpdater);
  }
View Full Code Here

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

    MockAutocompleter(Editor editor, final AutocompleteBox popup,
        SkipListStringBag localPrefixIndexStorage, HtmlAutocompleter htmlAutocompleter,
        CssAutocompleter cssAutocompleter, CodeGraphAutocompleter jsAutocompleter,
        CodeGraphAutocompleter pyAutocompleter) {
      super(editor, popup, localPrefixIndexStorage, htmlAutocompleter, cssAutocompleter,
          jsAutocompleter, pyAutocompleter, new PyIndexUpdater(), new JsIndexUpdater());
      this.localPrefixIndexStorage = localPrefixIndexStorage;
      this.htmlAutocompleter = htmlAutocompleter;
      this.cssAutocompleter = cssAutocompleter;
      this.jsAutocompleter = jsAutocompleter;
      this.pyAutocompleter = pyAutocompleter;
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.