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
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
UpdateLineColumn ( char buffer, int index, int count ) : void
UpdateLineColumn ( string value ) : void

Method Details

GetFileMap() public méthode

public GetFileMap ( ) : string>[].KeyValuePair
Résultat string>[].KeyValuePair

GetLineMap() public méthode

public GetLineMap ( ) : int>[].KeyValuePair
Résultat int>[].KeyValuePair

MapLocation() public méthode

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
Résultat void

PositionTrackingWriter() public méthode

public PositionTrackingWriter ( ) : System
Résultat System

Write() public méthode

public Write ( char value ) : void
value char
Résultat void

Write() public méthode

public Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

Write() public méthode

public Write ( string value ) : void
value string
Résultat void