[binder] Rename MarshalPrinter class to Marshaler.
This commit is contained in:
Родитель
f3a747b14a
Коммит
ef0c700385
|
@ -5,7 +5,7 @@ using CppSharp.Generators;
|
|||
|
||||
namespace Embeddinator.Generators
|
||||
{
|
||||
public class CMarshalPrinter : MarshalPrinter
|
||||
public class CMarshalPrinter : Marshaler
|
||||
{
|
||||
public CMarshalPrinter(BindingContext context)
|
||||
: base(context)
|
||||
|
@ -435,7 +435,7 @@ namespace Embeddinator.Generators
|
|||
return true;
|
||||
}
|
||||
|
||||
public static string GenParamId(MarshalPrinter marshal)
|
||||
public static string GenParamId(Marshaler marshal)
|
||||
{
|
||||
return $"{CGenerator.GenId(marshal.ArgName)}_{marshal.ParameterIndex}";
|
||||
}
|
||||
|
|
|
@ -270,7 +270,7 @@ namespace Embeddinator.Generators
|
|||
WriteLine($"void* {argsId}[{numParamsToMarshal}];");
|
||||
}
|
||||
|
||||
var marshalers = new List<MarshalPrinter>();
|
||||
var marshalers = new List<Marshaler>();
|
||||
|
||||
int paramIndex = 0;
|
||||
foreach (var param in paramsToMarshal)
|
||||
|
|
|
@ -349,7 +349,7 @@ namespace Embeddinator.Generators
|
|||
|
||||
public void GenerateMethodInvocation(Method method)
|
||||
{
|
||||
var marshalers = new List<MarshalPrinter>();
|
||||
var marshalers = new List<Marshaler>();
|
||||
var @params = new List<string>();
|
||||
|
||||
if (!method.IsStatic && !(method.IsConstructor || method.IsDestructor))
|
||||
|
|
|
@ -4,13 +4,13 @@ using CppSharp.Generators;
|
|||
|
||||
namespace Embeddinator.Generators
|
||||
{
|
||||
public class MarshalPrinter : AstVisitor
|
||||
public class Marshaler : AstVisitor
|
||||
{
|
||||
public MarshalPrinter(BindingContext context)
|
||||
public Marshaler(BindingContext context)
|
||||
{
|
||||
Context = context;
|
||||
Before = new TextGenerator();
|
||||
After = new TextGenerator ();
|
||||
After = new TextGenerator();
|
||||
Return = new TextGenerator();
|
||||
}
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ namespace Embeddinator.Generators
|
|||
|
||||
public void GenerateMethodInvocation(Method method)
|
||||
{
|
||||
var marshalers = new List<MarshalPrinter>();
|
||||
var marshalers = new List<Marshaler>();
|
||||
var @params = new List<string>();
|
||||
|
||||
if (!method.IsStatic && !(method.IsConstructor || method.IsDestructor))
|
||||
|
|
Загрузка…
Ссылка в новой задаче