~ubuntu-branches/ubuntu/vivid/vala/vivid

« back to all changes in this revision

Viewing changes to vala/valabinaryexpression.vala

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-07-28 07:58:01 UTC
  • mfrom: (1.5.5 upstream) (7.3.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20100728075801-18u9cg5hv5oety6m
Tags: 0.9.4-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
                        if (left.value_type.compatible (analyzer.string_type)
414
414
                            && right.value_type.compatible (analyzer.string_type)) {
415
415
                                // string comparison
 
416
                                if (analyzer.context.profile == Profile.DOVA) {
 
417
                                        var equals_call = new MethodCall (new MemberAccess (left, "equals", source_reference), source_reference);
 
418
                                        equals_call.add_argument (right);
 
419
                                        if (operator == BinaryOperator.EQUALITY) {
 
420
                                                parent_node.replace_expression (this, equals_call);
 
421
                                                return equals_call.check (analyzer);
 
422
                                        } else {
 
423
                                                var not = new UnaryExpression (UnaryOperator.LOGICAL_NEGATION, equals_call, source_reference);
 
424
                                                parent_node.replace_expression (this, not);
 
425
                                                return not.check (analyzer);
 
426
                                        }
 
427
                                }
416
428
                        }
417
429
 
418
430
                        value_type = analyzer.bool_type;