Skip to content

Commit 13c7390

Browse files
committed
Fix source location for 'Could not resolve type' error
1 parent e778dff commit 13c7390

2 files changed

Lines changed: 88 additions & 88 deletions

File tree

src/Dibix.Sdk.CodeGeneration/Registration/ContractDefinitionSchemaProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ TypeReference ResolveType()
151151
bool isEnumerable = typeName.EndsWith("*", StringComparison.Ordinal);
152152
typeName = typeName.TrimEnd('*');
153153

154-
SourceLocation location = value.GetSourceInfo();
154+
SourceLocation location = typeNameValue.GetSourceInfo();
155155
TypeReference type = _typeResolver.ResolveType(typeName, relativeNamespace, location, isEnumerable);
156156
return type;
157157
}

0 commit comments

Comments
 (0)