C# Class Irony.Parsing.ParsingContext

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

Public Properties

Property Type Description
Culture System.Globalization.CultureInfo
CurrentTerminals TerminalList
CurrentToken Token
HasErrors bool
Language Irony.Parsing.LanguageData
MaxErrors int
Mode ParseMode
OpenBraces TokenStack
Options ParseOptions
Parser Parser
ParserTrace ParserTrace
PreviousLineStart SourceLocation
PreviousToken Token
TabWidth int
Values object>.Dictionary
VsLineScanState VsScannerStateMap

Public Methods

Method Description
AddParserError ( string message ) : void
AddParserMessage ( ParserErrorLevel level, SourceLocation location, string message ) : void
AddTrace ( string message ) : void
GetExpectedTermSet ( ) : StringSet
OptionIsSet ( ParseOptions option ) : bool
ParsingContext ( Parser parser ) : System
SetOption ( ParseOptions option, bool value ) : void
SetSourceLocation ( SourceLocation location ) : void

Private Methods

Method Description
FilterBracesInExpectedSet ( StringSet stateExpectedSet ) : StringSet
FormatUnexpectedInputErrorMessage ( ) : string
OnTokenCreated ( ) : void
Reset ( ) : void

Method Details

AddParserError() public method

public AddParserError ( string message ) : void
message string
return void

AddParserMessage() public method

public AddParserMessage ( ParserErrorLevel level, SourceLocation location, string message ) : void
level ParserErrorLevel
location SourceLocation
message string
return void

AddTrace() public method

public AddTrace ( string message ) : void
message string
return void

GetExpectedTermSet() public method

public GetExpectedTermSet ( ) : StringSet
return StringSet

OptionIsSet() public method

public OptionIsSet ( ParseOptions option ) : bool
option ParseOptions
return bool

ParsingContext() public method

public ParsingContext ( Parser parser ) : System
parser Parser
return System

SetOption() public method

public SetOption ( ParseOptions option, bool value ) : void
option ParseOptions
value bool
return void

SetSourceLocation() public method

public SetSourceLocation ( SourceLocation location ) : void
location SourceLocation
return void

Property Details

Culture public_oe property

public CultureInfo,System.Globalization Culture
return System.Globalization.CultureInfo

CurrentTerminals public_oe property

public TerminalList CurrentTerminals
return TerminalList

CurrentToken public_oe property

public Token CurrentToken
return Token

HasErrors public_oe property

public bool HasErrors
return bool

Language public_oe property

public LanguageData,Irony.Parsing Language
return Irony.Parsing.LanguageData

MaxErrors public_oe property

public int MaxErrors
return int

Mode public_oe property

public ParseMode Mode
return ParseMode

OpenBraces public_oe property

public TokenStack OpenBraces
return TokenStack

Options public_oe property

public ParseOptions Options
return ParseOptions

Parser public_oe property

public Parser,Irony.Parsing Parser
return Parser

ParserTrace public_oe property

public ParserTrace ParserTrace
return ParserTrace

PreviousLineStart public_oe property

public SourceLocation,Irony.Parsing PreviousLineStart
return SourceLocation

PreviousToken public_oe property

public Token PreviousToken
return Token

TabWidth public_oe property

public int TabWidth
return int

Values public_oe property

public Dictionary Values
return object>.Dictionary

VsLineScanState public_oe property

public VsScannerStateMap,Irony.Parsing VsLineScanState
return VsScannerStateMap