C# Class ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngineBase.MiniLexer

Exibir arquivo Open project: 0xd4d/NRefactory Class Usage Examples

Public Properties

Property Type Description
IsFistNonWs bool
IsInChar bool
IsInMultiLineComment bool
IsInPreprocessorDirective bool
IsInSingleComment bool
IsInString bool
IsInVerbatimString bool

Public Methods

Method Description
MiniLexer ( string text ) : System
Parse ( Func act = null ) : bool

Parsing all text and calling act delegate on almost every character. Skipping begining of comments, begining of verbatim strings and escaped characters.

Parse ( int start, int length, Func act = null ) : bool

Parsing text from start to start+length and calling act delegate on almost every character. Skipping begining of comments, begining of verbatim strings and escaped characters.

Method Details

MiniLexer() public method

public MiniLexer ( string text ) : System
text string
return System

Parse() public method

Parsing all text and calling act delegate on almost every character. Skipping begining of comments, begining of verbatim strings and escaped characters.
public Parse ( Func act = null ) : bool
act Func Return true to abort parsing. Integer argument represent offset in text.
return bool

Parse() public method

Parsing text from start to start+length and calling act delegate on almost every character. Skipping begining of comments, begining of verbatim strings and escaped characters.
public Parse ( int start, int length, Func act = null ) : bool
start int Start offset.
length int Lenght to parse.
act Func Return true to abort parsing. Integer argument represent offset in text.
return bool

Property Details

IsFistNonWs public_oe property

public bool IsFistNonWs
return bool

IsInChar public_oe property

public bool IsInChar
return bool

IsInMultiLineComment public_oe property

public bool IsInMultiLineComment
return bool

IsInPreprocessorDirective public_oe property

public bool IsInPreprocessorDirective
return bool

IsInSingleComment public_oe property

public bool IsInSingleComment
return bool

IsInString public_oe property

public bool IsInString
return bool

IsInVerbatimString public_oe property

public bool IsInVerbatimString
return bool