예제 #1
0
        private void HandleAfterStringLiteral(SnapshotPoint triggerPt, string fileName)
        {
            var tracker = TextBufferStateTracker.GetTrackerForTextBuffer(_textView.TextBuffer);
            var stmt    = State.ToStatement(tracker.GetStateForPosition(triggerPt, fileName, _appSettings));

            StatementLayout.GetCompletionsAfterToken(stmt, this);
        }
예제 #2
0
        private void HandleAfterWord(string word, int curPos, ITextSnapshot snapshot, string fileName)
        {
            var tracker = TextBufferStateTracker.GetTrackerForTextBuffer(_textView.TextBuffer);
            var stmt    = State.ToStatement(tracker.GetStateForPosition(curPos, snapshot, fileName, _appSettings));

            StatementLayout.GetCompletionsAfterToken(stmt, this);
        }