CloneSet2166


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.954non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17290
src/NHibernate/SqlCommand/QuerySelect.cs
27322
src/NHibernate/SqlCommand/QuerySelect.cs
Clone Instance
1
Line Count
7
Source Line
290
Source File
src/NHibernate/SqlCommand/QuerySelect.cs

                                //TODO: seems HACKish to cast between String and SqlString
                                if (tokenString != null)
                                {
                                        quoted = tokenString.StartsWith("'");
                                }
                                else
                                {
                                        quoted = tokenSqlString.StartsWithCaseInsensitive("'");
                                }


Clone Instance
2
Line Count
7
Source Line
322
Source File
src/NHibernate/SqlCommand/QuerySelect.cs

                                if (tokenString != null)
                                {
                                        lastQuoted = tokenString.EndsWith("'");
                                }
                                else
                                {
                                        lastQuoted = tokenSqlString.EndsWith("'");
                                }


Clone AbstractionParameter Count: 3Parameter Bindings

//TODO: seems HACKish to cast between String and SqlString
if (tokenString != null)
{
    [[#variable6e6fe660]]= tokenString. [[#variable6e6ff3e0]]("'");
}
else
{
    [[#variable6e6fe660]]= tokenSqlString. [[#variable6e6ff2a0]]("'");
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e6fe660]]
quoted 
12[[#6e6fe660]]
lastQuoted 
21[[#6e6ff3e0]]
StartsWith 
22[[#6e6ff3e0]]
EndsWith 
31[[#6e6ff2a0]]
StartsWithCaseInsensitive 
32[[#6e6ff2a0]]
EndsWith