private DaxLineState ParseLine() { //Log.Debug("{class} {method} {message}", "DaxIntellisenseProvider", "ParseLine", "start"); string line = GetCurrentLine(); int pos = _editor.CaretOffset > 0 ? _editor.CaretOffset - 1 : 0; var loc = _editor.DocumentGetLocation(pos); var docLine = _editor.DocumentGetLineByOffset(pos); Log.Debug("{class} {method} {line} col:{column} off:{offset}", "DaxIntellisenseProvider", "ParseLine", line, loc.Column, docLine.Offset); return(DaxLineParser.ParseLine(line, loc.Column, docLine.Offset)); }