Method GetTokens
- Namespace
- Alternet.Syntax.Parsers.TypeScript
- Assembly
- Alternet.Syntax.Parsers.TypeScript.v9.dll
GetTokens(IEnumerable<ClassifiedSpan>, TextResolver, int, TextSpan)
Performs lexical analysis for given ClassifiedSpan collection.
public virtual TypeScriptTokenizer.TokenList GetTokens(IEnumerable<ClassifiedSpan> spans, TextResolver textResolver, int capacity, TextSpan textSpan)
Parameters
spans
IEnumerable<ClassifiedSpan>Source of syntax information.
textResolver
TextResolverTextResolver that provides conversion between Line and Character and absolute coordinates.
capacity
intTokens capacity.
textSpan
TextSpantext span that contains classificators
Returns
- TypeScriptTokenizer.TokenList
Returns list of tokens as result of lexical analysis.