public void WriteIdentifier(string identifier) { var definition = GetCurrentDefinition(); if (definition != null) { output.WriteDefinition(identifier, definition); return; } object memberRef = GetCurrentMemberReference(); if (memberRef != null) { output.WriteReference(identifier, memberRef); return; } definition = GetCurrentLocalDefinition(); if (definition != null) { output.WriteDefinition(identifier, definition); return; } memberRef = GetCurrentLocalReference(); if (memberRef != null) { output.WriteReference(identifier, memberRef, true); return; } output.Write(identifier); }
public void WriteIdentifier(string identifier) { var definition = GetCurrentDefinition(); if (definition != null) { output.WriteDefinition(identifier, definition, false); return; } object memberRef = GetCurrentMemberReference(); if (memberRef != null) { output.WriteReference(identifier, memberRef); return; } definition = GetCurrentLocalDefinition(); if (definition != null) { output.WriteDefinition(identifier, definition); return; } memberRef = GetCurrentLocalReference(); if (memberRef != null) { output.WriteReference(identifier, memberRef, true); return; } if (firstUsingDeclaration) { output.MarkFoldStart(defaultCollapsed: true); firstUsingDeclaration = false; } output.Write(identifier); }