~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to contrib/NRefactory/Project/Src/Parser/CSharp/CSharpParser.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
                        Token pt = la;
466
466
                        bool result = IsTypeNameOrKWForTypeCast (ref pt) && IsIdentifierToken (pt);
467
467
                        if (Peek (1).kind == Tokens.Question) {
 
468
                                if (Peek (2).kind == Tokens.OpenSquareBracket) // array case: T?[,]
 
469
                                        return true;
468
470
                                result &= Peek (2).kind == Tokens.Identifier;
469
471
                                result &= Peek (3).kind == Tokens.Semicolon || Peek (3).kind == Tokens.Comma || Peek (3).kind == Tokens.Assign;
470
472
                        }
621
623
                internal static string GetReflectionNameForOperator(OverloadableOperatorType op)
622
624
                {
623
625
                        switch (op) {
 
626
                                case OverloadableOperatorType.None:
 
627
                                        return "op_unknown";
624
628
                                case OverloadableOperatorType.Add:
625
629
                                        return "op_Addition";
626
630
                                case OverloadableOperatorType.BitNot:
679
683
                                case OverloadableOperatorType.UnaryPlus:
680
684
                                        return "op_UnaryPlus";
681
685
                                default:
682
 
                                        throw new NotSupportedException();
 
686
                                        throw new NotSupportedException("opeartor type:" + op);
683
687
                        }
684
688
                }
685
689
        }