Skip to content

Commit

Permalink
fix: SizeInt32 and PointInt32 are marked as ErrorType
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Sep 13, 2024
1 parent ddc095d commit 25d1c64
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Uno.UWPSyncGenerator/Helpers/SymbolMatchingHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ internal static class SymbolMatchingHelpers
{
public static bool AreMatching(ISymbol uapSymbol, ISymbol unoSymbol)
{
//if (uapSymbol?.Name == "SizeInt32" ||
// unoSymbol?.Name == "Size" && unoSymbol?.ContainingType?.Name == "AppWindow")
//{
// global::System.Diagnostics.Debugger.Break();
//}
if (uapSymbol is IEventSymbol uapEvent)
{
var result = unoSymbol is IEventSymbol unoEvent && AreEventsMatching(uapEvent, unoEvent);
Expand Down Expand Up @@ -76,10 +81,12 @@ private static bool AreMatchingCommon(ISymbol uapSymbol, ISymbol unoSymbol)
return true;
}

if (uapSymbol.Name == "IGeometrySource2D")
if (uapSymbol.Name == "IGeometrySource2D" ||
uapSymbol.Name == "SizeInt32" ||
uapSymbol.Name == "PointInt32")
{
// For some reason, we get here with IGeometrySource2D being an error symbol.
// Hence, the IsAbstract check below fails.
// For some reason, these are marked with Kind=ErrorType.
// This means the matching then fails.
return true;
}

Expand Down

0 comments on commit 25d1c64

Please sign in to comment.