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

            var methodBody = _fullMethodBody(MethodName, returnName);

            writer.WriteLine2(methodBody);
        }
Example #3
0
 public void Write(IndentedTextWriter2 writer, ShortTypeNameGenerator sng)
 {
     writer.WriteLine2(GetText());
 }