Skip to content

Commit

Permalink
AI is good at typos.
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
mandel-macaque and Copilot authored Jan 23, 2025
1 parent 66016ce commit d6c77b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static partial class BindingSyntaxFactory {

// the name of the objcSend method is calculated in the following way
// {CustomMarshallPrefix}_{MarshallTypeOfReturnType}_{objcSendMsg}{stret?_stret}_{string.Join('_', MarshallTypeArgs)}{nativeException?_exception}{CustomMarsahllPostfix}
// we will sue a sb to make things easy to follow
// we will use a sb to make things easy to follow
var sb = new StringBuilder ();

// first, decide if the user created a custom marshalling by checking the flags of the export data
Expand Down Expand Up @@ -70,9 +70,9 @@ static partial class BindingSyntaxFactory {
public static (string? Getter, string? Setter) GetObjCMessageSendMethods (in Property property, bool isSuper = false, bool isStret = false)
{
if (property.IsProperty) {
// the getter and the setter depend of the accessors that have been ser for the property, we do not want
// to calculate things that we wont use. The export data used will aslo depend if the getter/setter has a
// export attr attached
// the getter and the setter depend of the accessors that have been set for the property, we do not want
// to calculate things that we won't use. The export data used will also depend if the getter/setter has a
// export attribute attached
var getter = property.GetAccessor (AccessorKind.Getter);
string? getterMsgSend = null;
if (getter is not null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static class EnumExtensions {
public static bool HasCustomMarshalDirective (this Enum self)
{
return self switch {
// cast two the flags we know that could have the value and return it
// cast to the flags we know that could have the value and return it
ObjCBindings.Method methodFlag => methodFlag.HasFlag (ObjCBindings.Method.CustomMarshalDirective),
ObjCBindings.Property propertyFlag => propertyFlag.HasFlag (ObjCBindings.Property.CustomMarshalDirective),
_ => false
Expand All @@ -20,7 +20,7 @@ public static bool HasCustomMarshalDirective (this Enum self)
public static bool HasMarshalNativeExceptions (this Enum self)
{
return self switch {
// cast two the flags we know that could have the value and return it
// cast to the flags we know that could have the value and return it
ObjCBindings.Method methodFlag => methodFlag.HasFlag (ObjCBindings.Method.MarshalNativeExceptions),
ObjCBindings.Property propertyFlag => propertyFlag.HasFlag (ObjCBindings.Property.MarshalNativeExceptions),
_ => false
Expand Down

0 comments on commit d6c77b1

Please sign in to comment.