C# Class Microsoft.Scripting.Runtime.PositionTrackingWriter

Efficiently tracks (line,column) information as text is added, and collects line mappings between the original and generated source code so we can generate correct debugging information later
Inheritance: System.IO.StringWriter
显示文件 Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
GetFileMap ( ) : string>[].KeyValuePair
GetLineMap ( ) : int>[].KeyValuePair
MapLocation ( CodeLinePragma linePragma ) : void

Marks the current position of the writer as corresponding to the original location passed in

PositionTrackingWriter ( ) : System
Write ( char value ) : void
Write ( char buffer, int index, int count ) : void
Write ( string value ) : void

Private Methods

Method Description
UpdateLineColumn ( char buffer, int index, int count ) : void
UpdateLineColumn ( string value ) : void

Method Details

GetFileMap() public method

public GetFileMap ( ) : string>[].KeyValuePair
return string>[].KeyValuePair

GetLineMap() public method

public GetLineMap ( ) : int>[].KeyValuePair
return int>[].KeyValuePair

MapLocation() public method

Marks the current position of the writer as corresponding to the original location passed in
public MapLocation ( CodeLinePragma linePragma ) : void
linePragma System.CodeDom.CodeLinePragma the line pragma corresponding to the /// current position in the generated code
return void

PositionTrackingWriter() public method

public PositionTrackingWriter ( ) : System
return System

Write() public method

public Write ( char value ) : void
value char
return void

Write() public method

public Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

Write() public method

public Write ( string value ) : void
value string
return void