CloneSet160


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
48260.977switch_section
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1482363
src/NHibernate/Hql/Ast/ANTLR/Generated/SqlGenerator.cs
2482411
src/NHibernate/Hql/Ast/ANTLR/Generated/SqlGenerator.cs
Clone Instance
1
Line Count
48
Source Line
2363
Source File
src/NHibernate/Hql/Ast/ANTLR/Generated/SqlGenerator.cs

                case 3:
                    // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:4: ^( ALIAS_REF ( . )* )
                    {
                        Match(input, ALIAS_REF, FOLLOW_ALIAS_REF_in_selectAtom771);
                                                                                  if (state.failed) return retval;
                        if ( input.LA(1) == Token.DOWN)
                        {
                            Match(input, Token.DOWN, null); if (state.failed) return retval;
                            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: ( . )*
                            do
                            {
                                int alt30 = 2;
                                int LA30_0 = input.LA(1);

                                if ( ((LA30_0 >= ALL && LA30_0 <= BOGUS)))
                                {
                                    alt30 = 1;
                                }
                                else if ( (LA30_0 == UP))
                                {
                                    alt30 = 2;
                                }


                                switch (alt30)
                                {
                                        case 1:
                                            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: .
                                            {
                                                MatchAny(input); if (state.failed) return retval;
                                            }

                                            break;

                                        default:
                                            goto loop30;
                                }
                            } while (true);

                            loop30:
                                ;       // Stops C# compiler whining that label 'loop30' has no statements


                            Match(input, Token.UP, null); if (state.failed) return retval;
                        }
                    }

                    break;


Clone Instance
2
Line Count
48
Source Line
2411
Source File
src/NHibernate/Hql/Ast/ANTLR/Generated/SqlGenerator.cs

                case 4:
                    // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:4: ^( SELECT_EXPR ( . )* )
                    {
                        Match(input, SELECT_EXPR, FOLLOW_SELECT_EXPR_in_selectAtom781);
                                                                                      if (state.failed) return retval;
                        if ( input.LA(1) == Token.DOWN)
                        {
                            Match(input, Token.DOWN, null); if (state.failed) return retval;
                            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: ( . )*
                            do
                            {
                                int alt31 = 2;
                                int LA31_0 = input.LA(1);

                                if ( ((LA31_0 >= ALL && LA31_0 <= BOGUS)))
                                {
                                    alt31 = 1;
                                }
                                else if ( (LA31_0 == UP))
                                {
                                    alt31 = 2;
                                }


                                switch (alt31)
                                {
                                        case 1:
                                            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: .
                                            {
                                                MatchAny(input); if (state.failed) return retval;
                                            }

                                            break;

                                        default:
                                            goto loop31;
                                }
                            } while (true);

                            loop31:
                                ;       // Stops C# compiler whining that label 'loop31' has no statements


                            Match(input, Token.UP, null); if (state.failed) return retval;
                        }
                    }

                    break;


Clone AbstractionParameter Count: 6Parameter Bindings

case [[#variable54145360]]:
   // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:4: ^( SELECT_EXPR ( . )* )
   // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:4: ^( ALIAS_REF ( . )* )
   {
      Match(input, [[#variable541452e0]], [[#variable54145280]]);
      if (state.failed)
         return retval;
      if (input.LA(1) == Token.DOWN)
      {
         Match(input, Token.DOWN, null);
         if (state.failed)
            return retval;
         // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: ( . )*
         // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: ( . )*
         do
         {
            int [[#variable54145220]]= 2;
            int [[#variable54145160]]= input.LA(1);
            if ((( [[#variable54145160]]>= ALL && [[#variable54145160]]<= BOGUS)))
            {
                [[#variable54145220]]= 1;
            }
            else
            if (( [[#variable54145160]]== UP))
            {
                [[#variable54145220]]= 2;
            }
            switch ( [[#variable54145220]])
            {
               case 1:
                  // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: .
                  // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: .
                  {
                     MatchAny(input);
                     if (state.failed)
                        return retval;
                  }
                  break;
               default:
                  goto [[#variable541450e0]];
            }
         } while (true);
          [[#variable541450e0]]:
            ; // Stops C# compiler whining that label 'loop31' has no statements // Stops C# compiler whining that label 'loop30' has no statements
         Match(input, Token.UP, null);
         if (state.failed)
            return retval;
      }
   }
   break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54145360]]
4 
12[[#54145360]]
3 
21[[#541452e0]]
SELECT_EXPR 
22[[#541452e0]]
ALIAS_REF 
31[[#54145280]]
FOLLOW_SELECT_EXPR_in_selectAtom781 
32[[#54145280]]
FOLLOW_ALIAS_REF_in_selectAtom771 
41[[#54145220]]
alt31 
42[[#54145220]]
alt30 
51[[#54145160]]
LA31_0 
52[[#54145160]]
LA30_0 
61[[#541450e0]]
loop31 
62[[#541450e0]]
loop30