Skip to content

Commit 7e12efe

Browse files
Fix typo
1 parent f1c00fd commit 7e12efe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Diagnostics/DiagnosticDescriptors.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public static class DiagnosticDescriptors
7474
DiagnosticSeverity.Error,
7575
isEnabledByDefault: true);
7676

77-
public static readonly DiagnosticDescriptor UnsupportedMethodParamaterType = new DiagnosticDescriptor(id: "AWSLambda0109",
78-
title: "Unsupported Method Paramater Type",
79-
messageFormat: "Unsupported query paramter '{0}' of type '{1}' encountered. Only primitive .NET types and their corresponding enumerables can be used as query parameters.",
77+
public static readonly DiagnosticDescriptor UnsupportedMethodParameterType = new DiagnosticDescriptor(id: "AWSLambda0109",
78+
title: "Unsupported Method Parameter Type",
79+
messageFormat: "Unsupported query parameter '{0}' of type '{1}' encountered. Only primitive .NET types and their corresponding enumerable can be used as query parameters.",
8080
category: "AWSLambdaCSharpGenerator",
8181
DiagnosticSeverity.Error,
8282
isEnabledByDefault: true);

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Generator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void Execute(GeneratorExecutionContext context)
200200
continue;
201201
}
202202

203-
if (!AreLambdaMethodParamatersValid(lambdaMethod, model, diagnosticReporter))
203+
if (!AreLambdaMethodParametersValid(lambdaMethod, model, diagnosticReporter))
204204
{
205205
foundFatalError = true;
206206
continue;
@@ -384,7 +384,7 @@ public void Initialize(GeneratorInitializationContext context)
384384
context.RegisterForSyntaxNotifications(() => new SyntaxReceiver(_fileManager, _directoryManager));
385385
}
386386

387-
private bool AreLambdaMethodParamatersValid(MethodDeclarationSyntax declarationSyntax, LambdaFunctionModel model, DiagnosticReporter diagnosticReporter)
387+
private bool AreLambdaMethodParametersValid(MethodDeclarationSyntax declarationSyntax, LambdaFunctionModel model, DiagnosticReporter diagnosticReporter)
388388
{
389389
var isValid = true;
390390
foreach (var parameter in model.LambdaMethod.Parameters)
@@ -398,7 +398,7 @@ private bool AreLambdaMethodParamatersValid(MethodDeclarationSyntax declarationS
398398
if (!parameter.Type.IsPrimitiveType() && !parameter.Type.IsPrimitiveEnumerableType())
399399
{
400400
isValid = false;
401-
diagnosticReporter.Report(Diagnostic.Create(DiagnosticDescriptors.UnsupportedMethodParamaterType,
401+
diagnosticReporter.Report(Diagnostic.Create(DiagnosticDescriptors.UnsupportedMethodParameterType,
402402
Location.Create(declarationSyntax.SyntaxTree, declarationSyntax.Span),
403403
parameterKey, parameter.Type.FullName));
404404
}

0 commit comments

Comments
 (0)