/// <summary> /// Write a type signature to the text buffer /// </summary> /// <param name="tdef">Type reference</param> protected override void WriteTypeSignature(TypeReference tref) { tref.Accept(this); if (tref.GenericParameters.Count > 0) { Replace(GenericTypeTag + tref.GenericParameters.Count, String.Empty); } }
/// <summary> /// Write a type signature to the text buffer /// </summary> /// <param name="tref">Type definition</param> protected override void WriteTypeSignature(TypeReference tref) { tref.Accept(this); if (tref.GenericParameters.Count <= 0) { return; } foreach (var genparam in tref.GenericParameters.Where(genparam => genparam.Constraints.Count > 0)) { Write(CSharpKeyword.@where, SpaceSurrounder.Both); genparam.Accept(this); VisitVisitableCollection(GenericConstraintListStart, String.Empty, BasicSeparator, false, genparam.Constraints); } }
protected override void WriteTypeSignature(TypeReference tref) { tref.Accept(this); }
public void Reify(TypeReference node) { node.Accept(this); }