@@ -94,22 +94,24 @@ protected override void WriteSingleItem(
94
94
}
95
95
96
96
/// <summary>
97
- /// Gets field reference identifier (if field is defined inside target assembly).
97
+ /// Gets field definition identifier (if field is defined inside target assembly).
98
98
/// </summary>
99
99
/// <param name="field">Field definition in Mono.Cecil format.</param>
100
- /// <param name="trackMaxReferenceId ">If set to <c>true</c> we should track max ID value.</param>
101
- /// <param name="referenceId ">Field reference identifier for filling.</param>
100
+ /// <param name="trackMaxDefinitionId ">If set to <c>true</c> we should track max ID value.</param>
101
+ /// <param name="definitionId ">Field definition identifier for filling.</param>
102
102
/// <returns>Returns <c>true</c> if item found, otherwise returns <c>false</c>.</returns>
103
- public bool TryGetFieldReferenceId (
103
+ public bool TryGetFieldDefinitionId (
104
104
FieldDefinition field ,
105
- bool trackMaxReferenceId ,
106
- out ushort referenceId )
105
+ bool trackMaxDefinitionId ,
106
+ out ushort definitionId )
107
107
{
108
- var found = TryGetIdByValue ( field , out referenceId ) ;
109
- if ( trackMaxReferenceId && found )
108
+ bool found = TryGetIdByValue ( field , out definitionId ) ;
109
+
110
+ if ( trackMaxDefinitionId && found )
110
111
{
111
- _maxReferenceId = Math . Max ( _maxReferenceId , referenceId + 1 ) ;
112
+ _maxReferenceId = Math . Max ( _maxReferenceId , definitionId + 1 ) ;
112
113
}
114
+
113
115
return found ;
114
116
}
115
117
0 commit comments