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;
}
}