Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Controls/src/SourceGen/SetterValueProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public bool TryProvideValue(ElementNode node, IndentedTextWriter writer, SourceG
IFieldSymbol? bpRef = bpNode.GetBindableProperty(context);
if (!TryGetBindablePropertyNameAndType(bpRef, bpNode, context, out var bpName, out var bpType))
{
// Report diagnostic when bindable property cannot be resolved
var propertyText = bpNode.Value as string ?? string.Empty;
var location = LocationHelpers.LocationCreate(context.ProjectItem.RelativePath!, (IXmlLineInfo)bpNode, propertyText);
context.ReportDiagnostic(Diagnostic.Create(Descriptors.MemberResolution, location, propertyText));
value = string.Empty;
return false;
}
Expand Down
Loading