You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.ReportWarning($"Using the name of the enum that declares this constant: {declaringEnum}");
531
+
this.ReportWarning($"Using the name of the enum that declares this constant: {declaringEnum}",nativeMethodsTxt.FullName,lineNumber);
530
532
}
531
533
532
534
switch(matchingApis.Count)
533
535
{
534
536
case0:
535
-
this.ReportError($"Method, type or constant '{name}' not found");
537
+
this.ReportError($"Method, type or constant '{name}' not found",nativeMethodsTxt.FullName,lineNumber);
536
538
errorCount++;
537
539
break;
538
540
case1:
539
541
this.InfoWriteLine($"Generated: {name}");
540
542
processedCount++;
541
543
break;
542
544
case>1:
543
-
this.ReportError($"The API '{name}' is ambiguous. Please specify one of: {string.Join(", ",matchingApis.Select(api =>$"\"{api}\""))}");
545
+
this.ReportError($"The API '{name}' is ambiguous. Please specify one of: {string.Join(", ",matchingApis.Select(api =>$"\"{api}\""))}",nativeMethodsTxt.FullName,lineNumber);
544
546
errorCount++;
545
547
break;
546
548
}
547
549
}
548
550
catch(PlatformIncompatibleException)
549
551
{
550
-
this.ReportError($"API '{name}' is not available for the target platform");
552
+
this.ReportError($"API '{name}' is not available for the target platform",nativeMethodsTxt.FullName,lineNumber);
0 commit comments