Skip to content

Commit 8afc9db

Browse files
dr1rrbCopilot
andauthored
chore: Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 8645aae commit 8afc9db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.Errors.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Uno.UI.SourceGenerators.XamlGenerator;
1313
* *** We should raise/generate only XamlGenerationException from code generation logic. ***
1414
*
1515
* This allows to properly capture location information and context about the error and proper reporting to the user.
16-
* Other kind of exception should strictly reserve to internal logic errors that should never happen during normal operation (including with invalid XAML file).
16+
* Other kind of exception should strictly be reserved to internal logic errors that should never happen during normal operation (including with invalid XAML file).
1717
*
1818
* Messages:
1919
* ** Error messages are reported to the end-user. **
@@ -24,11 +24,11 @@ namespace Uno.UI.SourceGenerators.XamlGenerator;
2424
* - They must not end with a dot ('.'), as the dot is added when generating the error comment in the generated code (_follows MS logic_).
2525
*
2626
* When it's possible to continue to generate valid C# code, prefer to use AddError(), GenerateError() instead of throwing.
27-
* This allows user to get all errors of a XAML file in a single build instead of fixing them one by one.
27+
* This allows the user to get all errors of a XAML file in a single build instead of fixing them one by one.
2828
*
29-
* The Safely methods allows to properly handle errors in code generation blocks.
29+
* The Safely methods allow to properly handle errors in code generation blocks.
3030
* They should be used to wrap any code generation block that can raise exceptions.
31-
* Like for the AddError and GenerateError, they give ability to the user to get all errors in a single build by continuing generation of the end of the XAML file.
31+
* Like for the AddError and GenerateError, they give the ability to the user to get all errors in a single build by continuing generation of the end of the XAML file.
3232
*
3333
*/
3434

0 commit comments

Comments
 (0)