Tokenizer<TSymbol, TSymbolType>.CreateSymbol Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Creates a language symbol type for the tokenizer with the specified content.
Namespace: System.Web.Razor.Tokenizer
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected MustOverride Function CreateSymbol ( _
start As SourceLocation, _
content As String, _
type As TSymbolType, _
errors As IEnumerable(Of RazorError) _
) As TSymbol
'Usage
Dim start As SourceLocation
Dim content As String
Dim type As TSymbolType
Dim errors As IEnumerable(Of RazorError)
Dim returnValue As TSymbol
returnValue = Me.CreateSymbol(start, _
content, type, errors)
protected abstract TSymbol CreateSymbol(
SourceLocation start,
string content,
TSymbolType type,
IEnumerable<RazorError> errors
)
protected:
virtual TSymbol CreateSymbol(
SourceLocation start,
String^ content,
TSymbolType type,
IEnumerable<RazorError^>^ errors
) abstract
abstract CreateSymbol :
start:SourceLocation *
content:string *
type:'TSymbolType *
errors:IEnumerable<RazorError> -> 'TSymbol
protected abstract function CreateSymbol(
start : SourceLocation,
content : String,
type : TSymbolType,
errors : IEnumerable<RazorError>
) : TSymbol
Parameters
- start
Type: System.Web.Razor.Text.SourceLocation
The start of the source location.
- content
Type: System.String
The content value.
- type
Type: TSymbolType
The symbol type.
- errors
Type: System.Collections.Generic.IEnumerable<RazorError>
The razor error.
Return Value
Type: TSymbol
A language symbol type for the tokenizer.