fixing typo (#2192)

variable should start with lower case
This commit is contained in:
James Frowen 2020-08-23 19:30:20 +01:00 committed by GitHub
parent 1045b1f2ed
commit 771f1fea13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,13 +83,13 @@ static MethodDefinition GenerateWriter(TypeReference variableReference, int recu
// check for invalid types
TypeDefinition VariableDefinition = variableReference.Resolve();
if (VariableDefinition == null)
TypeDefinition variableDefinition = variableReference.Resolve();
if (variableDefinition == null)
{
Weaver.Error($"{variableReference.Name} is not a supported type. Use a supported type or provide a custom writer", variableReference);
return null;
}
if (VariableDefinition.IsDerivedFrom(WeaverTypes.ComponentType))
if (variableDefinition.IsDerivedFrom(WeaverTypes.ComponentType))
{
Weaver.Error($"Cannot generate writer for component type {variableReference.Name}. Use a supported type or provide a custom writer", variableReference);
return null;
@ -104,12 +104,12 @@ static MethodDefinition GenerateWriter(TypeReference variableReference, int recu
Weaver.Error($"Cannot generate writer for {variableReference.Name}. Use a supported type or provide a custom writer", variableReference);
return null;
}
if (VariableDefinition.HasGenericParameters)
if (variableDefinition.HasGenericParameters)
{
Weaver.Error($"Cannot generate writer for generic type {variableReference.Name}. Use a supported type or provide a custom writer", variableReference);
return null;
}
if (VariableDefinition.IsInterface)
if (variableDefinition.IsInterface)
{
Weaver.Error($"Cannot generate writer for interface {variableReference.Name}. Use a supported type or provide a custom writer", variableReference);
return null;