Examples of PbBlock


Examples of protobuf.formatter.PbBlock

        ArrayList<Block> subBlocks = new ArrayList<Block>();
        ASTNode[] children = curNode.getChildren(null);
        for (ASTNode childNode : children) {
            if (canBeCorrectBlock(childNode)) {
                //todo [low] it is not clear with aligment
                subBlocks.add(new PbBlock(childNode, curNode.getPsi() instanceof protobuf.lang.psi.api.block.PbBlock ? null : alignment, PbIndentProcessor.getChildIndent(block, childNode), wrap, settings));
            }
        }
        return subBlocks;
    }
View Full Code Here

Examples of protobuf.lang.psi.api.block.PbBlock

                break;
                case EXTEND_FIELD: {
                    PsiElement[] children = scope.getChildren();
                    for (PsiElement child : children) {
                        if (child instanceof PbExtendDef) {
                            PbBlock extendBlock = ((PbExtendDef) child).getBlock();
                            if (extendBlock == null) {
                                return null;
                            }
                            PsiElement[] extendChildren = extendBlock.getChildren();
                            for (PsiElement extendChild : extendChildren) {
                                if (extendChild instanceof PbFieldDef && refName.equals(((PbFieldDef) extendChild).getName())) {
                                    return extendChild;
                                } else if (extendChild instanceof PbGroupDef && refName.equals(((PbGroupDef) extendChild).getFieldName())) {
                                    return extendChild;
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.