Package com.intellij.formatting.alignment

Examples of com.intellij.formatting.alignment.AlignmentStrategy


  private List<Block> buildSubBlocks() {
    final List<Block> blocks = new ArrayList<Block>();
    final Alignment baseAlignment = Alignment.createAlignment(true);
    final Alignment baseAlignment2 = Alignment.createAlignment(true);
    final AlignmentStrategy alignmentStrategy = createOrGetAlignmentStrategy();
    final Ref<Wrap> chopDownIfLongWrap = new Ref<Wrap>();

    // if uniform binary expressions option is enabled, blocks for binary expression sequences are built flat, that is
    // for an expression like 1 + 1 + 1 a single parent block with 5 children in it is constructed.
    if (myErlangSettings.UNIFORM_BINARY_EXPRESSIONS && BINARY_EXPRESSIONS.contains(myNode.getElementType())) {
View Full Code Here


  private List<Block> buildSubBlocks() {
    final List<Block> blocks = new ArrayList<Block>();
    final Alignment baseAlignment = Alignment.createAlignment(true);
    final Alignment baseAlignment2 = Alignment.createAlignment(true);
    final AlignmentStrategy alignmentStrategy = createOrGetAlignmentStrategy();
    final Ref<Wrap> chopDownIfLongWrap = new Ref<Wrap>();

      for (ASTNode child = myNode.getFirstChildNode(); child != null; child = child.getTreeNext()) {
        if (!shouldCreateBlockFor(child)) continue;
        blocks.add(createChildBlock(myNode, child, chopDownIfLongWrap, baseAlignment, baseAlignment2, alignmentStrategy, -1));
View Full Code Here

TOP

Related Classes of com.intellij.formatting.alignment.AlignmentStrategy

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.