32 references to _state
Microsoft.VisualStudio.LanguageServices (32)
Snippets\AbstractSnippetExpansionClient.cs (32)
113public IVsExpansionSession? ExpansionSession => _state._expansionSession; 116public bool IsFullMethodCallSnippet => _state.IsFullMethodCallSnippet; 411var tabbedInsideSnippetField = VSConstants.S_OK == ExpansionSession.GoToNextExpansionField(fCommitIfLast: _state.IsFullMethodCallSnippet ? 1 : 0); 520Debug.Assert(_state.IsFullMethodCallSnippet); 524if (expansion.InsertExpansion(textSpan, textSpan, this, LanguageServiceGuid, out _state._expansionSession) == VSConstants.S_OK) 528Debug.Assert(!_state.IsFullMethodCallSnippet); 562if (expansion.InsertSpecificExpansion(doc, textSpan, this, LanguageServiceGuid, pszRelativePath: null, out _state._expansionSession) == VSConstants.S_OK) 564Debug.Assert(_state._expansionSession != null); 565_state._methodNameForInsertFullMethodCall = methodSymbols.First().Name; 566Debug.Assert(_state._method == null); 719if (!_state.IsFullMethodCallSnippet) 726if (!e.NewModel.UserSelected && _state._method is not null) 785if (SymbolEquivalenceComparer.Instance.Equals(_state._method, method)) 790if (_state._methodNameForInsertFullMethodCall != method.Name) 803if (_state._method is null && method.Parameters.Length == 0) 805_state._method = method; 840var firstField = _state._method?.Parameters.FirstOrDefault()?.Name ?? PlaceholderSnippetField; 850var lastField = _state._method?.Parameters.LastOrDefault()?.Name ?? PlaceholderSnippetField; 866var newArguments = _state._arguments; 868if (_state._method is null || !_state._method.Parameters.Any()) 886else if (_state._method is not null) 888foreach (var previousParameter in _state._method.Parameters) 927if (expansion.InsertSpecificExpansion(doc, adjustedTextSpan, this, LanguageServiceGuid, pszRelativePath: null, out _state._expansionSession) == VSConstants.S_OK) 929Debug.Assert(_state._expansionSession != null); 930_state._methodNameForInsertFullMethodCall = method.Name; 931_state._method = method; 932_state._arguments = newArguments; 957_state.Clear(); 987_state._expansionSession = pSession; 1017hr = expansion.InsertNamedExpansion(pszTitle, pszPath, textSpan, this, LanguageServiceGuid, fShowDisambiguationUI: 0, pSession: out _state._expansionSession); 1025_state._expansionSession = null;