Lines Matching defs:buf

207             string buf = SerializeToken( t );
208 Transmit( "consumeToken\t" + buf );
213 string buf = SerializeToken( t );
214 Transmit( "consumeHiddenToken\t" + buf );
255 StringBuilder buf = new StringBuilder( 50 );
256 buf.Append( "exception\t" );
257 buf.Append( e.GetType().Name );
259 buf.Append( "\t" );
260 buf.Append( e.Index );
261 buf.Append( "\t" );
262 buf.Append( e.Line );
263 buf.Append( "\t" );
264 buf.Append( e.CharPositionInLine );
265 Transmit( buf.ToString() );
280 StringBuilder buf = new StringBuilder( 50 );
281 buf.Append( "semanticPredicate\t" );
282 buf.Append( result );
283 SerializeText( buf, predicate );
284 Transmit( buf.ToString() );
291 StringBuilder buf = new StringBuilder( 50 );
292 buf.Append( "consumeNode" );
293 SerializeNode( buf, t );
294 Transmit( buf.ToString() );
302 StringBuilder buf = new StringBuilder( 50 );
303 buf.Append( "LN\t" ); // lookahead node; distinguish from LT in protocol
304 buf.Append( i );
305 SerializeNode( buf, t );
306 Transmit( buf.ToString() );
309 protected virtual void SerializeNode( StringBuilder buf, object t )
314 buf.Append( "\t" );
315 buf.Append( ID );
316 buf.Append( "\t" );
317 buf.Append( type );
326 buf.Append( "\t" );
327 buf.Append( line );
328 buf.Append( "\t" );
329 buf.Append( pos );
331 buf.Append( "\t" );
332 buf.Append( tokenIndex );
333 SerializeText( buf, text );
351 StringBuilder buf = new StringBuilder( 50 );
352 buf.Append( "errorNode\t" );
353 buf.Append( ID );
354 buf.Append( "\t" );
355 buf.Append( TokenTypes.Invalid );
356 SerializeText( buf, text );
357 Transmit( buf.ToString() );
365 StringBuilder buf = new StringBuilder( 50 );
366 buf.Append( "createNodeFromTokenElements\t" );
367 buf.Append( ID );
368 buf.Append( "\t" );
369 buf.Append( type );
370 SerializeText( buf, text );
371 Transmit( buf.ToString() );
408 StringBuilder buf = new StringBuilder( 50 );
409 buf.Append( t.TokenIndex );
410 buf.Append( '\t' );
411 buf.Append( t.Type );
412 buf.Append( '\t' );
413 buf.Append( t.Channel );
414 buf.Append( '\t' );
415 buf.Append( t.Line );
416 buf.Append( '\t' );
417 buf.Append( t.CharPositionInLine );
418 SerializeText( buf, t.Text );
419 return buf.ToString();
422 protected virtual void SerializeText( StringBuilder buf, string text )
424 buf.Append( "\t\"" );
432 buf.Append( text );