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

Examples of ro.redeul.google.go.lang.psi.statements.switches.GoSwitchTypeGuard


                   ).getStatements()
            );

        assertNull(typeSwitch.getSimpleStatement());

        GoSwitchTypeGuard typeGuard = get(typeSwitch.getTypeGuard());

        assertNull(typeGuard.getIdentifier());
        assertEquals("x", get(typeGuard.getExpression()).getText());

        GoSwitchTypeClause clause = childAt(0, typeSwitch.getClauses());

        assertEquals(true, clause.isDefault());
View Full Code Here


                                       PsiElement lastParent,
                                       @NotNull PsiElement place) {
        if (lastParent == null )
            return true;

        GoSwitchTypeGuard typeGuard = getTypeGuard();
        if ( lastParent != typeGuard ) {
            if (!typeGuard.processDeclarations(processor, state, null, place))
                return false;
        }

        GoSimpleStatement initStatement = getSimpleStatement();
        return !(initStatement != null && lastParent != initStatement) || initStatement.processDeclarations(processor, state, null, place);
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.psi.statements.switches.GoSwitchTypeGuard

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.