53 references to _builder
Microsoft.Extensions.Logging.Generators (53)
LoggerMessageGenerator.Emitter.cs (53)
36_builder.Clear(); 37_builder.AppendLine("// <auto-generated/>"); 38_builder.AppendLine("#nullable enable"); 47return _builder.ToString(); 81_builder.Append($@" 98_builder.Append($@" 104_builder.Append($@" 118_builder.Append($@" 125_builder.Append($@" 132_builder.Append($@" 139_builder.AppendLine($@" 149_builder.Append($@" 152_builder.Append($@") 154_builder.AppendLine(); 156_builder.Append($@" 161_builder.Append($@" 166_builder.Append($@" 170_builder.Append($@" 181_builder.Append($@" 203_builder.AppendLine($" {nestedIndentation}private readonly {p.Type} {NormalizeSpecialSymbol(p.CodeName)};"); 211_builder.AppendLine($" {nestedIndentation}this.{NormalizeSpecialSymbol(p.CodeName)} = {p.CodeName};"); 237_builder.AppendLine($" {nestedIndentation}var {t.Key} = " 244_builder.AppendLine($" {nestedIndentation}var {t.Key} = this.{NormalizeSpecialSymbol(lm.TemplateParameters[index].CodeName)};"); 263_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{name}\", this.{NormalizeSpecialSymbol(p.CodeName)}),"); 266_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{{OriginalFormat}}\", \"{ConvertEndOfLineAndQuotationCharactersToEscapeForm(lm.Message)}\"),"); 273_builder.Append($"{p.CodeName}, "); 285_builder.Append('<'); 297_builder.Append(", "); 300_builder.Append($"{p.Type}"); 305_builder.Append('>'); 309_builder.Append(", "); 324_builder.Append(", "); 329_builder.Append($"{p.Qualifier} "); 331_builder.Append($"{p.Type} {p.CodeName}"); 346_builder.Append(", "); 349_builder.Append($"{p.Type} {p.CodeName}"); 357_builder.Append($"new {typeName}("); 362_builder.Append(", "); 365_builder.Append(p.CodeName); 368_builder.Append(')'); 381_builder.Append($@" 387_builder.Append($@"global::System.Exception?> __{lm.UniqueName}Callback = 392_builder.Append(@$"({level}, new global::Microsoft.Extensions.Logging.EventId({lm.EventId}, {eventName}), ""{ConvertEndOfLineAndQuotationCharactersToEscapeForm(lm.Message)}"", new global::Microsoft.Extensions.Logging.LogDefineOptions() {{ SkipEnabledCheck = true }}); 396_builder.Append($@" 402_builder.Append($@") 408_builder.Append($@" 415_builder.Append($@" 420_builder.Append($"{exceptionArg});"); 424_builder.Append($@" 430_builder.Append($@", 437_builder.Append($@" 441_builder.Append($@" 510_builder.Append($@"