LanguageCharacteristics<TTokenizer,TSymbol,TSymbolType>.SplitSymbol(TSymbol, Int32, TSymbolType) LanguageCharacteristics<TTokenizer,TSymbol,TSymbolType>.SplitSymbol(TSymbol, Int32, TSymbolType) LanguageCharacteristics<TTokenizer,TSymbol,TSymbolType>.SplitSymbol(TSymbol, Int32, TSymbolType) Method

Definition

Splits the content of the code language symbol at the specified index.

public virtual Tuple<TSymbol,TSymbol> SplitSymbol (TSymbol symbol, int splitAt, TSymbolType leftType);
abstract member SplitSymbol : 'Symbol * int * 'SymbolType -> 'Symbol * 'Symbol (requires 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType>)
override this.SplitSymbol : 'Symbol * int * 'SymbolType -> 'Symbol * 'Symbol (requires 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType> and 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType>)
Public Overridable Function SplitSymbol (symbol As TSymbol, splitAt As Integer, leftType As TSymbolType) As Tuple(Of TSymbol, TSymbol)
Parameters
symbol

The symbol whose content is to be splitted.

splitAt
Int32 Int32 Int32

The index where the split occurs.

leftType

The enumeration type for the language symbol.

Returns
Tuple<TSymbol,TSymbol>

A tuple of code language symbol.

Applies to