/// <summary> /// Sets the search paths for this analyzer, invoking callbacks for any /// path added or removed. /// </summary> public void SetSearchPaths(IEnumerable <string> paths) { lock (_searchPaths) { _searchPaths.Clear(); _searchPaths.AddRange(paths); } SearchPathsChanged?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Sets the type stub search paths for this analyzer, invoking callbacks for any /// path added or removed. /// </summary> public void SetTypeStubPaths(IEnumerable <string> paths) { lock (_typeStubPaths) { _typeStubPaths.Clear(); _typeStubPaths.AddRange(paths.MaybeEnumerate()); } SearchPathsChanged?.Invoke(this, EventArgs.Empty); }
private void OnSearchPathsChanged(object sender, EventArgs e) => SearchPathsChanged?.Invoke(this, EventArgs.Empty);