1 write to _builder
Microsoft.CodeAnalysis.CSharp (1)
Parser\Lexer.cs (1)
119
_builder
= new StringBuilder();
34 references to _builder
Microsoft.CodeAnalysis.CSharp (34)
Parser\Lexer.cs (15)
848
_builder
.Append(ch);
870
_builder
.Clear();
941
_builder
.Append(ch);
946
else if (
_builder
.Length == 0)
956
_builder
.Append(ch);
961
_builder
.Append(ch);
970
_builder
.Append('0');
1054
var valueText = TextWindow.Intern(
_builder
);
2954
_builder
.Clear();
2970
_builder
.Append(ch);
2973
switch (
_builder
.ToString())
2992
errorArgs = new[] {
_builder
.ToString() };
3040
_builder
.Append(highSurrogate);
3043
_builder
.Append(lowSurrogate);
3046
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();