Examples of ParsingTask


Examples of com.google.collide.client.code.autocomplete.codegraph.ParsingTask

  }

  private MockAutocompleterEnvironment configureHelper(String text) {
    final MockAutocompleterEnvironment helper = new MockAutocompleterEnvironment();
    helper.setup(new PathUtil("foo.js"), text, 0, 0, true);
    analyzer = new ParsingTask(helper.autocompleter.localPrefixIndexStorage);
    JsonArray<IncrementalScheduler.Task> parseRequests = helper.parseScheduler.requests;

    assertEquals("parsing not scheduled initially", 0, parseRequests.size());

    helper.parser.getListenerRegistrar().add(new DocumentParser.Listener() {
View Full Code Here

Examples of com.google.collide.client.code.autocomplete.codegraph.ParsingTask

      JsIndexUpdater jsIndexUpdater) {
    this.editor = editor;
    this.localPrefixIndexStorage = localPrefixIndexStorage;
    this.pyIndexUpdater = pyIndexUpdater;
    this.jsIndexUpdater = jsIndexUpdater;
    this.localPrefixIndexUpdater = new ParsingTask(localPrefixIndexStorage);

    this.cssAutocompleter = cssAutocompleter;
    this.jsAutocompleter = jsAutocompleter;
    this.htmlAutocompleter = htmlAutocompleter;
    this.pyAutocompleter = pyAutocompleter;
View Full Code Here

Examples of com.google.collide.client.code.autocomplete.codegraph.ParsingTask

    JsonArray<Token> tokens = helper.parser.parseLineSync(line);
    assertEquals("html", tokens.get(0).getMode());
    assertEquals("javascript", tokens.get(tokens.size() - 1).getMode());
    TaggableLine previousLine = TaggableLineUtil.getPreviousLine(line);
    helper.autocompleter.htmlAutocompleter.updateModeAnchors(line, tokens);
    new ParsingTask(helper.autocompleter.localPrefixIndexStorage).onParseLine(
        previousLine, line, tokens);

    AutocompleteProposals proposals = helper.autocompleter.htmlAutocompleter.findAutocompletions(
        helper.editor.getSelection(), CTRL_SHIFT_SPACE);
View Full Code Here

Examples of com.google.collide.client.code.autocomplete.codegraph.ParsingTask

    JsonArray<Token> tokens = helper.parser.parseLineSync(line);
    assertEquals("html", tokens.get(0).getMode());
    assertEquals("javascript", tokens.get(tokens.size() - 1).getMode());
    TaggableLine previousLine = TaggableLineUtil.getPreviousLine(line);
    helper.autocompleter.htmlAutocompleter.updateModeAnchors(line, tokens);
    new ParsingTask(helper.autocompleter.localPrefixIndexStorage).onParseLine(
        previousLine, line, tokens);

    AutocompleteProposals proposals = helper.autocompleter.htmlAutocompleter.findAutocompletions(
        helper.editor.getSelection(), CTRL_SHIFT_SPACE);
View Full Code Here

Examples of com.google.collide.client.code.autocomplete.codegraph.ParsingTask

    JsonArray<Token> tokens = helper.parser.parseLineSync(line);
    assertEquals("html", tokens.get(0).getMode());
    assertEquals("javascript", tokens.get(tokens.size() - 1).getMode());
    TaggableLine previousLine = TaggableLineUtil.getPreviousLine(line);
    helper.autocompleter.htmlAutocompleter.updateModeAnchors(line, tokens);
    new ParsingTask(helper.autocompleter.localPrefixIndexStorage).onParseLine(
        previousLine, line, tokens);

    SignalEventEssence trigger = new SignalEventEssence('[');
    AutocompleteResult result = helper.autocompleter.htmlAutocompleter
        .getExplicitAction(helper.editor.getSelection(), trigger, false)
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.LazyTextExtractorField.ParsingTask

        metadata.set(Metadata.CONTENT_TYPE, "application/java-archive");
        metadata.set(Metadata.CONTENT_ENCODING, "UTF-8");

        Parser p = getSearchIndex().getParser();

        ParsingTask task = new ParsingTask(p, val, metadata, Integer.MAX_VALUE) {
            public void setExtractedText(String value) {
                assertEquals("", value);
            }
        };
        task.run();
    }
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.