update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	 * Convert lsp.Position to the absolute offset in the file. LSP keeps track of
	 * offset using 0-based index whereas TypeScript uses 1-based index.
	 * @param scriptInfo Used to determine the offsets.
	 * @param position
	 */
Convert lsp.Position to the absolute offset in the file. LSP keeps track of
offset using 0-based index whereas TypeScript uses 1-based index.
@param scriptInfo Used to determine the offsets.
@param position
Convert lsp . Position to the absolute offset in the file . LSP keeps track of offset using 0 - based index whereas TypeScript uses 1 - based index . @param scriptInfo Used to determine the offsets . @param position
function lspPositionToTsPosition(scriptInfo, position) {
	    const { line, character } = position;
	    return scriptInfo.lineOffsetToPosition(line + 1, character + 1);
	}
function lspPositionToTsPosition ( scriptInfo , position ) { const { line , character } = position ; return scriptInfo . lineOffsetToPosition ( line + 1 , character + 1 ) ; }
Convert lsp.Position to the absolute offset in the file.
Convert lsp . Position to the absolute offset in the file .
// ScriptInfo (TS) is 1-based, LSP is 0-based.