1 write to _builder
Microsoft.CodeAnalysis.CSharp (1)
Parser\Lexer.cs (1)
128
_builder
= _cache.StringBuilder;
34 references to _builder
Microsoft.CodeAnalysis.CSharp (34)
Parser\Lexer.cs (15)
847
_builder
.Append(ch);
869
_builder
.Clear();
940
_builder
.Append(ch);
945
else if (
_builder
.Length == 0)
955
_builder
.Append(ch);
960
_builder
.Append(ch);
969
_builder
.Append('0');
1053
var valueText = TextWindow.Intern(
_builder
);
2976
_builder
.Clear();
2992
_builder
.Append(ch);
2995
switch (
_builder
.ToString())
3014
errorArgs = new[] {
_builder
.ToString() };
3062
_builder
.Append(highSurrogate);
3065
_builder
.Append(lowSurrogate);
3068
info.StringValue =
_builder
.ToString();
Parser\Lexer_RawStringLiteral.cs (5)
59
_builder
.Length = 0;
238
info.StringValue = this.HasErrors ? "" : TextWindow.Intern(
_builder
);
324
_builder
.Append(TextWindow.PeekChar());
371
_builder
.Append(currentLineWhitespace, startIndex: indentationWhitespace.Length, count: Math.Max(0, currentLineWhitespace.Length - indentationWhitespace.Length));
385
_builder
.Append(currentChar);
Parser\Lexer_StringLiteral.cs (14)
36
_builder
.Length = 0;
46
_builder
.Append(ch);
49
_builder
.Append(c2);
70
_builder
.Append(ch);
78
if (
_builder
.Length != 1)
80
this.AddError((
_builder
.Length != 0) ? ErrorCode.ERR_TooManyCharsInConst : ErrorCode.ERR_EmptyCharConst);
83
if (
_builder
.Length > 0)
85
info.StringValue = TextWindow.Intern(
_builder
);
107
if (
_builder
.Length > 0)
109
info.StringValue = TextWindow.Intern(
_builder
);
195
_builder
.Length = 0;
221
_builder
.Append(ch);
238
_builder
.Append(ch);
251
info.StringValue =
_builder
.ToString();