Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 4 | 0.959 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 338 | src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs |
2 | 15 | 1442 | src/NHibernate/Hql/Classic/QueryTranslator.cs |
| ||||
{ string[][] scalarColumns = _scalarColumnNames; int queryCols = _queryReturnTypes.Length; if ( !hasTransform && queryCols == 1) { return _queryReturnTypes[0].NullSafeGet(rs, scalarColumns[0], session, null); } else { row = new object[queryCols]; for (int i = 0; i < queryCols; i++) { row[i] = _queryReturnTypes[i].NullSafeGet(rs, scalarColumns[i], session, null); } return row; } } |
| ||||
{ string[][] _names = ScalarColumnNames; int queryCols = _returnTypes.Length; if (holderClass == null && queryCols == 1) { return _returnTypes[0].NullSafeGet(rs, _names[0], session, null); } else { row = new object[queryCols]; for (int i = 0; i < queryCols; i++) { row[i] = _returnTypes[i].NullSafeGet(rs, _names[i], session, null); } return row; } } |
| |||
{ string[][] [[#variable5503e9e0]]= [[#variable5503ea20]]; int queryCols = [[#variable5503e9a0]].Length; if ( [[#variable5503e980]]&& queryCols == 1) { return [[#variable5503e9a0]][0].NullSafeGet(rs, [[#variable5503e9e0]][0], session, null); } else { row = new object[queryCols]; for (int i = 0; i < queryCols; i++) { row[i] = [[#variable5503e9a0]][i].NullSafeGet(rs, [[#variable5503e9e0]][i], session, null); } return row; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5503e9e0]] | _names |
1 | 2 | [[#5503e9e0]] | scalarColumns |
2 | 1 | [[#5503ea20]] | ScalarColumnNames |
2 | 2 | [[#5503ea20]] | _scalarColumnNames |
3 | 1 | [[#5503e9a0]] | _returnTypes |
3 | 2 | [[#5503e9a0]] | _queryReturnTypes |
4 | 1 | [[#5503e980]] | holderClass == null |
4 | 2 | [[#5503e980]] | !hasTransform |