C# Class Microsoft.JScript.JSScanner

ファイルを表示 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
GetCurrentLine ( ) : int
GetCurrentPosition ( bool absolute ) : int
GetNextToken ( ) : void
GetSourceCode ( ) : string
GetStartLinePosition ( ) : int
GetStringLiteral ( ) : string
GotEndOfLine ( ) : bool
IsKeyword ( JSToken token ) : bool
IsOperator ( JSToken token ) : bool
JSScanner ( ) : Microsoft.JScript.Vsa
JSScanner ( Context sourceContext ) : Microsoft.JScript.Vsa
SetAuthoringMode ( bool mode ) : void
SetSource ( Context sourceContext ) : void
SkipMultiLineComment ( ) : int

Private Methods

Method Description
CanParseAsExpression ( JSToken token ) : bool
CanStartStatement ( JSToken token ) : bool
GetChar ( int index ) : char
GetHexValue ( char hex ) : int
GetIdentifier ( ) : String
GetOperatorPrecedence ( JSToken token ) : OpPrec
GetPPOperatorPrecedence ( JSToken token ) : OpPrec
GetPreProcessorValue ( ) : Object
HandleError ( JSError error ) : void
InitOperatorsPrec ( ) : OpPrec[]
InitPPOperatorsPrec ( ) : OpPrec[]
IsAsciiLetter ( char c ) : bool
IsAssignmentOperator ( JSToken token ) : bool
IsBlankSpace ( char c ) : bool
IsDigit ( char c ) : bool
IsEndLineOrEOF ( char c, int increment ) : bool
IsHexDigit ( char c ) : bool
IsIdentifierPartChar ( char c ) : bool
IsIdentifierStartChar ( char &c ) : bool
IsLineTerminator ( char c, int increment ) : bool
IsPPOperator ( JSToken token ) : bool
IsProcessableOperator ( JSToken token ) : bool
IsRightAssociativeOperator ( JSToken token ) : bool
IsUnicodeLetter ( char c ) : bool
PPDebugDirective ( ) : void
PPGetValue ( JSToken op, Object op1, Object op2 ) : Object
PPLanguageOption ( ) : void
PPRemapPositionInfo ( ) : void
PPScanConstant ( ) : Object
PPScanExpr ( ) : Object
PPScanSet ( ) : void
PPSkipToNextCondition ( bool checkCondition ) : void
PPTestCond ( ) : bool
PeekToken ( ) : JSToken
ScanIdentifier ( ) : void
ScanKeyword ( JSKeyword keyword ) : JSToken
ScanNumber ( char leadChar ) : JSToken
ScanRegExp ( ) : String
ScanRegExpFlags ( ) : String
ScanString ( char cStringTerminator ) : void
SetPreProcessorOn ( ) : void
SkipBlanks ( ) : void
SkipSingleLineComment ( ) : void

Method Details

GetCurrentLine() public method

public GetCurrentLine ( ) : int
return int

GetCurrentPosition() public method

public GetCurrentPosition ( bool absolute ) : int
absolute bool
return int

GetNextToken() public method

public GetNextToken ( ) : void
return void

GetSourceCode() public method

public GetSourceCode ( ) : string
return string

GetStartLinePosition() public method

public GetStartLinePosition ( ) : int
return int

GetStringLiteral() public method

public GetStringLiteral ( ) : string
return string

GotEndOfLine() public method

public GotEndOfLine ( ) : bool
return bool

IsKeyword() public static method

public static IsKeyword ( JSToken token ) : bool
token JSToken
return bool

IsOperator() public static method

public static IsOperator ( JSToken token ) : bool
token JSToken
return bool

JSScanner() public method

public JSScanner ( ) : Microsoft.JScript.Vsa
return Microsoft.JScript.Vsa

JSScanner() public method

public JSScanner ( Context sourceContext ) : Microsoft.JScript.Vsa
sourceContext Context
return Microsoft.JScript.Vsa

SetAuthoringMode() public method

public SetAuthoringMode ( bool mode ) : void
mode bool
return void

SetSource() public method

public SetSource ( Context sourceContext ) : void
sourceContext Context
return void

SkipMultiLineComment() public method

public SkipMultiLineComment ( ) : int
return int