C# Класс Microsoft.Scripting.Hosting.TokenCategorizer

Наследование: System.Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
TokenCategorizer ( Microsoft.Scripting.Runtime.TokenizerService tokenizer ) : System

Описание методов

Initialize() публичный Метод

public Initialize ( object state, ScriptSource scriptSource, SourceLocation initialLocation ) : void
state object
scriptSource ScriptSource
initialLocation SourceLocation
Результат void

InitializeLifetimeService() публичный Метод

public InitializeLifetimeService ( ) : object
Результат object

ReadToken() публичный Метод

Move the tokenizer past the next token and return its category.
public ReadToken ( ) : TokenInfo
Результат TokenInfo

ReadTokens() публичный Метод

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.

public ReadTokens ( int characterCount ) : IEnumerable
characterCount int Tokens are read until at least given amount of characters is read or the stream ends.
Результат IEnumerable

SkipToken() публичный Метод

Move the tokenizer past the next token.
public SkipToken ( ) : bool
Результат bool

SkipTokens() публичный Метод

Scan from startLocation to at least startLocation + length.
This method is used to determine state at arbitrary startLocation.
public SkipTokens ( int characterCount ) : bool
characterCount int Tokens are read until at least given amount of characters is read or the stream ends.
Результат bool