1 write to _sb
Microsoft.ML.Transforms (1)
Expression\Lexer.cs (1)
62_sb = new StringBuilder();
46 references to _sb
Microsoft.ML.Transforms (46)
Expression\Lexer.cs (46)
216_sb.Length = 0; 217_sb.Append(ChCur); 221NormStr nstr = _lex._pool.Add(_sb); 229cchPunc = _sb.Length; 232char ch = ChPeek(_sb.Length); 235_sb.Append(ch); 271_sb.Length = 0; 272_sb.Append(ChCur); 284_sb.Append(ChCur); 294_sb.Append(ChCur); 295_sb.Append(ChNext()); 297_sb.Append(chTmp); 343Contracts.Assert(_sb.Length > 0); 348for (int ich = 0; ich < _sb.Length; ich++) 349u = checked(u * 10 + (ulong)LexCharUtils.GetDecVal(_sb[ich])); 365Contracts.Assert(_sb.Length > 0); 374double dbl = double.Parse(_sb.ToString(), NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent); 385double dbl = double.Parse(_sb.ToString(), NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent); 461_sb.Length = 0; 479ch = LexLineTerm(_sb); 487_sb.Append(ch); 513_sb.Append(chT); 518_sb.Append(ch); 528return new StrLitToken(GetSpan(), _sb.ToString()); 530if (_sb.Length != 1) 531ReportError(_sb.Length == 0 ? ErrId.CharConstEmpty : ErrId.CharConstTooLong); 532return new CharLitToken(GetSpan(), _sb.Length > 0 ? _sb[0] : '\0'); 680_sb.Length = 0; 707_sb.Append(ch); 710if (_sb.Length == 0) 713return _lex._pool.Add(_sb); 731_sb.Length = 0; 732_sb.Append("//"); 736return new CommentToken(GetSpan(), _sb.ToString(), 0); 737_sb.Append(ChCur); 742_sb.Length = 0; 743_sb.Append("/*"); 756ch = LexLineTerm(_sb); 761_sb.Append(ch); 764_sb.Append('/'); 771NormStr nstr = _lex._pool.Add(_sb); 774return new CommentToken(GetSpan(), _sb.ToString(), lines); 835_sb.Length = 0; 838_sb.AppendFormat("{0}({1})", ChCur, LexCharUtils.GetUniEscape(ChCur)); 840return new ErrorToken(GetSpan(), ErrId.BadChar, _sb.ToString());