Method | Description | |
---|---|---|
Initialize ( object state, ScriptSource scriptSource, SourceLocation initialLocation ) : void | ||
InitializeLifetimeService ( ) : object | ||
ReadToken ( ) : TokenInfo |
Move the tokenizer past the next token and return its category.
|
|
ReadTokens ( int characterCount ) : IEnumerable |
Get all tokens over a block of the stream. The scanner should return full tokens. If startLocation + length lands in the middle of a token, the full token should be returned. |
|
SkipToken ( ) : bool |
Move the tokenizer past the next token.
|
|
SkipTokens ( int characterCount ) : bool |
Scan from startLocation to at least startLocation + length. This method is used to determine state at arbitrary startLocation. |
Method | Description | |
---|---|---|
TokenCategorizer ( Microsoft.Scripting.Runtime.TokenizerService tokenizer ) : System |
public Initialize ( object state, ScriptSource scriptSource, SourceLocation initialLocation ) : void | ||
state | object | |
scriptSource | ScriptSource | |
initialLocation | SourceLocation | |
return | void |
public InitializeLifetimeService ( ) : object | ||
return | object |
public ReadTokens ( int characterCount ) : IEnumerable |
||
characterCount | int | Tokens are read until at least given amount of characters is read or the stream ends. |
return | IEnumerable |
public SkipTokens ( int characterCount ) : bool | ||
characterCount | int | Tokens are read until at least given amount of characters is read or the stream ends. |
return | bool |