-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
2,065 additions
and
2,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
using BeaKona.AutoInterfaceGenerator.Templates; | ||
using Microsoft.CodeAnalysis; | ||
using System.Collections.Generic; | ||
|
||
namespace BeaKona.AutoInterfaceGenerator | ||
namespace BeaKona.AutoInterfaceGenerator; | ||
|
||
internal sealed class AutoInterfaceRecord : IMemberInfo | ||
{ | ||
internal sealed class AutoInterfaceRecord : IMemberInfo | ||
public AutoInterfaceRecord(ISymbol member, ITypeSymbol receiverType, INamedTypeSymbol interfaceType, TemplateDefinition? template, List<PartialTemplate> templateParts) | ||
{ | ||
public AutoInterfaceRecord(ISymbol member, ITypeSymbol receiverType, INamedTypeSymbol interfaceType, TemplateDefinition? template, List<PartialTemplate> templateParts) | ||
{ | ||
this.Member = member; | ||
this.ReceiverType = receiverType; | ||
this.InterfaceType = interfaceType; | ||
this.Template = template; | ||
this.TemplateParts = templateParts?.ToArray() ?? new PartialTemplate[0]; | ||
} | ||
|
||
public ISymbol Member { get; } | ||
public ITypeSymbol ReceiverType { get; } | ||
public INamedTypeSymbol InterfaceType { get; } | ||
public TemplateDefinition? Template { get; } | ||
public PartialTemplate[] TemplateParts { get; } | ||
public bool CastRequired => this.InterfaceType.Equals(this.ReceiverType, SymbolEqualityComparer.Default) == false; | ||
this.Member = member; | ||
this.ReceiverType = receiverType; | ||
this.InterfaceType = interfaceType; | ||
this.Template = template; | ||
this.TemplateParts = templateParts?.ToArray() ?? new PartialTemplate[0]; | ||
} | ||
} | ||
|
||
public ISymbol Member { get; } | ||
public ITypeSymbol ReceiverType { get; } | ||
public INamedTypeSymbol InterfaceType { get; } | ||
public TemplateDefinition? Template { get; } | ||
public PartialTemplate[] TemplateParts { get; } | ||
public bool CastRequired => this.InterfaceType.Equals(this.ReceiverType, SymbolEqualityComparer.Default) == false; | ||
} |
Oops, something went wrong.