Package ro.redeul.google.go.lang.psi.statements

Examples of ro.redeul.google.go.lang.psi.statements.GoBlockStatement


        if (ifStatement.getExpression() == null) {
            return false;
        }

        GoBlockStatement thenBlock = ifStatement.getThenBlock();
        if (thenBlock == null ||
            !isNodeOfType(thenBlock.getFirstChild(), GoTokenTypes.pLCURLY) ||
            !isNodeOfType(thenBlock.getLastChild(), GoTokenTypes.pRCURLY)) {
            return false;
        }

        GoStatement[] statements = thenBlock.getStatements();
        if (statements.length != 1 || !(statements[0] instanceof GoIfStatement)) {
            return false;
        }

        GoIfStatement inner = (GoIfStatement) statements[0];
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.psi.statements.GoBlockStatement

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.