Examples of GoSwitchTypeGuard


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

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

                                       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
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.