def reduce_CreateComputableProperty(self, *kids): """%reduce PROPERTY ShortNodeName ASSIGN Expr """ self.val = qlast.CreateConcreteProperty( name=kids[1].val, target=kids[3].val, )
def reduce_CreateRegularProperty(self, *kids): """%reduce PROPERTY ShortNodeName OptExtendingSimple PtrTarget """ self.val = qlast.CreateConcreteProperty( name=kids[1].val, bases=kids[2].val, target=kids[3].val, )
def reduce_CreateQualifiedComputableProperty(self, *kids): """%reduce PtrQuals PROPERTY ShortNodeName ASSIGN Expr """ self.val = qlast.CreateConcreteProperty( name=kids[2].val, is_required=kids[0].val.required, cardinality=kids[0].val.cardinality, target=kids[4].val, )
def reduce_CreateComputableProperty(self, *kids): """%reduce CREATE OptPtrQuals PROPERTY UnqualifiedPointerName ASSIGN Expr """ self.val = qlast.CreateConcreteProperty( name=kids[3].val, is_required=kids[1].val.required, cardinality=kids[1].val.cardinality, target=kids[5].val, )
def reduce_CreateRegularProperty(self, *kids): """%reduce PROPERTY ShortNodeName OptExtendingSimple ARROW FullTypeExpr CreateConcretePropertySDLCommandsBlock """ self.val = qlast.CreateConcreteProperty( name=kids[1].val, bases=kids[2].val, target=kids[4].val, commands=kids[5].val, )
def reduce_CreateRegularQualifiedProperty(self, *kids): """%reduce PtrQuals PROPERTY ShortNodeName OptExtendingSimple PtrTarget """ self.val = qlast.CreateConcreteProperty( name=kids[2].val, bases=kids[3].val, is_required=kids[0].val.required, cardinality=kids[0].val.cardinality, target=kids[4].val, )
def reduce_CreateQualifiedRegularProperty(self, *kids): """%reduce PtrQuals PROPERTY ShortNodeName OptExtendingSimple ARROW FullTypeExpr """ self.val = qlast.CreateConcreteProperty( name=kids[2].val, bases=kids[3].val, declared_inherited=kids[0].val.inherited, is_required=kids[0].val.required, cardinality=kids[0].val.cardinality, target=kids[5].val, )
def reduce_CreateOverloadedProperty(self, *kids): """%reduce OVERLOADED OptPtrQuals PROPERTY ShortNodeName OptExtendingSimple OptPtrTarget """ self.val = qlast.CreateConcreteProperty( name=kids[3].val, bases=kids[4].val, declared_overloaded=True, is_required=kids[1].val.required, cardinality=kids[1].val.cardinality, target=kids[5].val, )
def reduce_CreateRegularProperty(self, *kids): """%reduce PROPERTY ShortNodeName OptExtendingSimple OptPtrTarget CreateConcretePropertySDLCommandsBlock """ target, cmds = self._extract_target( kids[3].val, kids[4].val, kids[1].context) self.val = qlast.CreateConcreteProperty( name=kids[1].val, bases=kids[2].val, target=target, commands=cmds, )
def reduce_CreateRegularProperty(self, *kids): """%reduce CREATE OptPtrQuals PROPERTY UnqualifiedPointerName OptExtendingSimple ARROW FullTypeExpr OptCreateConcretePropertyCommandsBlock """ self.val = qlast.CreateConcreteProperty( name=kids[3].val, bases=kids[4].val, is_required=kids[1].val.required, cardinality=kids[1].val.cardinality, target=kids[6].val, commands=kids[7].val, )
def reduce_CreateRegularQualifiedProperty(self, *kids): """%reduce PtrQuals PROPERTY ShortNodeName OptExtendingSimple OptPtrTarget CreateConcretePropertySDLCommandsBlock """ target, cmds = self._extract_target( kids[4].val, kids[5].val, kids[1].context) self.val = qlast.CreateConcreteProperty( name=kids[2].val, bases=kids[3].val, is_required=kids[0].val.required, cardinality=kids[0].val.cardinality, target=target, commands=cmds, )
def reduce_CreateOverloadedProperty(self, *kids): """%reduce OVERLOADED OptPtrQuals PROPERTY ShortNodeName OptExtendingSimple OptPtrTarget CreateConcretePropertySDLCommandsBlock """ target, cmds = self._extract_target( kids[5].val, kids[6].val, kids[3].context, overloaded=True) self.val = qlast.CreateConcreteProperty( name=kids[3].val, bases=kids[4].val, declared_overloaded=True, is_required=kids[1].val.required, cardinality=kids[1].val.cardinality, target=target, commands=cmds, )