C# Class Irony.Parsing.SourceStream

Inheritance: ISourceStream
显示文件 Open project: o2platform/O2.Platform.Projects Class Usage Examples

Public Methods

Method Description
CreateErrorToken ( string message ) : Token
CreateToken ( Irony.Parsing.Terminal terminal ) : Token
CreateToken ( Irony.Parsing.Terminal terminal, object value ) : Token
MatchSymbol ( string symbol, bool ignoreCase ) : bool
MoveLocationToPreviewPosition ( ) : void
SetText ( string text, int offset, bool keepLineNumbering ) : void
SourceStream ( ScannerData scannerData, int tabWidth ) : System
ToString ( ) : string

Private Methods

Method Description
CountCharsInText ( string text, char chars, int from, int until, int &count, int &lastCharOccurrencePosition ) : void
EOF ( ) : bool
GetPreviewText ( ) : string

Method Details

CreateErrorToken() public method

public CreateErrorToken ( string message ) : Token
message string
return Token

CreateToken() public method

public CreateToken ( Irony.Parsing.Terminal terminal ) : Token
terminal Irony.Parsing.Terminal
return Token

CreateToken() public method

public CreateToken ( Irony.Parsing.Terminal terminal, object value ) : Token
terminal Irony.Parsing.Terminal
value object
return Token

MatchSymbol() public method

public MatchSymbol ( string symbol, bool ignoreCase ) : bool
symbol string
ignoreCase bool
return bool

MoveLocationToPreviewPosition() public method

public MoveLocationToPreviewPosition ( ) : void
return void

SetText() public method

public SetText ( string text, int offset, bool keepLineNumbering ) : void
text string
offset int
keepLineNumbering bool
return void

SourceStream() public method

public SourceStream ( ScannerData scannerData, int tabWidth ) : System
scannerData ScannerData
tabWidth int
return System

ToString() public method

public ToString ( ) : string
return string