internal void WriteBody(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.WriteLine2($@"if(parentCluster is null || !parentCluster.{nameof(ICluster.IsRegisteredFromRecursive)}<{sng.GetShortName(ResolutionType)}>()) {{ RaiseNoBindingAvailable<{sng.GetShortName(ResolutionType)}>(); }} "); }
public void Write(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { var returnName = MethodResult.GetString(sng); var methodBody = _fullMethodBody(MethodName, returnName); writer.WriteLine2(methodBody); }
public void Write(IndentedTextWriter2 writer, ShortTypeNameGenerator sng) { writer.WriteLine2(GetText()); }