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
5 changes: 3 additions & 2 deletions src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ void ThrowIfExceptions ()
if (exceptions.All (v => v is BindingException pe && !pe.Error)) {
foreach (var e in exceptions)
ErrorHelper.Show (e);
return;
}

throw new AggregateException (exceptions);
Expand Down Expand Up @@ -3433,7 +3434,7 @@ void GenerateTypeLowering (MethodInfo mi, bool null_allowed_override, out String
void GenerateArgumentChecks (MethodInfo mi, bool null_allowed_override, PropertyInfo propInfo = null)
{
if (AttributeManager.IsNullable (mi))
ErrorHelper.Show (new BindingException (1118, false, mi));
exceptions.Add (ErrorHelper.CreateWarning (1118, mi));

foreach (var pi in mi.GetParameters ()) {
var safe_name = pi.Name.GetSafeParamName ();
Expand Down Expand Up @@ -4190,7 +4191,7 @@ void GenerateProperty (Type type, PropertyInfo pi, List<string> instance_fields_
var ba = GetBindAttribute (setter);
bool null_allowed = AttributeManager.IsNullable (setter);
if (null_allowed)
ErrorHelper.Show (new BindingException (1118, false, setter));
exceptions.Add (ErrorHelper.CreateWarning (1118, setter));
null_allowed |= AttributeManager.IsNullable (pi);
var not_implemented_attr = AttributeManager.GetCustomAttribute<NotImplementedAttribute> (setter);
string sel;
Expand Down
Loading