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()

适用于