@@ -94,22 +94,24 @@ protected override void WriteSingleItem(
9494 }
9595
9696 /// <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).
9898 /// </summary>
9999 /// <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>
102102 /// <returns>Returns <c>true</c> if item found, otherwise returns <c>false</c>.</returns>
103- public bool TryGetFieldReferenceId (
103+ public bool TryGetFieldDefinitionId (
104104 FieldDefinition field ,
105- bool trackMaxReferenceId ,
106- out ushort referenceId )
105+ bool trackMaxDefinitionId ,
106+ out ushort definitionId )
107107 {
108- var found = TryGetIdByValue ( field , out referenceId ) ;
109- if ( trackMaxReferenceId && found )
108+ bool found = TryGetIdByValue ( field , out definitionId ) ;
109+
110+ if ( trackMaxDefinitionId && found )
110111 {
111- _maxReferenceId = Math . Max ( _maxReferenceId , referenceId + 1 ) ;
112+ _maxReferenceId = Math . Max ( _maxReferenceId , definitionId + 1 ) ;
112113 }
114+
113115 return found ;
114116 }
115117
0 commit comments