summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-4/+13
|\
| * [.NET] Preserve no-hint behavior for unmarshallable generics in dictionariesRaul Santos2024-11-211-4/+13
| |
* | Merge commit godotengine/godot@9e6098432aac35bae42c9089a29ba2a80320d823Spartan3222024-11-206-3/+106
|\|
| * Merge pull request #97894 from paulloz/dotnet/export-tool-buttonThaddeus Crews2024-11-196-3/+106
| |\ | | | | | | | | | Implement `[ExportToolButton]`
| | * Implement [ExportToolButton]Paul Joannon2024-11-186-3/+106
| | |
* | | Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-18/+3
|\| |
| * | remove duplicate read/write only property warning from ScriptPropertiesGeneratorAdam Johnston2024-11-131-18/+3
| | |
* | | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-3/+3
|\| |
| * | C#: Escape signal parametersZae2024-10-231-3/+3
| | |
* | | Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-222-3/+3
|\| |
| * | Merge pull request #97588 from TML233/generated-raise-signalThaddeus Crews2024-10-211-2/+2
| |\ \ | | | | | | | | | | | | [C#] Change generated On{SignalName} to EmitSignal{SignalName}
| | * | Change generated On{SignalName} to EmitSignal{SignalName}TML2024-09-281-2/+2
| | |/
| * | Fix exported typed dictionaries in .NET having an incorrect hint, which led ↵Juan Pablo Arce2024-10-181-1/+1
| | | | | | | | | | | | to incorrect scene serialization
* | | Merge commit godotengine/godot@af77100e394dcaca609b15bef815ed17475e51edSpartan3222024-10-151-1/+1
|\| |
| * | C#: Fix unhandled GD0303 error for nested generic attribute typesZae2024-10-111-1/+1
| |/
* / Rebrand Godot to RedotRandolph W. Aarseth II2024-10-114-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* C#: Generate On{EventName} method to raise signal eventsRaul Santos2024-09-261-7/+37
|
* C#: Generate signal event with the same accessibility as the delegateRaul Santos2024-09-232-1/+27
|
* Implement typed dictionariesThaddeus Crews2024-09-043-3/+77
|
* Merge pull request #94599 from juanjp600/node-array-export-diagnosticRémi Verschelde2024-08-161-18/+33
|\ | | | | | | C#: Fix GD0107 not applying to arrays and dictionaries containing nodes
| * Fix GD0107 not applying to arrays and dictionaries containing nodesJuan Pablo Arce2024-07-241-18/+33
| |
* | Bump version to 4.4-devRémi Verschelde2024-08-151-1/+1
|/ | | | Mr. Godot still didn't show up...
* C#: Escape generated membersRaul Santos2024-06-155-27/+28
|
* Remove useless isFirstEntry and useless source.Append("else ")Gaoyao Massimo Hu2024-05-143-35/+10
|
* Fix C# Hint NodeType and ResourceType HintStringGaoyao Massimo Hu2024-05-081-0/+36
|
* Merge pull request #91479 from Repiteo/dotnet/sln-csproj-attributesRémi Verschelde2024-05-041-1/+1
|\ | | | | | | C#: Fix attributes for `sln`/`csproj` files
| * Dotnet: Fix attributes for `sln`/`csproj` filesThaddeus Crews2024-05-031-1/+1
| |
* | Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-033-1/+6
|/ | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Merge pull request #91375 from ↵Rémi Verschelde2024-05-021-1/+4
|\ | | | | | | | | | | paulloz/dotnet/prevent-generator-crash-on-exported-unconstructed-generic-arrays C#: Fix generator crash w/ generic arrays
| * C#: Fix generator crash w/ generic arraysPaul Joannon2024-04-301-1/+4
| |
* | C#: Ignore late bound methods in MustBeVariantAnalyzerRaul Santos2024-05-011-2/+12
|/ | | | If symbol is late bound (as is the case when using `dynamic`) we can't obtain the symbol to analyze the usage of `[MustBeVariant]`.
* Fill copyright field in .csproj filesKonstantin Kretov2024-04-261-0/+1
| | | | This ensures that nuget packages will have both license and copyright fields filled.
* Fix interpolated strings in ScriptPropertyDefValPaul Joannon2024-03-011-1/+18
|
* Cleanup C# projects, code quality & stylePaul Joannon2024-02-276-18/+14
| | | | | | | | | | | | | | | | | | | | | 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)
* Merge pull request #87253 from van800/van800/analyserRémi Verschelde2024-02-219-77/+137
|\ | | | | | | Provide a roslyn analyzers corresponding to the GD0001 and GD0002
| * provide analyser corresponding to the GD0001 and GD0002, add ↵Ivan Shakhov2024-02-219-77/+137
| | | | | | | | | | | | | | ClassPartialModifierAnalyzerFix, and tests Co-authored-by: Raul Santos <raulsntos@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | Merge pull request #88495 from paulloz/dotnet/test-and-fix-exports-diagnosticsRémi Verschelde2024-02-212-9/+12
|\ \ | | | | | | [.NET] Test and fix exports diagnostics
| * | Add tests and fix exports diagnosticsPaul Joannon2024-02-202-9/+12
| |/ | | | | | | | | | | - 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.
* / C#: Add analyzer release trackingRaul Santos2024-02-193-0/+40
|/ | | | Fixes diagnostic RS2008.
* C#: Various fixes to generic scriptsRaul Santos2024-02-192-2/+25
| | | | | | - Report a diagnostic when there are multiple classes that match the script file name in the same script since that will result in a duplicate path key in the bimap and it's not allowed. - Fix InspectorPlugin to handle empty paths in case the project was built with a previous version of Godot that used empty paths for generic scripts. - Add tests for the new diagnostic GD0003.
* Clean diagnostic rulesPaul Joannon2024-02-187-416/+242
| | | | | | | | Move the following diagnostics into static readonly fields: GD0101, GD0102, GD0103, GD0104, GD0105, GD0106, GD0107, GD0201, GD0202, GD0203, GD0301, GD0302, GD0303, GD0401, GD0402. To be more consistent, the titles for the following diagnostics were modified: GD0101, GD0105, GD0106, GD0302, GD0303, GD0401, GD0402. A subsequent update of the documentation repo is needed. Tests for the following diagnostics were created: GD0201, GD0202, GD0203.
* C#: Use SymbolEqualityComparerRaul Santos2024-02-141-2/+2
| | | | Use `SymbolEqualityComparer` to compare symbols and fix `RS1024` warning.
* Improve handling of generic C# typesRaul Santos2024-02-081-3/+3
| | | | | | | | | | | - Create CSharpScript for generic C# types. - `ScriptPathAttributeGenerator` registers the path for the generic type definition. - `ScriptManagerBridge` lookup uses the generic type definition that was registered by the generator. - Constructed generic types use a virtual `csharp://` path so they can be registered in the map and loaded as if there was a different file for each constructed type, even though they all share the same real path. - This allows getting the base type for a C# type that derives from a generic type. - Shows base scripts in the _Add Node_ and _Create Resource_ dialogs even when they are generic types. - `get_global_class_name` implementation was moved to C# and now always returns the base type even if the script is not a global class (this behavior matches GDScript). - Create `CSharpScript::TypeInfo` struct to hold all the type information about the C# type that corresponds to the `CSharpScript`, and use it as the parameter in `UpdateScriptClassInfo` to avoid adding more parameters.
* Merge pull request #87518 from paulloz/dotnet/fix-warningsRémi Verschelde2024-01-266-7/+29
|\ | | | | | | Clean a number of C# warnings
| * Clean a bunch of C# warningsPaul Joannon2024-01-266-7/+29
| | | | | | | | | | | | | | | | | | - `[Obsolete]` tag generated in the middle of documentation comments - Potential `null` values in generators - Obsolete call to `GetEditorInterface()` - We don't want `Godot.Collections.Array` to end with `Collection` - A few culture specifications and use of `AsSpan` instead of `SubString` in `StringExtensions` - Disable CA1716 in GodotSharp
* | C#: Fix to allow usage of [MustBeVariant] in generic typed attributesAlberto Vilches2024-01-212-5/+13
|/
* fix: use correct number in GD0103 linkMikael Klasson2023-12-271-1/+1
|
* Bump version to 4.3-devRémi Verschelde2023-11-291-1/+1
| | | | | | The essential doesn't change. -- Samuel Beckett, Waiting for Godot
* Merge pull request #82918 from raulsntos/dotnet/only-node-can-export-nodeRémi Verschelde2023-10-273-1/+44
|\ | | | | | | C#: Report diagnostic for Node exports in a type that doesn't derive from Node
| * C#: Report diagnostic for Node exports in a type that doesn't derive from NodeRaul Santos2023-10-063-1/+44
| |