Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 3107bd9

Browse files
Merge pull request #438 from xamarin/error-typo
typo fixed
2 parents 5e9ce30 + a59b229 commit 3107bd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SwiftReflector/NewClassCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ void CollectAllProtocolMethods (List<FunctionDeclaration> functions, ProtocolDec
20382038

20392039
ProtocolDeclaration superProtocol = entity.Type as ProtocolDeclaration;
20402040
if (superProtocol == null) {
2041-
throw ErrorHelper.CreateError (ReflectorError.kCompilerReferenceBase + 35, $"Found and entity for {entity.Type.Name}, but it was a {entity.Type.ToString ()} instead of a protocol.");
2041+
throw ErrorHelper.CreateError (ReflectorError.kCompilerReferenceBase + 35, $"Found an entity for {entity.Type.Name}, but it was a {entity.Type.ToString ()} instead of a protocol.");
20422042
}
20432043
functions.AddRange (superProtocol.AllVirtualMethods ().Where(func => !(func.IsDeprecated || func.IsUnavailable)));
20442044
CollectAllProtocolMethods (functions, superProtocol);

SwiftReflector/OverrideBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void HandleProtocolMethods (ClassDeclaration decl)
325325

326326
var superProtocol = entity.Type as ProtocolDeclaration;
327327
if (superProtocol == null) {
328-
throw ErrorHelper.CreateError (ReflectorError.kCompilerReferenceBase + 14, $"Found and entity for {entity.Type.Name}, but it was a {entity.Type.GetType ().Name} instead of a protocol.");
328+
throw ErrorHelper.CreateError (ReflectorError.kCompilerReferenceBase + 14, $"Found an entity for {entity.Type.Name}, but it was a {entity.Type.GetType ().Name} instead of a protocol.");
329329
}
330330
OverriddenVirtualMethods.AddRange (VirtualMethodsForClass (superProtocol).Select (m => MarkOverrideSurrogate (m, Reparent (new FunctionDeclaration (m), OverriddenClass))));
331331
HandleProtocolMethods (superProtocol);
@@ -344,7 +344,7 @@ void HandleSuperClassVirtualMethods (ClassDeclaration decl)
344344

345345
var superClass = entity.Type as ClassDeclaration;
346346
if (superClass == null) {
347-
throw ErrorHelper.CreateError (ReflectorError.kCompilerBase + 17, $"Found and entity for {entity.Type.Name}, but it was a {entity.Type.GetType ().Name} instead of a class.");
347+
throw ErrorHelper.CreateError (ReflectorError.kCompilerBase + 17, $"Found an entity for {entity.Type.Name}, but it was a {entity.Type.GetType ().Name} instead of a class.");
348348
}
349349
OverriddenVirtualMethods.AddRange (VirtualMethodsForClass (superClass).Select (m => MarkOverrideSurrogate (m, Reparent (new FunctionDeclaration (m), OverriddenClass))));
350350
HandleSuperClassVirtualMethods (superClass);

0 commit comments

Comments
 (0)