Tokenizer<TSymbol,TSymbolType>.Transition 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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