共用方式為


Tokenizer<TSymbol,TSymbolType> 類別

定義

generic <typename TSymbol, typename TSymbolType>
 where TSymbol : SymbolBase<TSymbolType> where TSymbolType : value classpublic ref class Tokenizer abstract : Microsoft::AspNetCore::Razor::Tokenizer::ITokenizer
public abstract class Tokenizer<TSymbol,TSymbolType> : Microsoft.AspNetCore.Razor.Tokenizer.ITokenizer where TSymbol : SymbolBase<TSymbolType> where TSymbolType : struct
type Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> SymbolBase<'SymbolType> and 'SymbolType : struct)> = class
    interface ITokenizer
Public MustInherit Class Tokenizer(Of TSymbol, TSymbolType)
Implements ITokenizer

類型參數

TSymbol
TSymbolType
繼承
Tokenizer<TSymbol,TSymbolType>
實作

建構函式

Tokenizer<TSymbol,TSymbolType>(ITextDocument)

屬性

Buffer
CurrentCharacter
CurrentErrors
CurrentLocation
CurrentStart
CurrentState
CurrentSymbol
EndOfFile
HaveContent
RazorCommentStarType
RazorCommentTransitionType
RazorCommentType
Source
StartState

方法

AfterRazorCommentTransition()
AtSymbolAfterRazorCommentBody()
CreateSymbol(SourceLocation, String, TSymbolType, IReadOnlyList<RazorError>)
Dispatch()
EndSymbol(SourceLocation, TSymbolType)
EndSymbol(TSymbolType)
MoveNext()
NextSymbol()
Peek()
RazorCommentBody()
Reset()
Single(TSymbolType)
StarAfterRazorCommentBody()
StartSymbol()
Stay()

傳回結果,指出此狀態沒有輸出,而且機器應該維持在這個狀態

Stay(TSymbol)

傳回包含指定輸出的結果,並指出 下一次呼叫 應該重新叫 Turn() 用目前狀態。

Stop()

傳回結果,指出機器應該停止執行並傳回 Null 輸出。

TakeAll(String, Boolean)
TakeCurrent()
TakeUntil(Func<Char,Boolean>)
Transition(Int32)

傳回結果,指出此狀態沒有輸出,而且機器應該立即叫用指定的狀態

Transition(Int32, TSymbol)

傳回結果,其中包含指定的輸出,並指出 下一次呼叫 Turn() 應該叫用提供的狀態。

Transition(Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState)
Transition(Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState, TSymbol)
Turn()

明確介面實作

ITokenizer.NextSymbol()

適用於