summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
diff options
context:
space:
mode:
authorAlex de la Mare <alexdlm@alexdlm.org>2023-01-08 12:04:15 +1100
committerAlex de la Mare <alexdlm@alexdlm.org>2023-03-25 13:46:12 +1100
commit8ab3295e57c8cb6c28ef531726b30634ba924a55 (patch)
tree751f226fcc10a563ff53d1e1849720f8faa4bc5c /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
parent0291fcd7b66bcb315a49c44de8031e5596de4216 (diff)
downloadredot-engine-8ab3295e57c8cb6c28ef531726b30634ba924a55.tar.gz
Add fine-grained disabling of SourceGenerators
This allows manual testing and/or alternate source generators to provide functionality without conflict.
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs')
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
index 089ee3f196..ac908a6de3 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs
@@ -17,7 +17,7 @@ namespace Godot.SourceGenerators
public void Execute(GeneratorExecutionContext context)
{
- if (context.AreGodotSourceGeneratorsDisabled())
+ if (context.IsGodotSourceGeneratorDisabled("ScriptPropertyDefVal"))
return;
INamedTypeSymbol[] godotClasses = context