Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 5 | 0.963 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 534 | src/NHibernate/Type/TypeFactory.cs |
2 | 13 | 668 | src/NHibernate/Type/TypeFactory.cs |
3 | 13 | 683 | src/NHibernate/Type/TypeFactory.cs |
| ||||
[MethodImpl(MethodImplOptions.Synchronized)] public static NullableType GetAnsiStringType(int length) { string key = GetKeyForLengthBased(NHibernateUtil.AnsiString.Name, length); IType returnType; if ( !typeByTypeOfName.TryGetValue(key, out returnType)) { returnType = new AnsiStringType(SqlTypeFactory.GetAnsiString(length)); AddToTypeOfNameWithLength(key, returnType); } return (NullableType)returnType; } |
| ||||
[MethodImpl(MethodImplOptions.Synchronized)] public static NullableType GetStringType(int length) { string key = GetKeyForLengthBased(NHibernateUtil.String.Name, length); IType returnType; if ( !typeByTypeOfName.TryGetValue(key, out returnType)) { returnType = new StringType(SqlTypeFactory.GetString(length)); AddToTypeOfNameWithLength(key, returnType); } return (NullableType)returnType; } |
| ||||
[MethodImpl(MethodImplOptions.Synchronized)] public static NullableType GetTypeType(int length) { string key = GetKeyForLengthBased( typeof(TypeType).FullName, length); IType returnType; if ( !typeByTypeOfName.TryGetValue(key, out returnType)) { returnType = new TypeType(SqlTypeFactory.GetString(length)); AddToTypeOfNameWithLength(key, returnType); } return (NullableType)returnType; } |
| |||
[MethodImpl(MethodImplOptions.Synchronized)] public static NullableType [[#variable56394600]](int length) { string key = GetKeyForLengthBased( [[#variable56394560]]. [[#variable56394500]], length); IType returnType; if ( !typeByTypeOfName.TryGetValue(key, out returnType)) { returnType = new [[#variable563944a0]](SqlTypeFactory. [[#variable563942a0]](length)); AddToTypeOfNameWithLength(key, returnType); } return (NullableType)returnType; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56394600]] | GetTypeType |
1 | 2 | [[#56394600]] | GetStringType |
1 | 3 | [[#56394600]] | GetAnsiStringType |
2 | 1 | [[#56394560]] | typeof(TypeType) |
2 | 2 | [[#56394560]] | NHibernateUtil.String |
2 | 3 | [[#56394560]] | NHibernateUtil.AnsiString |
3 | 1 | [[#56394500]] | FullName |
3 | 2 | [[#56394500]] | Name |
3 | 3 | [[#56394500]] | Name |
4 | 1 | [[#563944a0]] | TypeType |
4 | 2 | [[#563944a0]] | StringType |
4 | 3 | [[#563944a0]] | AnsiStringType |
5 | 1 | [[#563942a0]] | GetString |
5 | 2 | [[#563942a0]] | GetString |
5 | 3 | [[#563942a0]] | GetAnsiString |