-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'nullable disabled' semantic model when computing FAR results #73078
Conversation
|
||
public readonly Document Document; | ||
public readonly SemanticModel SemanticModel; | ||
public readonly SyntaxNode Root; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had this hold onto Doc/SemanticModel/Root to ease up on hte number of arguments i'm passing around later.
FindReferenceCache cache, | ||
HashSet<string>? globalAliases) | ||
{ | ||
private static readonly HashSet<string> s_empty = []; | ||
|
||
public readonly Document Document = document; | ||
public readonly SemanticModel SemanticModel = semanticModel; | ||
public readonly SyntaxNode Root = root; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of individual fields, this is obtainable from the cache.
src/Workspaces/Core/Portable/FindSymbols/FindReferences/FindReferencesSearchEngine.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traces show upwards of 15% of our time in nullability analysis for these features: