File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Libraries/src/Amazon.Lambda.Annotations.SourceGenerator Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ public static class DiagnosticDescriptors
74
74
DiagnosticSeverity . Error ,
75
75
isEnabledByDefault : true ) ;
76
76
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." ,
80
80
category : "AWSLambdaCSharpGenerator" ,
81
81
DiagnosticSeverity . Error ,
82
82
isEnabledByDefault : true ) ;
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ public void Execute(GeneratorExecutionContext context)
200
200
continue ;
201
201
}
202
202
203
- if ( ! AreLambdaMethodParamatersValid ( lambdaMethod , model , diagnosticReporter ) )
203
+ if ( ! AreLambdaMethodParametersValid ( lambdaMethod , model , diagnosticReporter ) )
204
204
{
205
205
foundFatalError = true ;
206
206
continue ;
@@ -384,7 +384,7 @@ public void Initialize(GeneratorInitializationContext context)
384
384
context . RegisterForSyntaxNotifications ( ( ) => new SyntaxReceiver ( _fileManager , _directoryManager ) ) ;
385
385
}
386
386
387
- private bool AreLambdaMethodParamatersValid ( MethodDeclarationSyntax declarationSyntax , LambdaFunctionModel model , DiagnosticReporter diagnosticReporter )
387
+ private bool AreLambdaMethodParametersValid ( MethodDeclarationSyntax declarationSyntax , LambdaFunctionModel model , DiagnosticReporter diagnosticReporter )
388
388
{
389
389
var isValid = true ;
390
390
foreach ( var parameter in model . LambdaMethod . Parameters )
@@ -398,7 +398,7 @@ private bool AreLambdaMethodParamatersValid(MethodDeclarationSyntax declarationS
398
398
if ( ! parameter . Type . IsPrimitiveType ( ) && ! parameter . Type . IsPrimitiveEnumerableType ( ) )
399
399
{
400
400
isValid = false ;
401
- diagnosticReporter . Report ( Diagnostic . Create ( DiagnosticDescriptors . UnsupportedMethodParamaterType ,
401
+ diagnosticReporter . Report ( Diagnostic . Create ( DiagnosticDescriptors . UnsupportedMethodParameterType ,
402
402
Location . Create ( declarationSyntax . SyntaxTree , declarationSyntax . Span ) ,
403
403
parameterKey , parameter . Type . FullName ) ) ;
404
404
}
You can’t perform that action at this time.
0 commit comments