Examples of findKeywords()


Examples of com.google.eclipse.protobuf.services.ProtobufGrammarAccess.findKeywords()

    }
    for (Keyword k : g.findKeywords(OPENING_CURLY_BRACKET.toString())) {
      c.setIndentationIncrement().after(k);
      c.setLinewrap(1).after(k);
    }
    for (Keyword k : g.findKeywords(CLOSING_CURLY_BRACKET.toString())) {
      c.setIndentationDecrement().before(k);
      c.setLinewrap(1).after(k);
    }
    for (Keyword k : g.findKeywords(OPENING_BRACKET.toString(), "(")) {
      c.setNoSpace().after(k);
View Full Code Here

Examples of com.google.eclipse.protobuf.services.ProtobufGrammarAccess.findKeywords()

    }
    for (Keyword k : g.findKeywords(CLOSING_CURLY_BRACKET.toString())) {
      c.setIndentationDecrement().before(k);
      c.setLinewrap(1).after(k);
    }
    for (Keyword k : g.findKeywords(OPENING_BRACKET.toString(), "(")) {
      c.setNoSpace().after(k);
    }
    for (Keyword k : g.findKeywords(CLOSING_BRACKET.toString(), ")")) {
      c.setNoSpace().before(k);
    }
View Full Code Here

Examples of com.google.eclipse.protobuf.services.ProtobufGrammarAccess.findKeywords()

      c.setLinewrap(1).after(k);
    }
    for (Keyword k : g.findKeywords(OPENING_BRACKET.toString(), "(")) {
      c.setNoSpace().after(k);
    }
    for (Keyword k : g.findKeywords(CLOSING_BRACKET.toString(), ")")) {
      c.setNoSpace().before(k);
    }
  }
}
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.findKeywords()

    importExpressionConfiguration(c);
    literalListAndHashConfiguration(c);
    functionCallConfiguration(c);
    nodeExpressionConfiguration(c);
    // commas
    for(Keyword comma : ga.findKeywords(",")) {
      c.setNoSpace().before(comma);
    }

    // TODO: Old formatter needs this fixed since there is no endComma rule - they are just optional commas in
    // various expressions. They may be ok already with a general rule "no space before a comma keyword".
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.ResourceExpressionElements.findKeywords()

    final Selector inCompactableResource = Select.containment(resourceCompactable);
    final Selector inASingleBodiesResourceWithTitle = Select.containment(resourceSingleBodyTitle);
    final Selector inASingleBodiesResourceWithoutTitle = Select.containment(resourceSingleBodyNoTitle);

    final ResourceExpressionElements resourceExpressionAccess = grammarAccess.getResourceExpressionAccess();
    final Selector resourceLeftCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("{"));
    final Selector resourceRightCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("}"));
    final Selector resourceBodySemicolon = Select.grammar(resourceExpressionAccess.findKeywords(";"));
    final Selector optionalResourceEndBodySemicolon = Select.grammar(
      resourceExpressionAccess.getSemicolonKeyword_0_1_2_2(), //
      resourceExpressionAccess.getSemicolonKeyword_1_3_2());
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.ResourceExpressionElements.findKeywords()

    final Selector inASingleBodiesResourceWithTitle = Select.containment(resourceSingleBodyTitle);
    final Selector inASingleBodiesResourceWithoutTitle = Select.containment(resourceSingleBodyNoTitle);

    final ResourceExpressionElements resourceExpressionAccess = grammarAccess.getResourceExpressionAccess();
    final Selector resourceLeftCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("{"));
    final Selector resourceRightCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("}"));
    final Selector resourceBodySemicolon = Select.grammar(resourceExpressionAccess.findKeywords(";"));
    final Selector optionalResourceEndBodySemicolon = Select.grammar(
      resourceExpressionAccess.getSemicolonKeyword_0_1_2_2(), //
      resourceExpressionAccess.getSemicolonKeyword_1_3_2());
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.ResourceExpressionElements.findKeywords()

    final Selector inASingleBodiesResourceWithoutTitle = Select.containment(resourceSingleBodyNoTitle);

    final ResourceExpressionElements resourceExpressionAccess = grammarAccess.getResourceExpressionAccess();
    final Selector resourceLeftCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("{"));
    final Selector resourceRightCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("}"));
    final Selector resourceBodySemicolon = Select.grammar(resourceExpressionAccess.findKeywords(";"));
    final Selector optionalResourceEndBodySemicolon = Select.grammar(
      resourceExpressionAccess.getSemicolonKeyword_0_1_2_2(), //
      resourceExpressionAccess.getSemicolonKeyword_1_3_2());

    final Selector elseAndElsifKeywords = Select.grammar(Iterables.concat(
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.