Examples of GoAssignmentStatement


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

                if (id.getTextRange().equals(expression.getTextRange())) {
                    return Access.Write;
                }
            }
        } else if (parent instanceof GoExpressionList && parent.getParent() instanceof GoAssignmentStatement) {
            GoAssignmentStatement assignment = (GoAssignmentStatement) parent.getParent();
            for (GoExpr expr : assignment.getLeftSideExpressions().getExpressions()) {
                if (expr.getTextRange().equals(expression.getTextRange())) {
                    if (assignment.getOperator() == GoAssignmentStatement.Op.Assign) {
                        return Access.Write;
                    } else {
                        return Access.ReadWrite;
                    }
                }
View Full Code Here

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

        GoExpr expr = findChildByClass(GoExpr.class);
        if (expr != null)
            return expr;

        GoAssignmentStatement assignmentStatement = getAssignment();
        if (assignmentStatement != null) {
            GoExpressionList expressionList = assignmentStatement.getRightSideExpressions();
            if (expressionList.getExpressions() != null && expressionList.getExpressions().length > 0)
                return expressionList.getExpressions()[0];

            return expr;
        }
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.