Uh oh!
There was an error while loading. Please reload this page.
Cleanup - #13113
Conversation
dsyme
commented
May 8, 2022
@KevinRansom@vzarytovskii This is ready |
auduchinok
commented
May 8, 2022
I think |
vzarytovskii
commented
May 9, 2022
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") |
auduchinok
commented
May 9, 2022
Could it be |
vzarytovskii
commented
May 9, 2022
Maybe something like |
dsyme
commented
May 9, 2022
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. |
dsyme
commented
May 9, 2022
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-->DiagnosticsLoggerSplit out part of
infos.fs-->TypeHierarchy.fsSplit out part of
SymbolHelpers.fs-->FSharpDiagnostic.fsSplit
LowerCallsAndSeqs.fsinto 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 nameErroris misleading as these are also use for warnings, however it remains in the codebase as it is 1000 lines of churn. AlsoerrorLoggerremains for now, we will rename todiagsLoggerin 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.