add methods
This commit is contained in:
@@ -22,13 +22,13 @@ namespace ClassLibrarySourceGen
|
||||
|
||||
public IEnumerable<Data> GenerateFiles()
|
||||
{
|
||||
foreach (var x in _candidateInterfaces)
|
||||
foreach (var ci in _candidateInterfaces)
|
||||
{
|
||||
string interfaceName = $"I{x.Value.Split('.').Last()}";
|
||||
string interfaceName = $"I{ci.Value.Split('.').Last()}";
|
||||
yield return new Data
|
||||
{
|
||||
FileName = $"I{interfaceName}.cs",
|
||||
Text = CreatePartialInterfaceCode(_context.Compilation.GetTypeByMetadataName(x.Value), interfaceName)
|
||||
Text = CreatePartialInterfaceCode(_context.Compilation.GetTypeByMetadataName(ci.Value), interfaceName)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace {symbol.ContainingNamespace}
|
||||
var str = new StringBuilder();
|
||||
foreach (var method in MemberHelper.GetPublicMethods(symbol))
|
||||
{
|
||||
str.AppendLine($" {method.ToCode()}");
|
||||
str.AppendLine($" {method.ToCode()};");
|
||||
str.AppendLine();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user