Пример #1
0
    def transform(self, astNode):

        res = AstNode(self.getName())

        util.addChild(astNode, res, "value")

        return res
Пример #2
0
 def transform(self, astNode):
     
     res = AstNode(self.getName())
     
     nameNode = AstNode('name', astNode.getChildById('name').getText())
     res.addChild(nameNode)
     
     util.addChild(astNode, res, 'value')
     
     return res