LanguageCharacteristics<TTokenizer, 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 code language symbol with the specified source location with the specified source location as the start marker.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected MustOverride Function CreateSymbol ( _
location As SourceLocation, _
content As String, _
type As TSymbolType, _
errors As IEnumerable(Of RazorError) _
) As TSymbol
'Usage
Dim location As SourceLocation
Dim content As String
Dim type As TSymbolType
Dim errors As IEnumerable(Of RazorError)
Dim returnValue As TSymbol
returnValue = Me.CreateSymbol(location, _
content, type, errors)
protected abstract TSymbol CreateSymbol(
SourceLocation location,
string content,
TSymbolType type,
IEnumerable<RazorError> errors
)
protected:
virtual TSymbol CreateSymbol(
SourceLocation location,
String^ content,
TSymbolType type,
IEnumerable<RazorError^>^ errors
) abstract
abstract CreateSymbol :
location:SourceLocation *
content:string *
type:'TSymbolType *
errors:IEnumerable<RazorError> -> 'TSymbol
protected abstract function CreateSymbol(
location : SourceLocation,
content : String,
type : TSymbolType,
errors : IEnumerable<RazorError>
) : TSymbol
Parameters
- location
Type: System.Web.Razor.Text.SourceLocation
The source location as the start marker.
- content
Type: System.String
The content.
- type
Type: TSymbolType
The enumeration type for the language symbol.
- errors
Type: System.Collections.Generic.IEnumerable<RazorError>
The collection of error.
Return Value
Type: TSymbol
The symbol for the code language.
See Also
Reference
LanguageCharacteristics<TTokenizer, TSymbol, TSymbolType> Class