Table of Contents

Method GetIndent

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

GetIndent(Document, int, CancellationToken)

int GetIndent(Document document, int line, CancellationToken cancellationToken = default)

Parameters

document Document
line int
cancellationToken CancellationToken

Returns

int

GetIndent(Document, int, bool, int, CancellationToken)

int GetIndent(Document document, int line, bool useSpaces, int spacesInTab, CancellationToken cancellationToken = default)

Parameters

document Document
line int
useSpaces bool
spacesInTab int
cancellationToken CancellationToken

Returns

int