Class SlistHandler

    • Field Detail

      • PARENT_TOKEN_TYPES

        private static final int[] PARENT_TOKEN_TYPES
        Parent token types.
    • Constructor Detail

      • SlistHandler

        public SlistHandler​(IndentationCheck indentCheck,
                            DetailAST ast,
                            AbstractExpressionHandler parent)
        Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
        Parameters:
        indentCheck - the indentation check
        ast - the abstract syntax tree
        parent - the parent handler
    • Method Detail

      • hasBlockParent

        private boolean hasBlockParent()
        Determine if the expression we are handling has a block parent.
        Returns:
        true if it does, false otherwise
      • isSameLineCaseGroup

        private boolean isSameLineCaseGroup()
        Checks if SLIST node is placed at the same line as CASE_GROUP node.
        Returns:
        true, if SLIST node is places at the same line as CASE_GROUP node.