Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#202 [C#] else recognized as method

closed-fixed
None
5
2008-03-29
2007-11-12
Pieter
No

The else-part of an if-else construct is being recognized as a method (m).

Discussion

  • Elliott Hughes
    Elliott Hughes
    2008-03-17

    Logged In: YES
    user_id=1127237
    Originator: NO

    please supply a minimal test case, which version of ctags you're using, and the arguments you supplied.

     
  • Pieter
    Pieter
    2008-03-18

    Logged In: YES
    user_id=1649670
    Originator: YES

    I'm using the latest version: 5.7
    An example really is not very hard as it happened always in every part of the code. It looks something like this:

    ...
    if(a == b) {
    int foo = 1;
    } else {
    int foo = 2;
    }
    ...

     
  • Pieter
    Pieter
    2008-03-18

    Logged In: YES
    user_id=1649670
    Originator: YES

    This example actually does something. Maybe that works better:

    bool flagCheck = true;
    if (flagCheck == true)
    {
    Console.WriteLine("The flag is set to true.");
    }
    else
    {
    Console.WriteLine("The flag is set to false.");
    }

     
  • Elliott Hughes
    Elliott Hughes
    2008-03-29

    Logged In: YES
    user_id=1127237
    Originator: NO

    fixed in Subversion (revision 647).

     
  • Elliott Hughes
    Elliott Hughes
    2008-03-29

    • assigned_to: nobody --> elliotth
    • status: open --> closed-fixed