Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 private void OnSearchPathsChanged(object sender, EventArgs e) => SearchPathsChanged?.Invoke(this, EventArgs.Empty);