yml2/pEp_message_include.ysl2
author Dirk Zimmermann <dirk@pep-project.org>
Wed, 29 Aug 2018 12:23:10 +0200
branchIOS-1270_CRASHING_TEST
changeset 644 85fe4a5107ad
parent 368 bd89f3ec04f0
permissions -rw-r--r--
IOS-1270 CRASHING TEST encrypt message with from == nil
     1 include yslt.yml2
     2 
     3 tstylesheet {
     4   template "/" {
     5     apply "class", 0
     6   }
     7 
     8   template "class" {//document "{@name}Base.h" {
     9     | //
    10     | //  «@name».h
    11     | //  pEpObjCAdapter
    12     | //
    13     | //  Created by Dirk Zimmermann on 10.11.17.
    14     | //  Copyright © 2017 p≡p. All rights reserved.
    15     | //
    16     |
    17     | #import <Foundation/Foundation.h>
    18     |
    19     | #import "PEPSessionProtocol.h"
    20     |
    21     | @interface PEPIdentity : NSObject
    22     |
    23     apply "property"
    24     |
    25     |
    26     | @end
    27   }
    28 
    29   template "property" {
    30     choose {
    31       when "@nullability"
    32         | @property (nonatomic, «@nullability») «@type» «@name»;
    33       otherwise
    34         | @property (nonatomic) «@type» «@name»;
    35     }
    36   }
    37 }
    38