-
Notifications
You must be signed in to change notification settings - Fork 789
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
Cleanup #13113
Cleanup #13113
Conversation
@KevinRansom @vzarytovskii This is ready |
I think |
If I remember correctly, it was derived from System.Resources. But I agree, it can be confusing for someone who doesn't know what's that. |
True. Not sure what to call it otherwise. It is the primary way for diagnostics and we should really get rid of the RESX and various exception types. Maybe DiganosticWithText. The only thing I'm after here is to remove "Error" (which can be quite confusing when used as a synonym for "Diagnostic") |
Could it be |
Maybe something like |
Hmmmm the FSStrings.resx resources are also localized I think - there is content under "src/fsharp/xlf". Historically we started localising via the FSStrings resx approach then switched I've renamed to DiagnosticWithText for now which is pretty accurate. |
There are multiple uses of "Diagnostic" - summary below
I think we should use |
* cleanup * split files * rename * split infos.fs and SymbolHelpres.fs * split infos.fs and SymbolHelpres.fs * fix code formating * rename autobox --> LowerLocalMutables * adjust names * block --> ImmutableArray * format * Error --> SRDiagnostic * Error --> SRDiagnostic * this -> _ * rename and cleanup * rename Diagnostic --> FormattedDiagnostic * format sigs * format sigs * fix build * fix build
This reverts commit ff0deda.
* cleanup * split files * rename * split infos.fs and SymbolHelpres.fs * split infos.fs and SymbolHelpres.fs * fix code formating * rename autobox --> LowerLocalMutables * adjust names * block --> ImmutableArray * format * Error --> SRDiagnostic * Error --> SRDiagnostic * this -> _ * rename and cleanup * rename Diagnostic --> FormattedDiagnostic * format sigs * format sigs * fix build * fix build
Cleanup work:
Rename
ErrorLogger
-->DiagnosticsLogger
Split out part of
infos.fs
-->TypeHierarchy.fs
Split out part of
SymbolHelpers.fs
-->FSharpDiagnostic.fs
Split
LowerCallsAndSeqs.fs
into the three independent logical parts that it isThe exception type
Error(...)
-->SRDiagnostic
. This is because this is the exception that carries diagnostics derived from SR text. Note the use of the nameError
is misleading as these are also use for warnings, however it remains in the codebase as it is 1000 lines of churn. AlsoerrorLogger
remains for now, we will rename todiagsLogger
in due course.Rename
block
-->ImmutableArray
. In retrospect I'm just not liking this abbreviation and it's not sufficiently helping readability. Will revisit the relevant suggestion.