Tabnine Logo
Indent.getContinuationWithoutFirstIndent
Code IndexAdd Tabnine to your IDE (free)

How to use
getContinuationWithoutFirstIndent
method
in
com.intellij.formatting.Indent

Best Java code snippets using com.intellij.formatting.Indent.getContinuationWithoutFirstIndent (Showing top 6 results out of 315)

origin: go-lang-plugin-org/go-lang-idea-plugin

@NotNull
private Indent calcIndent(@NotNull ASTNode child) {
 IElementType parentType = myNode.getElementType();
 IElementType type = child.getElementType();
 if (type == SWITCH_START) return Indent.getNoneIndent();
 if (parentType == BLOCK && type == SELECT_STATEMENT) return Indent.getNoneIndent();
 if (parentType == SELECT_STATEMENT && type == RBRACE) return Indent.getNormalIndent();
 if (parentType == ARGUMENT_LIST && type != LPAREN && type != RPAREN) return Indent.getNormalIndent();
 if ((parentType == EXPR_CASE_CLAUSE || parentType == TYPE_CASE_CLAUSE) && (type == CASE || type == DEFAULT)) return Indent.getNoneIndent();
 if (BLOCKS_TOKEN_SET.contains(parentType)) return indentIfNotBrace(child);
 if (parentType == IMPORT_DECLARATION) return indentOfMultipleDeclarationChild(type, IMPORT_SPEC);
 if (parentType == CONST_DECLARATION) return indentOfMultipleDeclarationChild(type, CONST_SPEC);
 if (parentType == VAR_DECLARATION) return indentOfMultipleDeclarationChild(type, VAR_SPEC);
 if (parentType == TYPE_DECLARATION) return indentOfMultipleDeclarationChild(type, TYPE_SPEC);
 if (parentType == COMM_CLAUSE && child.getPsi() instanceof GoStatement) return Indent.getNormalIndent();
 if (child.getPsi() instanceof GoExpression) return Indent.getContinuationWithoutFirstIndent(); 
 return Indent.getNoneIndent();
}
origin: Camelcade/Perl5-IDEA

public PerlSyntheticBlock(@NotNull PerlAstBlock realBlock,
             @NotNull List<Block> subBlocks,
             @Nullable Wrap wrap,
             @Nullable Alignment alignment,
             @NotNull PerlFormattingContext context) {
 if (subBlocks.isEmpty()) {
  throw new IllegalArgumentException("Subblocks should not be empty");
 }
 mySubBlocks = ContainerUtil.immutableList(new ArrayList<>(subBlocks));
 myRealBlock = realBlock;
 myWrap = wrap;
 myAlignment = alignment;
 myContext = context;
 myIndent = getFirstRealBlock().getIndent();
 mySubBlocks.stream()
  .filter(block -> block instanceof PerlAstBlock && block.getIndent() != Indent.getAbsoluteNoneIndent())
  .forEach(block -> ((PerlAstBlock)block)
   .setIndent(Indent.getContinuationWithoutFirstIndent()));
}
origin: Camelcade/Perl5-IDEA

@Nullable
@Override
protected Indent getChildIndent() {
 IElementType elementType = myNode.getElementType();
 if (NORMAL_CHILD_INDENTED_CONTAINERS.contains(elementType)) {
  return Indent.getNormalIndent();
 }
 else if (CONTINUOS_CHILD_INDENTED_CONTAINERS.contains(elementType)) {
  return Indent.getContinuationWithoutFirstIndent();
 }
 return super.getChildIndent();
}
origin: halirutan/Mathematica-IntelliJ-Plugin

return Indent.getContinuationWithoutFirstIndent();
origin: Camelcade/Perl5-IDEA

return Indent.getContinuationWithoutFirstIndent();
return isLast() ? Indent.getNormalIndent() : Indent.getContinuationWithoutFirstIndent();
return Indent.getContinuationWithoutFirstIndent();
origin: Camelcade/Perl5-IDEA

 return grandParentNodeType == STATEMENT ? Indent.getContinuationWithoutFirstIndent() : Indent.getContinuationIndent();
return forceFirstIndent ? Indent.getContinuationIndent() : Indent.getContinuationWithoutFirstIndent();
com.intellij.formattingIndentgetContinuationWithoutFirstIndent

Popular methods of Indent

  • getNoneIndent
  • getNormalIndent
  • getAbsoluteNoneIndent
  • getContinuationIndent
  • getIndent
  • getSpaceIndent
  • getType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now