共用方式為


Tokenizer<TSymbol,TSymbolType>.Transition 方法

定義

多載

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

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

Transition(Int32, TSymbol)

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

Transition(Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState)

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

protected:
 Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::StateResult Transition(Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::RazorCommentTokenizerState state, TSymbol result);
protected Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.StateResult Transition (Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState state, TSymbol result);
member this.Transition : Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.RazorCommentTokenizerState * 'Symbol -> Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.StateResult
Protected Function Transition (state As Tokenizer(Of TSymbol, TSymbolType).RazorCommentTokenizerState, result As TSymbol) As Tokenizer(Of TSymbol, TSymbolType).StateResult

參數

result
TSymbol

傳回

適用於

Transition(Int32)

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

protected:
 Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::StateResult Transition(int state);
protected Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.StateResult Transition (int state);
member this.Transition : int -> Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.StateResult
Protected Function Transition (state As Integer) As Tokenizer(Of TSymbol, TSymbolType).StateResult

參數

state
Int32

傳回

備註

藉由傳回沒有輸出,狀態機器會立即叫用下一個狀態,再將控制器傳回給 的呼叫端 Turn()

適用於

Transition(Int32, TSymbol)

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

protected:
 Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::StateResult Transition(int state, TSymbol result);
protected Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.StateResult Transition (int state, TSymbol result);
member this.Transition : int * 'Symbol -> Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.StateResult
Protected Function Transition (state As Integer, result As TSymbol) As Tokenizer(Of TSymbol, TSymbolType).StateResult

參數

state
Int32
result
TSymbol

傳回

適用於

Transition(Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState)

protected:
 Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::StateResult Transition(Microsoft::AspNetCore::Razor::Tokenizer::Tokenizer<TSymbol, TSymbolType>::RazorCommentTokenizerState state);
protected Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.StateResult Transition (Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<TSymbol,TSymbolType>.RazorCommentTokenizerState state);
member this.Transition : Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.RazorCommentTokenizerState -> Microsoft.AspNetCore.Razor.Tokenizer.Tokenizer<'Symbol, 'SymbolType (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'SymbolType : struct)>.StateResult
Protected Function Transition (state As Tokenizer(Of TSymbol, TSymbolType).RazorCommentTokenizerState) As Tokenizer(Of TSymbol, TSymbolType).StateResult

參數

傳回

適用於