Thaddeus Crews
ed3bf90c65
Merge pull request #98396 from paulloz/dotnet/fix-sourcegen-with-virtual-properties-partial-overrides
...
Fix issue with incomplete property overrides in C# sourcegen
2026-06-18 13:15:30 -05:00
Thaddeus Crews
d0b80d5f7c
Bump version to 4.8-dev
2026-06-18 09:48:07 -05:00
Paul Joannon
4bb041de8b
Fix issue with incomplete property overrides in C# sourcegen
2026-05-25 17:16:23 +02:00
Joyless
027284067c
Improve source-generated EmitSignal{...} performance
2026-02-02 01:04:57 +00:00
Rémi Verschelde
6b441ab6a4
Bump version to 4.7-dev
2026-01-26 17:40:46 +01:00
AbsoluteMoose
3b4b0c530e
Handle initializer case in FullyQualifiedSyntax
...
- Prevents source generators from fully qualifying names being assigned to within an object initializer
- Adds ResourceTextureWithInitializer test cases to ExportedFields and ExportedProperties
Co-Authored-By: Paul Joannon <437025+paulloz@users.noreply.github.com >
Co-Authored-By: Paviel Kraskoŭski <kraskovskiy94@gmail.com >
2025-11-29 08:54:49 -06:00
Paviel Kraskoŭski
bdb4ca906f
Fix source generation of statically imported members
2025-10-26 17:02:40 +03:00
Joyless
a5ce9c3706
Fix IsStaticallyResolvable
2025-10-11 21:20:01 +01:00
Thaddeus Crews
c2141e0aa5
Bump version to 4.6-dev
2025-09-15 15:50:22 -05:00
2750558108
f192430921
Fix source generator exceptions appearing when use "@+internal keyword" as type or namespace name in C# script
2025-08-09 13:25:54 +08:00
Paul Joannon
88191b0b15
Fix extraction of C# default property values when negative
2025-04-13 17:57:20 +02:00
Rémi Verschelde
0d3ce48562
Merge pull request #104279 from L2750558108/pr-fix-nested-in-generic-errors
...
Fix nested GodotObject class in generic class lead to source generator errors in C#
2025-03-28 14:32:44 +01:00
2750558108
6a56ed8926
Fix nested GodotObject class in generic class lead to source generator errors in C#
2025-03-22 20:46:52 +08:00
Ivan Shakhov
724c0021c7
fix https://github.com/godotengine/godot/issues/104135 Generator for C# makes illegal code for a GodotObject with a primary ctor
...
Co-authored-by: Raul Santos <raulsntos@gmail.com >
2025-03-21 08:34:25 -07:00
Raul Santos
7dcad4c9ad
Move entries from AnalyzerReleases.Unshipped.md to AnalyzerReleases.Shipped.md
2025-03-04 00:35:42 +01:00
Rémi Verschelde
1c35a31b9e
Bump version to 4.5-dev
...
Mr. Godot told me to tell you he won't come this evening but surely tomorrow.
2025-03-03 17:27:40 +01:00
Raul Santos
f4094b554d
[.NET] Disallow [ExportToolButton] on members thay may store the Callable
...
Ensures the user doesn't store the Callable so the .NET assembly can be reloaded.
2025-02-14 01:09:59 +01:00
Paul Joannon
fb8553e4d7
Move to .NET8
...
- Change TFM and LangVersion
- Better exception throwing (CA1510, CA1512, CA1513)
- Better exception utility method definition (CA1859)
- Prefer comparing `.Count` over calling `.Any()` (CA1860)
- Prefer `.AsSpan()` over `.Substring()` (CA1846)
- Add a few more `scoped`
- Use `RuntimeHelpers.GetUninitializedObject()` instead of `FormatterServices.GetUninitializedObject()`
- Use delegate instead of delegate pointer in variant generic conversions
- Enable EnforceExtendedAnalyzerRules in source generator projects
- Disable CS8981 on structs named movable in Godot.NativeInterop
2024-12-13 14:00:13 +01:00
Thaddeus Crews
57d08dbec3
C#: Fix warnings caught by new problem-matchers
...
• Restore MSVC problem matcher for Linux builds
2024-12-10 14:04:35 -06:00
Raul Santos
4e5080d805
[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries
2024-11-21 20:38:55 +01:00
Thaddeus Crews
ec7fd4f6f1
Merge pull request #97894 from paulloz/dotnet/export-tool-button
...
Implement `[ExportToolButton]`
2024-11-19 15:20:07 -06:00
Paul Joannon
4f52c2bb1f
Implement [ExportToolButton]
2024-11-18 20:19:47 +01:00
Adam Johnston
186f35fc9b
remove duplicate read/write only property warning from ScriptPropertiesGenerator
2024-11-13 14:23:53 -08:00
Zae
2a3d400dd8
C#: Escape signal parameters
2024-10-23 23:24:00 +08:00
Thaddeus Crews
cb3c01a5fe
Merge pull request #97588 from TML233/generated-raise-signal
...
[C#] Change generated On{SignalName} to EmitSignal{SignalName}
2024-10-21 16:39:12 -05:00
Juan Pablo Arce
e3790de461
Fix exported typed dictionaries in .NET having an incorrect hint, which led to incorrect scene serialization
2024-10-18 00:55:24 -03:00
Zae
9c99e519c6
C#: Fix unhandled GD0303 error for nested generic attribute types
2024-10-11 03:03:05 +08:00
TML
fa48ed9945
Change generated On{SignalName} to EmitSignal{SignalName}
2024-09-28 22:10:33 +08:00
Raul Santos
da37998dc8
C#: Generate On{EventName} method to raise signal events
2024-09-26 20:10:53 +02:00
Raul Santos
445e822bcf
C#: Generate signal event with the same accessibility as the delegate
2024-09-23 03:38:18 +02:00
Thaddeus Crews
9853a69144
Implement typed dictionaries
2024-09-04 10:27:26 -05:00
Rémi Verschelde
0d0eb71694
Merge pull request #94599 from juanjp600/node-array-export-diagnostic
...
C#: Fix GD0107 not applying to arrays and dictionaries containing nodes
2024-08-16 23:45:26 +02:00
Rémi Verschelde
c2a4942850
Bump version to 4.4-dev
...
Mr. Godot still didn't show up...
2024-08-15 11:39:34 +02:00
Juan Pablo Arce
8aa444d212
Fix GD0107 not applying to arrays and dictionaries containing nodes
2024-07-24 02:20:29 -03:00
Raul Santos
65cd0c86f9
C#: Escape generated members
2024-06-15 19:07:42 +02:00
Gaoyao Massimo Hu
e3270113ca
Remove useless isFirstEntry and useless source.Append("else ")
2024-05-14 07:44:56 +01:00
Gaoyao Massimo Hu
06b716d8b3
Fix C# Hint NodeType and ResourceType HintString
2024-05-08 16:22:52 +01:00
Rémi Verschelde
629e91acff
Merge pull request #91479 from Repiteo/dotnet/sln-csproj-attributes
...
C#: Fix attributes for `sln`/`csproj` files
2024-05-04 11:52:29 +02:00
Thaddeus Crews
64f2e8b64f
Dotnet: Fix attributes for sln/csproj files
2024-05-03 12:21:51 -05:00
K. S. Ernest (iFire) Lee
f9b488508c
Add PackedVector4Array Variant type
...
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com >
2024-05-03 00:58:27 +02:00
Rémi Verschelde
4eaafc8fa8
Merge pull request #91375 from paulloz/dotnet/prevent-generator-crash-on-exported-unconstructed-generic-arrays
...
C#: Fix generator crash w/ generic arrays
2024-05-02 12:46:42 +02:00
Raul Santos
1510f88ae1
C#: Ignore late bound methods in MustBeVariantAnalyzer
...
If symbol is late bound (as is the case when using `dynamic`) we can't obtain the symbol to analyze the usage of `[MustBeVariant]`.
2024-05-01 03:18:21 +02:00
Paul Joannon
aba787393f
C#: Fix generator crash w/ generic arrays
2024-04-30 22:22:09 +02:00
Konstantin Kretov
2b46e009fa
Fill copyright field in .csproj files
...
This ensures that nuget packages will have both license and copyright fields filled.
2024-04-26 11:41:04 +02:00
Paul Joannon
42233284b1
Fix interpolated strings in ScriptPropertyDefVal
2024-03-01 11:24:46 +01:00
Paul Joannon
139a5df821
Cleanup C# projects, code quality & style
...
New rules:
- Do not silence CA1805 any more
- Limit where we silence CA1707, CA1711, CA1720
- Enforce severity=warning for IDE0040
- Enforce Allman style braces
- Enforce naming conventions (IDE1006 is still severity=suggestion)
Fixes:
- Fix REFL045, CS1572, CS1573
- Suppress CS0618 when generating `InvokeGodotClassMethod`
- Fix indent when generating GD_constants.cs
- Temporarily silence CS1734 in generated code
- Fix a lot of naming rule violations
Misc.:
- Remove ReSharper comments for RedundantNameQualifier
- Remove suppression attributes for RedundantNameQualifier
- Remove severity=warnings for CA1716, CA1304 (already included in the level of analysis we run)
2024-02-27 20:11:24 +01:00
Rémi Verschelde
c6d091e0f3
Merge pull request #87253 from van800/van800/analyser
...
Provide a roslyn analyzers corresponding to the GD0001 and GD0002
2024-02-21 15:22:54 +01:00
Ivan Shakhov
00dc19585b
provide analyser corresponding to the GD0001 and GD0002, add ClassPartialModifierAnalyzerFix, and tests
...
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-02-21 12:35:28 +03:00
Rémi Verschelde
aeaec000fc
Merge pull request #88495 from paulloz/dotnet/test-and-fix-exports-diagnostics
...
[.NET] Test and fix exports diagnostics
2024-02-21 07:43:08 +01:00
Paul Joannon
88ad4e6c24
Add tests and fix exports diagnostics
...
- Add tests for the following diagnostics: GD0101, GD0102, GD0103, GD0104, GD0105, GD0106, GD0107.
- Fix GD0101 not being reported any more (was filtering static classes before reporting).
- Fix GD0107 not preventing `Node` members from being exported from not-`Node` types.
2024-02-20 11:24:41 +01:00