public SwiftSources(BindingContext context, TranslationUnit unit)
     : base(context, new List <TranslationUnit> {
     unit
 })
 {
     Declaration = unit;
     TypePrinter = new SwiftTypePrinter(context);
 }
Exemplo n.º 2
0
        public override bool VisitClassDecl(Class @class)
        {
            var typePrinter = new SwiftTypePrinter(Context);
            var typeName    = @class.Visit(typePrinter);

            //if (@class.IsInterface || @class.IsAbstract)
            //typeName = $"{typeName}Impl";

            Return.Write($"{typeName}()");

            //Return.Write(ReturnVarName);
            return(true);
        }
 public SwiftSources(BindingContext context, Declaration decl)
     : this(context, decl.TranslationUnit)
 {
     Declaration = decl;
     TypePrinter = new SwiftTypePrinter(context);
 }
 public SwiftGenerator(BindingContext context)
     : base(context)
 {
     TypePrinter = new SwiftTypePrinter(Context);
 }
Exemplo n.º 5
0
 public SwiftMarshaler(BindingContext context)
     : base(context)
 {
     TypePrinter = new SwiftTypePrinter(Context);
 }