Skip to content

Commit

Permalink
Downgrading diagnostic message
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
aaronpowell committed Jul 22, 2024
1 parent 68085e1 commit 5e9715a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonSourceGenerator/PythonStaticGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
methods = ModuleReflection.MethodsFromFunctionDefinitions(functions, fileName);
string source = FormatClassFromMethods(@namespace, pascalFileName, methods);
sourceContext.AddSource($"{pascalFileName}.py.cs", source);
sourceContext.ReportDiagnostic(Diagnostic.Create(new DiagnosticDescriptor("PSG002", "PythonStaticGenerator", $"Generated {pascalFileName}.py.cs", "PythonStaticGenerator", DiagnosticSeverity.Warning, true), Location.None));
sourceContext.ReportDiagnostic(Diagnostic.Create(new DiagnosticDescriptor("PSG002", "PythonStaticGenerator", $"Generated {pascalFileName}.py.cs", "PythonStaticGenerator", DiagnosticSeverity.Info, true), Location.None));
}
}
});
Expand Down

0 comments on commit 5e9715a

Please sign in to comment.