Table of Contents

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 TextResolver

TextResolver that provides conversion between Line and Character and absolute coordinates.

capacity int

Tokens capacity.

textSpan TextSpan

text span that contains classificators

Returns

TypeScriptTokenizer.TokenList

Returns list of tokens as result of lexical analysis.