Skip to content

[F] getPositionBeforeTrivia

function getPositionBeforeTrivia(script, pos): number

Adjust the given postion backwards before any trivia.

Parameters

ParameterType
scriptTypeSpecScriptNode
posnumber

Returns

number